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
- xtags:ForEach question (involving parameters) John Townsend
- RE: xtags:ForEach question (involving parameters... William C. Robertson
- Re: xtags:ForEach question (involving parameters... James Strachan
- RE: xtags:ForEach question (involving parameters... John Townsend
- Re: xtags:ForEach question (involving parameters... James Strachan
- RE: xtags:ForEach question (involving parameters... John Townsend
- Re: xtags:ForEach question (involving parameters... James Strachan
- RE: xtags:ForEach question (involving parameters... John Townsend
- Re: xtags:ForEach question (involving parameters... James Elson
- Re: xtags:ForEach question (involving parameters... James Strachan
- Re: xtags:ForEach question (involving parameters... James Strachan
