this is a german Web-Mirror of MHONARC.ORG powered by Domainunion AG

xsl-list
[Top] [All Lists]

RE: [xsl] Sorting nested steps

2013-07-31 07:58:44
At 2013-07-31 08:53 -0400, Rick Quatro wrote:
It looks like the recursion is "built-in"
with the apply-templates rule inside the match.

Indeed ... pushing child nodes like this reflects the inherent nested nature of XML structure. It is really only "recursion" when it is the same element structure being processed.

Also, I didn't' think of the
position() function, which will help me get the correct sort.

I remind my students that the definition of position() changes during a sort: after the selection is made, position() reflects the order of the population being sorted, then after the sort is completed, position() reflects the order of the sorted results.

Good luck in your project.

. . . . . . . . Ken


--
Public XSLT, XSL-FO, and UBL classes in the Netherlands     Oct 2013 |
Public XSLT, XSL-FO, UBL and code list classes in Australia Oct 2013 |
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: https://www.CraneSoftwrights.com/links/udemy.htm |
Crane Softwrights Ltd.            https://www.CraneSoftwrights.com/s/ |
G. Ken Holman                   mailto:gkholman(_at_)CraneSoftwrights(_dot_)com 
|
Google+ profile: https://plus.google.com/116832879756988317389/about |
Legal business disclaimers:    https://www.CraneSoftwrights.com/legal |


--~------------------------------------------------------------------
XSL-List info and archive:  https://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: https://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>