W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2015

Re: Passing a variable to p:document href?

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 02 Sep 2015 08:07:19 -0500
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <87pp21vuk8.fsf@nwalsh.com>
dvint <dvint@dvint.com> writes:
> Thanks still getting used to xproc. I also realized this was a place
> where everything could be specified relative to the xproc file
> location.

Yes, that's a consequence of the way relative URIs and XML base URIs
interact. It's often inconvenient, I know.

I often end up doing things like this:

  <p:load xmlns:exf="http://exproc.org/standard/functions">
    <p:with-option name="href" select="resolve-uri($optname, exf:cwd())"/>
  </p:load>

That resolves the value of $optname against the current working
directory of the XML Calabash process.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com

Received on Wednesday, 2 September 2015 13:07:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 2 September 2015 13:07:47 UTC