This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: Default attribute value templates
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Re: Default attribute value templates
- From: tcn at melvaig dot co dot uk (Trevor Nash)
- Date: Thu, 28 Jun 2001 10:20:39 GMT
- Organization: Melvaig Software Engineering Limited
- References: <20010627202840.55421.qmail@web14501.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
>MSXML does not signal an error and interprets the lack of @order or an empty string
>value of @order exactly as you wanted -- the whole AVT is discarded and no "order"
>attribute is specified.
>
>I wonder if this is not a bug in MSXML 4.
>
Perhaps not a bug, but a workaround for just this difficulty. I am
using Saxon 6.2.2. I would be interested to hear what other
processors do with:
XML file:
<x><d>20</d><d>10</d></x>
XSLT:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="x">
<xsl:apply-templates>
<xsl:sort order="{@order}"/>
</xsl:apply-templates>
</xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list