Refer to current node in p:for-each

  Hi,

  Within a p:for-each, I need to use the element I am looping
over in two steps:

    <p:for-each>

       <p:iteration-source select="//book"/>

       <!-- implicitly use as input the current book -->
       <p:xslt>
          <p:input port="stylesheet">
             ...
          </p:input>
       </p:xslt>

       <!-- need also to use the current book as input -->
       <p:xslt>
          <p:input port="source">
             <!--
                what can I use here to refer to current book?
             -->
          </p:input>
          <p:input port="stylesheet">
             ...
          </p:input>
       </p:xslt>

       ...

  How can I refer to the current book in the source port of the
second XSLT step?

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

Received on Tuesday, 21 July 2009 14:09:59 UTC