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 Thursday, 28 June 2012 10:04:16 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 28 June 2012 10:04:17 GMT