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

Re: Re:Confusion about preceding-sibling axis

Subject: Re: Re:Confusion about preceding-sibling axis
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Tue, 10 Apr 2001 08:14:55 +0100
preceding sibling exsl node set
Hi Yang,

> When I follow your solution example,
> I have to use msxsl:node-set  in the for-each element
>
>     <xsl:for-each select="exsl:node-set($item_list)">.

Yes - that's because you're using MSXML.  I have to use
saxon:node-set() because I'm using Saxon.  The node-set() function is
a common function, but each processor has a different namespace for
it.  One of the aims of the EXSLT initiative (see
http://www.exslt.org) is to get a *common* namespace for *common*
functions like this.

[I'm going to start using exsl or the other EXSLT namespace prefixes
when talking about these functions to promote EXSLT and to indicate
that just 'cos I talk about saxon:node-set() etc. doesn't mean that
you *have* to use Saxon to get the node-set() function - your
processor might well have an equivalent that you can use.]

> However to get a resonable output,  I have to  add ** /item**  to the
> node-set function ,  i.e.,
>
>     <xsl:for-each select="msxsl:node-set($item_list)/item">
>
> Is it  the difference between using exsl and  RTF node-set function?

No - it's the difference between being awake when answering XSLT
questions and being asleep :)  The exsl:node-set() function works in
the same way as the processor-specific extensions, returning a node
set consisting of the root node of the RTF.  Sorry for the confusion.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.