|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Recursive grouping won't recurse...
Hi Peter,
Hunsberger, Peter wrote: I'm still shaky on grouping with keys so I've probably missed something obvious, but I can't get a grouping to work when it has to group on a recursive structure. The input looks essentially like the following: Off the top of head, so test it out... <xsl:template match="list"> <xsl:apply-templates/> </xsl:template> <xsl:template match="a | b | c | d | e | f">
<xsl:element name="name()">
<xsl:attribute name="type">
<xsl:value-of select="@type"/>
</xsl:attribute>
<xsl:attribute name="flag">
<xsl:value-of select="@flag"/>
</xsl:attribute>
<xsl:if test="boolean(./*)">
<group>
<xsl:apply-templates/>
</group>
</xsl:if>
</xsl:element>
</xsl:template>best, -Rob
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








