forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "HANAX" <>
Subject different templates for same element
Date Thu, 28 Jul 2005 10:53:20 GMT
While rendering voice output, I think that should be goof to render some simple visual output,
for example section titles as <H1> and so on... 
I have something like

<xsl:template match="body">
  <xsl:call-template name="voiceNavigation"/> 
  <xsl:call-template name="visualRender"/> 

in "voiceNavigation" I have somthing like

 <xsl:for-each select="//section"> 

And having templates like
  <xsl:template match="p">
    <xsl:value-of select="."/>

  <xsl:template match="title">
    Title: <xsl:value-of select="."/>.

I should do the same in "visualRender".
But if I call apply-templates, the "p" template will be applied, but I want to render only
text not <vxml:break/> and for example for title I want something like:

  <xsl:template match="title">
      <xsl:value-of select="."/>

Any solution?

View raw message