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

Re: New to list, question about cross doc references in xpath

  • From: "G. Ken Holman" <gkholman@C...>
  • To: xml-dev@l...
  • Date: Thu, 26 Mar 2009 16:28:41 +0100

Re:  New to list
XSLT and XPath questions would be better posted to the following list:

   http://www.mulberrytech.com/xsl/xsl-list

There are a number of subscribers who would enthusiastically respond 
to such questions.

There is also an *excellent* XSLT FAQ at:

   http://www.dpawson.co.uk

At 2009-03-26 15:08 +0100, nico wrote:
>I do not know the difference between doc() and document() and I do 
>not understand the meaning of that argument, but that "relative URI" 
>seems close to what you need ??
>I used that document() function in my XSLT and that works with relative paths.

doc() returns one root node for one address supplied, while 
document() can return one or more root nodes if more than one address 
is supplied by an argument of a set of data nodes.

When the argument to doc() is an absolute URI, the document at that 
URI is read as if it were an XML document, and the function returns 
the root node of the tree created.

When the argument to doc() is a relative URI, the absolute URI is 
determined using the base URI of the instruction node.

When the first argument of document() is an absolute URI, the second 
argument is ignored.

When the first argument of document() is a data node with a relative 
URI value, the absolute URI is determined using the base URI of the node.

When the first argument of document() is not a data node and the 
string value is a relative URI value, and the second argument is 
absent, the absolute URI is determined using the base URI of the 
instruction node.

When the first argument of document() is not a data node and the 
string value is a relative URI value, and the second argument is a 
data node, the absolute URI is determined using the base URI of the 
second argument data node.

I hope this helps.

. . . . . . . . Ken

--
XQuery/XSLT/XSL-FO training in Los Angeles (New dates!) 2009-06-08
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.