RE: Providing document context to conditional logic

What if I needed to refer to multiple XPath contexts? In XSLT this would be something like
<xsl:variable name="externaldoc1" select="doc('http://xxx.xml')" as="document-node()"/><xsl:variable name="externaldoc2" select="doc('http://yyy.xml')" as="document-node()"/>

/a/b[$externaldoc1/c/d=$externaldoc2/q/r]

From: vojtech.toman@emc.com
To: xproc-dev@w3.org
Date: Fri, 29 Jun 2012 05:30:34 -0400
Subject: RE: Providing document context to conditional logic

Oops, apologies for the silly typo. Vojtech --Vojtech TomanConsultant Software EngineerEMC | Information Intelligence Groupvojtech.toman@emc.comhttp://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 logicHi, 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 TomanConsultant Software EngineerEMC | Information Intelligence Groupvojtech.toman@emc.comhttp://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 Tuesday, 31 July 2012 10:11:49 UTC