Subject: Sorting by attribute From: Eric Taylor <Eric.Taylor@xxxxxxxxxxxx> Date: Thu, 31 Aug 2000 14:18:00 -0500 |
My XML looks something like this: <related> <para><link internal="part2" text="c"/></para> <para><link page="test 1" text="a"/></para> <para><link page="test 2" text="d"/></para> <para><link page="test 3" text="b"/></para> </related> I want to apply the link template to each of these, sorting them based on what's in the text attribute. I tried the following but got an "unspecified error when I tried to display with IE5: <xsl:template match="related"> <xsl:for-each select="para"> <xsl:sort select="link/@text"/> <div><xsl:apply-templates/></div> </xsl:for-each> </xsl:template> Could someone kindly set me straight. Thanks. Eric XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Confused with current context, David Carlisle | Thread | unable to load language: javascript, Jon Wynacht |
Confused with current context, Lee Barwick | Date | unable to load language: javascript, Jon Wynacht |
Month |