W3C home > Mailing lists > Public > xproc-dev@w3.org > June 2012

Re: Making a relative URI in @xml:base absolute

From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
Date: Mon, 18 Jun 2012 21:00:08 +0200
Message-ID: <CAOCxfQfLiUoJi8czLjyWjkjvexn=CqkWPQzuTmmtv-=enbhe2g@mail.gmail.com>
To: "Dr. Yves Forkl" <Y.Forkl@srz.de>
Cc: XProc Dev <xproc-dev@w3.org>
It sounds like you're looking for the XProc extension function
p:resolve-uri($relative, $base) [1]:

    <p:with-option name="href" select="p:resolve-uri(/*/@xml:base,

[1] http://www.w3.org/TR/xproc/#f.resolve-uri


2012/6/18 Dr. Yves Forkl <Y.Forkl@srz.de>

> I am currently looking for the right (or best) way in XProc to do the
> following:
> Read a relative URI from @xml:base and make it absolute with respect to a
> given URI which is available in variable $root_uri.
> The absolute URI obtained will then be used as value of the href option of
> p:store.
> How can I tell the XProc processor to use the value of $root_uri instead
> of the base URI of the pipeline file itself when it is calculating the
> absolute URI from the relative URI held in @xml:base?
> Yves
Received on Monday, 18 June 2012 19:01:01 UTC

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