[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Displaying Text Nodes

Subject: Re: Displaying Text Nodes
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Wed, 4 Mar 2009 12:05:25 -0800 (PST)
Re:  Displaying Text Nodes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.