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

Re: xsl:sequence

Subject: Re: xsl:sequence
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 8 Aug 2006 14:29:59 +0100
Re:  xsl:sequence
On 8/8/06, David Carlisle <davidc@xxxxxxxxx> wrote:

> right? Right. What did i say...I check sent mail.... ah so I got _both_ wrong. <xsl:value-of select="foo"/> generates a text node with value "one two" should, as you say, be "onetwo" (actually it was right when I wrote it, I changed the input example before sending:-) but then my description of the <xsl:value-of select="foo/text()"/> was also wrong, as described in another thread. I give up.

I think this is a good example:


<root>
 <foo>text</foo>
 <foo>text</foo>
</root>

<xsl:value-of select="/root"/>

produces "texttext" (with whitespace only nodes stripped)

This is because it's the string value of the <root> element - a
sequence of length one.

<xsl:value-of select="/root/foo"/>

produces "text text"

This is because it's the string value of each <foo> element - a
sequence of length two.

As there are two items in the sequence they are concatenated using the
optional separator (the default being " ").

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-2013 All Rights Reserved.