XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] New to list, question about cross doc references in xpath

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@CraneSoftwrights.com
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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS