From: "John Townsend" <[EMAIL PROTECTED]>
> What I would like to do is sort all of the person objects that are
> returned from the forEach select statement by an attribute (name, phone
> number, title, etc.)

Here's an example....

<%-- parse some XML --%>

<xtags:parse>
<people>
    <person name="James">
        ..
    </person>
    <person name="John">
        ..
    </person>
</people>
</xtags:parse>

<%-- now iterate through people in @name order --%>

<xtags:forEach select="/people/person" sort="@name">
    Name: <xtags:valueOf select="@name"/>
</xtags:forEach>


James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to