Subject: Re: New User- sort xml using xsl
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 31 Oct 2002 11:07:43 +0000
|
Hi Peter,
> Hello. I have spent a bit of time trying to implement xsl:sort on an
> xml file, without success. I am trying to sort on the field_value of
> attribute "seq" (i.e. 88 and 157). Extracts of files follows. Pls
> see blue, commented code, in the xsl file for an idea of what I am
> trying to do. If anyone could offer some guidance it would be
> appreciated.
It looks like you're attempting to use XSLT elements (e.g. <xsl:sort>)
in a stylesheet that's using the WD-xsl namespace
(http://www.w3.org/TR/WD-xsl). If you want to use XSLT 1.0, you should
use the XSLT namespace:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
...
</xsl:stylesheet>
Have a look at the MSXML FAQ at
http://www.netcrucible.com/xslt/msxml-faq.htm to find out about the
difference between the two languages.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|