xsl-list
[Top] [All Lists]

RE: xsl::number from current note

2004-05-20 14:25:14
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(_at_)lanl(_dot_)gov] 
Sent: 20 May 2004 19:11
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--