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

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
RE: Which one to choose
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

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.