At 2011-10-12 13:59 -0700, you wrote:
My gut feeling is that thee is no helpful pattern in selecting the
members of the output. Building a temporary tree is just the thing.
I had no idea that I could do that. I'll do some reading up on them and try it.
Along the lines of:
<xsl:variable name="intermediate">
<FormatPage>
....
</FormatPage>
</xsl:variable>
<xsl:apply-templates mode="augment-result" select="$intermediate"/>
<xsl:template mode="augment-result" match="Formats">
...
<xsl:attribute name="label" select="position()"/>
...
</xsl:template>
Or grouping, or whatever ... just treat $intermediate as your
second-pass input. I suggest a different mode so that your template
rules for creating $intermediate are not engaged when processing $intermediate.
On another topic, thanks for the lead on the Crane publications.
You are most welcome. The announcement even led to some sales of our
XSLT interactive DVD that I didn't mention:
http://www.CraneSoftwrights.com/training/ptux/ptux-video.htm
. . . . . . . . . Ken
--
Contact us for world-wide XML consulting and instructor-led training
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--