Re: number for attributes vs elements

Subject: Re: number for attributes vs elements
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 23 May 2000 14:05:23 -0600 (MDT)
> > In this context I would predict that the number inserted would be the
> > position of the attribute relative to all preceding 'match' 
> > attributes.
> 
> Saxon outputs "1" because there are no attributes on the preceding axis; the
> preceding axis will never contain any attribute nodes.

Argh, you're right. I not only didn't notice that the preceding axis
doesn't contain attributes, but I also didn't notice the explicit
exclusion of attributes in the description of the behavior of xsl:number
when level="any". Thanks.

Regardless, I guess XT's implementation of xsl:number is not quite
correct?

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread