W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2014

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

From: Liam R E Quin <liam@w3.org>
Date: Sat, 6 Dec 2014 19:57:42 -0500
To: xproc-dev@w3.org
Message-ID: <20141206195742.25a48518.liam@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:17:22 UTC