RE: [xsl] xsl::number from current note

Subject: RE: [xsl] xsl::number from current note
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 20 May 2004 22:25:14 +0100
The from attribute must be an XSLT pattern (not an XPath expression), and
"." is not a legal pattern.

I haven't come across any plausible reason why anyone would want to use the
"from" attribute of xsl:number with level="single". What are you trying to
achieve?

Michael Kay 

> -----Original Message-----
> From: Ming Yu [mailto:myu@xxxxxxxx] 
> Sent: 20 May 2004 19:11
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] xsl::number from current note
> 
> Hi,
> 
> Do you know what's the difference between
> <xsl:number level="single" from="*" count="SEC" format="1. "/>
> and
> <xsl:number level="single" from="." count="SEC" format="1. "/>
> 
> The second one sometimes does not work by giving error message:
> 
> XSLException Type is: XPathParserException
> Message is: Expected node test.
> pattern = '.'
> Remaining tokens: ('.')
> 
> Thanks in advance.
> 
> Ming

Current Thread