- From: <vojtech.toman@emc.com>
- Date: Fri, 29 Jun 2012 05:30:34 -0400
- To: <xproc-dev@w3.org>
- Message-ID: <F3C7EBECE80AC346BE4D1C5A9BB4A41F2ED641A8CA@MX11A.corp.emc.com>
Oops, apologies for the silly typo.
Vojtech
--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech
From: Tom T [mailto:tomxsllist@hotmail.com]
Sent: Friday, June 29, 2012 11:14 AM
To: Toman, Vojtech; xproc-dev@w3.org
Subject: RE: Providing document context to conditional logic
That doesn't quite work for me, but this does:
<p:xpath-context>
<p:pipe port=" param-doc " step="main"/>
</p:xpath-context>
Thanks for your help.
________________________________
From: vojtech.toman@emc.com
To: xproc-dev@w3.org
Date: Thu, 28 Jun 2012 06:03:26 -0400
Subject: RE: Providing document context to conditional logic
Hi,
You can use p:xpath-context for that:
<p:pipeline name="main">
<p:input port="param-doc"/>
...
<p:choose>
<p:xpath-context>
<p:input step="main" port="param-doc"/>
</p:xpath-context>
<p:when test="...">...</p:when>
...
</p:choose>
...
</p:pipeline>
You can also specify different p:xpath-context on the individual p:when branches if you want.
Regards,
Vojtech
--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech
From: Tom T [mailto:tomxsllist@hotmail.com]
Sent: Tuesday, June 26, 2012 6:05 PM
To: xproc-dev@w3.org
Subject: Providing document context to conditional logic
I wish to provide parameters to my xproc document in the form of an XML document (presumably this would be passed in via an input port). I then want to make p:choose choices based on the content of that input document.
How do I set the context for any xpaths used to be something other than the default source document?
thanks in advance!
Received on Friday, 29 June 2012 09:31:29 UTC