RE: Passing a URL to p:document as a variable?

Many thanks to Philip and Vojtech: That's the trick!

> -----Original Message-----
> From: Philip Fennell [mailto:Philip.Fennell@marklogic.com] 
> Sent: 13 April 2010 09:18
> To: HILLMAN, Tomos
> Subject: RE: Passing a URL to p:document as a variable?
> 
> Tom,
> 
> In this case you need to use the p:load step and then bind 
> its result to the intended input port using a p:pipe, example:
> 
> <p:load name="load">
>   <p:with-option name="href" select="$href"/> </p:load>
> 
> <p:identity>
>   <p:input port="source">
>     <p:pipe port="result" step="load"/>
>   </p:input>
> </p:identity>
> 
> 
> Regards
> 
> 
> Philip Fennell
> Consultant
> 
> Mark Logic Corporation
> www.marklogic.com
> 
> E-mail: philip.fennell@marklogic.com
> Mobile: +44 (0)7824 830 866 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: xproc-dev-request@w3.org 
> [mailto:xproc-dev-request@w3.org] On Behalf Of HILLMAN, Tomos
> Sent: Monday, April 12, 2010 3:03 PM
> To: xproc-dev@w3.org
> Subject: Passing a URL to p:document as a variable?
> 
> Hi List,
> 
> There doesn't appear to be any way to pass a variable to 
> p:document - I was expecting to be allowed to do something like this:
> 
> <p:input port="source">
> <p:document>
> <p:with-option name="href" select="$href"/> </p:document> </p:input>
> 
> Any recommendations as to what I should be doing instead?
> 
> Thanks in advance,
> Tom
> 
> Oxford University Press (UK) Disclaimer
> 
> This message is confidential. You should not copy it or 
> disclose its contents to anyone. You may use and apply the 
> information for the intended purpose only. OUP does not 
> accept legal responsibility for the contents of this message. 
> Any views or opinions presented are those of the author only 
> and not of OUP. If this email has come to you in error, 
> please delete it, along with any attachments. Please note 
> that OUP may intercept incoming and outgoing email communications.
> 
> 
> 
Oxford University Press (UK) Disclaimer

This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information for the intended purpose only. OUP does not accept legal responsibility for the contents of this message. Any views or opinions presented are those of the author only and not of OUP. If this email has come to you in error, please delete it, along with any attachments. Please note that OUP may intercept incoming and outgoing email communications.

Received on Tuesday, 13 April 2010 09:23:17 UTC