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

Re: [string to node]

Subject: Re: [string to node]
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 22 Feb 2010 00:43:17 +0000
Re:  [string to node]
On 22/02/2010 00:17, Aditya Sakhuja wrote:
So, I have thought of<xsl:variable name="a" select="..."/>  to get the
value. however, I have to choose depending upon certain conditions,
and hence the<xsl:choose>

Usually (or at least often) you can express the condition in xpath rather than xsl:choose, and so still use the select.


> inside. Also, exsl:node-set() library is
not complete (http://exslt.org/exsl/index.html). If you download this,
the node-set xsl is missing. I had looked at this option earlier.

no, you misunderstand how the node-set extension is implemented.
You do not download any code it is built in to to the processor
xslt 1 implementations which support this (which is almost all of them)
build in the node-set extension, you just need to declare the namespace to access the function.




However, I have just managed to get what I need working using the inherent, xalan:nodeset() which comes bundled with the Xalan-C processor.

xalan:nodeset and exslt;node-set will be teh same function, it's just more portanble to call it exslt node-set.


David

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.