forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject RE: Debugging transformations in Forrest (was Re: problem)
Date Thu, 28 Jul 2005 09:35:37 GMT
On Thu, 2005-07-28 at 10:17 +0200, HANAX wrote:
> ok, this one solved, I found that one line I changed in .xsl causes it, but i don't understand
why.
> 
> I had
> 
>   <xsl:template match="title">
>     <xsl:text>Section <xsl:value-of select="position()"/>: </xsl:text>
>       <xsl:value-of select="."/>
>     <vxml:break/>
>   </xsl:template>
> 
> and it gaves me that "plaintext" vesion I mentioned.
> When I comment 2nd line, it works but I want to have numbering...
> 
>   <xsl:template match="title">
>    <!-- <xsl:text>Section <xsl:value-of select="position()"/>: </xsl:text>
-->
>       <xsl:value-of select="."/>
>     <vxml:break/>
>   </xsl:template>
> 
> What's wrong with position()? 

Nothing, but <xsl:text>Section <xsl:value-of select="position()"/>:
</xsl:text> is causing IMO an error.

Try
Section <xsl:value-of select="position()"/>:
without  <xsl:text/>

HTH

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Mime
View raw message