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

Returning a sequence of text nodes from xsl:apply-tem

Subject: Returning a sequence of text nodes from xsl:apply-templates
From: Clint Redwood <clint@xxxxxxxxxxxxxxx>
Date: Tue, 26 Jul 2011 14:35:55 +0100
 Returning a sequence of text nodes from  xsl:apply-tem
Hi! I may be fundamentally failing to understand how this works, but I've been
trying to obtain a sequence result from xsl:apply-templates, where I am
looking for each text result to be a member of the final sequence. There are
no nodes or tags in the results.

I have

<xsl:variable name="resultVar" as="item() *">
  <xsl:apply-templates select="$nodeList" />
</xsl:variable>

As I have said, my expectation was that I would get a sequence, one entry per
node in $nodeList.

However when I use

<xsl:value-of select="$resultVar" separator="$separatorVar" />

I get only a single output of all the concatenated results, without a
separator.

I'm using Saxon b 9.1 and xsl 2.0.

Any suggestions as to where my understanding has failed would be appreciated.

Thanks!

Yours,

Clint Redwood

Screwtape Limited, Registered 06663232, Babington House, 26 College Road,
Chilwell, Nottingham NG9 4AS

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.