RE: [xsl] most efficient way to get XML source's parent dir path

Subject: RE: [xsl] most efficient way to get XML source's parent dir path
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 11 Feb 2009 15:24:47 -0000
> There are XPath 2.0 functions specifically provided to do the job.
> 
> select="doc(resolve-uri(@ref,base-uri(.)))"
> 

And in fact the document() function does this by default if the first
argument is a node:

    select="document(@ref)"

should work fine.

Michael Kay
http://www.saxonica.com/

Current Thread