Subject: [xsl] Identity plus sort From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx> Date: Thu, 07 Aug 2003 08:36:59 +0100 |
<?xml version="1.0" encoding="utf-8"?> <doc> <header1>h1</header1> <header2>h2</header2> <header3>h3</header3> <matchList att1="val1"> <matchItem date="2003-02-01"> <actionList att1="val1"> <actionItem>2002-02-01</actionItem> <actionItem>2002-03-01</actionItem> <actionItem>2002-01-01</actionItem> </actionList> </matchItem> <matchItem date="2003-01-01"> <actionList att1="val2"> <actionItem>2002-01-01</actionItem> <actionItem>2002-02-01</actionItem> <actionItem>2002-03-01</actionItem> </actionList> </matchItem> <matchItem date="2003-03-01"> <actionList att1="val3"> <actionItem>2002-03-01</actionItem> <actionItem>2002-01-01</actionItem> <actionItem>2002-02-01</actionItem> </actionList> </matchItem> </matchList> </doc>
<?xml version="1.0" encoding="utf-8"?> <doc> <header1>h1</header1> <header2>h2</header2> <header3>h3</header3> <matchList att1="val1"> <matchItem date="2003-01-01"> <actionList att1="val2"> <actionItem>2002-01-01</actionItem> <actionItem>2002-02-01</actionItem> <actionItem>2002-03-01</actionItem> </actionList> </matchItem> <matchItem date="2003-02-01"> <actionList att1="val1"> <actionItem>2002-01-01</actionItem> <actionItem>2002-02-01</actionItem> <actionItem>2002-03-01</actionItem> </actionList> </matchItem> </matchItem> <matchItem date="2003-03-01"> <actionList att1="val3"> <actionItem>2002-01-01</actionItem> <actionItem>2002-02-01</actionItem> <actionItem>2002-03-01</actionItem> </actionList> </matchItem> </matchList> <newNode><!-- content --></newNode> </doc>
<xsl:template match="actionList"> <xsl:copy> <xsl:for-each select="actionItem"> <xsl:sort select="." order="ascending"/> <xsl:copy-of select="."/> </xsl:for-each> </xsl:copy> </xsl:template> </xsl:stylesheet>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] declare xsl parameter, Lionel Crine | Thread | Re: [xsl] Identity plus sort, Armen Martirossian |
[xsl] declare xsl parameter, Lionel Crine | Date | RE: [xsl] Variables, Michael Kay |
Month |