This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: number for attributes vs elements
- To: xsl-list at mulberrytech dot com
- Subject: Re: number for attributes vs elements
- From: Mike Brown <mike at skew dot org>
- Date: Tue, 23 May 2000 14:05:23 -0600 (MDT)
- Reply-To: xsl-list at mulberrytech dot com
> > 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