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

Re: Document() function

Subject: Re: Document() function
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 15 Mar 2001 13:55:39 -0700 (MST)
Re:  Document() function
Borca, Olivier wrote:
> I am looking for help about the 'document()' function but I didnt
> manage to find something good.
> Can anyone help me with that ?

If you call document() with one argument, the argument is coerced to a
string and is assumed to be a URI that identifies an XML document. That
document is parsed and its root node is returned by the
function. You might use it like this:

 <xsl:value-of select="document('foo.xml')/path/to/some/nodes"/>

or

 <xsl:variable name="foo" select="/path/to/element/containing/URI/text()"/>
 <xsl:value-of select="document($foo)/path/to/some/nodes"/>

You can use multiple arguments, but to learn about that, you should just
wait for Mike Kay's book to arrive in your mailbox!

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources: 
webb.net in Denver, Colorado, USA              http://skew.org/xml/

 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.