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

Re: NewBe help!

Subject: Re: NewBe help!
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Fri, 3 Aug 2001 15:35:04 +0100
Re:  NewBe help!
Hi Joe,

> I have just started useing xsl/xml and I haven't puchased a book yet
> how does the syntax work with the document() function when you use
> two variables?

Basically if you pass a relative URI as the value of the first
argument, then you need to resolve that relative URI somehow. If you
don't give a second argument, then the relative URI is resolved
relative to the stylesheet. If you do give a second argument (which
has to be a node), then the relative URI is resolved relative to the
"base URI" of the node, which is usually the same as the URI of the
entity that the node came from.

Typically, you'd use the second argument of the document() function if
the XML document you're processing contains URLs and is in a different
directory from the stylesheet. Then you'd use something like:

  document($URL, .)

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.