xsl-list
[Top] [All Lists]

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

2009-02-11 11:23:40

On Feb 11, 2009, at 11:02 AM, Michael Kay wrote:


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".

OK - Owen, thanks for questioning what I was doing. And thanks to both you and Mike for showing me the correct way to deal with it.

best,
-Rob


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--