Subject: Re: [xsl] Displaying Text Nodes From: "Christopher R. Maden" <crism@xxxxxxxxx> Date: Wed, 4 Mar 2009 12:05:25 -0800 (PST) |
siarom egrub wrote: > <xsl:template match="ProdName/para" mode="ProdName_BR"> > <xsl:value-of select="text()[not(preceding-sibling::br)] "/> > </xsl:template> The value-of instruction does not map over all of the matched nodes, as you seem to expect here; it instead takes the string-value of the first matched node. Use <xsl:apply-templates/> instead. The default template for a text node is to output its value. This will also allow you to actually format the superscripts should you need to. ~Chris
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Displaying Text Nodes, siarom egrub | Thread | Re: [xsl] Displaying Text Nodes, Christopher R. Maden |
[xsl] Displaying Text Nodes, siarom egrub | Date | Re: [xsl] Displaying Text Nodes, Christopher R. Maden |
Month |