Re: Using option in the path for p:document

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