xsl-list
[Top] [All Lists]

Re: [xsl] URI of the passed Source-Document

2009-03-10 05:39:21

I looked around but I did not found a reliable way in XSLT 2 to get the URI
of the source document passed to the XSLT processor.

document-uri(/)


I know that there is a way to get URI of a document accessed by document(),
but that is not what I'm looking for. 

there is nothing special about the nodes that are returend by
document(), any functions that apply to those nodes may also be applied
to the initial input.

The only thing to note about the initial input is that it may not have a
usable URI at all for example if it is coming from some in memory
pipeline that doesn't explictly set the base uri to some value.

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>