|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Nested xsl:sort problems
That was the exact problem I sent myself down the wrong path try to deal
with the entry element. It is a bit repetitive, but that's for another
day.
thanks.
I believe the problem was that you were off by one level when doing
your sorts. Here is a cut down version of the XSL...
<!-- Sorted primary elements -->
<xsl:for-each select="/indices/index/entry/primary">
<xsl:sort data-type="text" select="@name"/>
<block><xsl:value-of select="@name"/></block>
<!-- Sorted secondary elements -->
<xsl:for-each select="secondary">
<xsl:sort data-type="text" select="@name"/>
<block><xsl:value-of select="@name"/></block>
<!-- Sorted tertiary elements -->
<xsl:for-each select="tertiary">
<xsl:sort data-type="text" select="@name"/>
<block><xsl:value-of select="@name"/></block>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
This is repetitive, and could probably be replaced with something
recursive...
Does this solve your problem?
Josh
Frederick Wells
Capps Digital
35 W Wacker
30th Fl.
Chicago, IL
312.220.3056
www.cappsdigital.com
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








