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 16:02:08 -0000
> Well, I tried to simplify the example. In reality, I am using 
> the unparsed-text function which has no base-uri argument () 
> and the resolver is provided with a full java.net.URI so I 
> needed a way to create the correct path in the XPath. I 
> should have been more clear.
> 
> Am I still missing something?
> 

You should definitely be using functions like base-uri() and resolve-uri()
rather than trying to manipulate the URI "by hand".

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

Current Thread