[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Which one to choose


Subject: RE: Which one to choose
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Wed, 16 Feb 2000 15:15:04 -0500

Hi Mike,

Mike said:
No, it was just an example. I didn't want to provide examples of every
possible use of the document() function, so I picked the one that in my
opinion was the most useful. If you are going to be referring to a document
multiple times, it makes more sense to only call document() once and bind
the node-set it returns to a variable, then refer to that variable.

Like any other function, it returns an object of one of the types: node-set,
number, boolean, string, result tree fragment. You know that it returns a
node-set, so you can use it anywhere where you expect to see a node-set. So
it could be the first location step in an XPath expression. I am not aware
of any XSL processors (aside from IE) that would have any trouble with that.

Didier replies:
What I wanted to know is if constructs like:
 <....
select="document('http://remoteserver/file.xml')/path/to/some/nodes"/>
and
 <....
select="document(./any/xpath/node/@andAttributes)/path/to/some/nodes"/>

are working well in XSLT engines and if yes in which (after some testing, so
that we know for sure that it is well supported)

I can say that in MSXML2 it is not (not yet supported)
I can say that in XT both constructs are supported
I do not know about Saxon?
I do not know about Xalan?


Cheers
Didier PH Martin
----------------------------------------------
Email: martind@xxxxxxxxxxxxx
Conferences: Web New York (http://www.mfweb.com)
Book: XML Pro published by Wrox Press
Products: http://www.netfolder.com


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



Current Thread
Keywords