Re: Accessing the current Element in p:for-each and p:viewport

<denis.maier@unibe.ch> writes:
>   <p:for-each>
>     <p:with-input select="//group"/>
>
>     <p:variable name="groupName" select="./@name"/>

The p:for-each step processes a sequence of documents, not elements. You’re asking for the name attribute of the document. Try:

     <p:variable name="groupName" select="/group/@name"/>

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh <ndw@nwalsh.com>
https://norm.tovey-walsh.com/

> Oh well, no matter what happens, there's always death.--Napoleon

Received on Thursday, 17 April 2025 08:58:51 UTC