- From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
- Date: Mon, 18 Jun 2012 21:00:08 +0200
- To: "Dr. Yves Forkl" <Y.Forkl@srz.de>
- Cc: XProc Dev <xproc-dev@w3.org>
Received on Monday, 18 June 2012 19:01:01 UTC
It sounds like you're looking for the XProc extension function p:resolve-uri($relative, $base) [1]: <p:store> <p:with-option name="href" select="p:resolve-uri(/*/@xml:base, $root_uri)"/> </p:store> [1] http://www.w3.org/TR/xproc/#f.resolve-uri Jostein 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