[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Building RTF variable
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 24 October 2002 23:53, Ragulf Pickaxe wrote: > <xsl:variable name="Test"> > <node>Number1</node> > <node>Number2</node> > <node>Number3</node> > </xsl:variable> > > But I don't have very much success. > > I would like to be able to do, say: > <xsl:value-of select="$Test[1]"/> First, remember that all of the <node> elements are children of $Test, so you will need something like "$Test/node[1]" to select the first node. If it works like that, then you're set. Probably you have a bigger problem, which is that your XSLT processor might not support automatic conversion from a Result Tree Fragment to a Nodeset. The XSLT 1.0 spec doesn't allow it. You'll need to see your processor's documentation and look for an xxx:node-set() function or something similar. Once you find how to use it, you can do something like "xxx:node-set($Test)/node[1]". - -- Peter Davis -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9uO8nhDAgUT1yirARAt8TAJ97ZRVpix3b5LMfNawLKLWa21X2qgCfbHgb QSmjEFKy3rNWQaiuLI7ciAA= =PzYn -----END PGP SIGNATURE----- XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|