RE: Refer to current node in p:for-each

Inside p:for-each, you can use the "current" implicit input port for
exactly this purpose. The same goes for p:viewport.

<p:for-each name="loop">
  <p:iteration-source select="//book"/>

  ...

  <p:xslt>
    <p:input port="source">
      <p:pipe step="loop" port="current"/>
    </p:input>
    ...
  </p:xslt>
  
</p:for-each>

Regards,
Vojtech

Received on Tuesday, 21 July 2009 14:18:32 UTC