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

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

From: Florent Georges <fgeorges@fgeorges.org>
Date: Mon, 8 Dec 2014 12:56:47 +0100
Message-ID: <CADyR_r3uR=oR1E9c5i9C72mA8A+7uFpuHTxHurd9diTvKk21-w@mail.gmail.com>
To: Liam R E Quin <liam@w3.org>
Cc: XProc Dev <xproc-dev@w3.org>
  Hi,

  Wouldn't it be better (and simpler) to use static-base-uri()
instead? (if your processor is XPath 2.0-aware)

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/


On 7 December 2014 at 01:57, Liam R E Quin wrote:
> 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 Monday, 8 December 2014 11:57:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:12 UTC