simplest way to get the URI of the current pipeline into a variable?

I noticed that I can use p:in-scope-names to generate a document whose base URi is that of the containing pipeline, so is the easiest way,

<p:in-scope-names name="in-scope-names" />
<p:variable name="pipeline-uri" select="base-uri(/)">
  <p:pipe step="in-scope-names" port="result" />
</p:variable>

?

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

Received on Sunday, 7 December 2014 00:57:45 UTC