xsl-list
[Top] [All Lists]

Re: [xsl] Displaying Text Nodes

2009-03-04 15:06:27
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>