[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Re: Default attribute value templates


Subject: Re: [xsl] Re: Default attribute value templates
From: tcn@xxxxxxxxxxxxx (Trevor Nash)
Date: Thu, 28 Jun 2001 10:20:39 GMT

>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



Current Thread
Keywords
xml