W3C home > Mailing lists > Public > xproc-dev@w3.org > August 2013

Re: Using option in the path for p:document

From: Gerrit Imsieke <gerrit.imsieke@le-tex.de>
Date: Thu, 08 Aug 2013 20:04:38 +0200
To: xproc-dev@w3.org
Message-ID: <72770cff-64e6-4409-83c7-b5148996fc34@email.android.com>
Only p:load accepts an XPath expression for the href attribute. So you need to connect p:xinclude’s source port to p:load’s result port.

http://www.w3.org/TR/xproc/#c.load


David Cramer <david@thingbag.net> wrote:
>I've asked this before for p:store, but I haven't been able to google
>up
>an answer for p:document. I need to use an option as the path to an
>input document. So instead of:
>
>  <p:xinclude>
>    <p:input port="source">
>      <p:document href="../../../../olink.xml" />
>    </p:input>
>  </p:xinclude>
>
>I want to do something like this, where I use $olinkManifest as the
>path
>to the input file:
>
>  <p:xinclude>
>    <p:input port="source">
>      <p:document>
>	<p:with-option name="href"
>                       select="$olinkManifest"/>
>      </p:document>
>    </p:input>
>  </p:xinclude>
>
>I'm sure I'm missing something obvious. Can someone help me out?
>
>Thanks,
>David

-- 
Sent from my bike. Please excuse my br
Received on Thursday, 8 August 2013 18:05:11 UTC

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