xsl-list
[Top] [All Lists]

RE: <xsl:number?

2005-09-14 15:25:33
Hard to tell what you're doing without more info, e.g. what is the context
node?

Using "from" with the default level="single" hardly ever makes sense, and in
some cases in XSLT 1.0 I don't think it's well-defined (e.g. in the case
where nothing matches the "from" pattern).

Michael Kay
http://www.saxonica.com/

-----Original Message-----
From: Dan Vint [mailto:dvint(_at_)dvint(_dot_)com] 
Sent: 14 September 2005 20:59
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] <xsl:number?

I thought I understood how number worked but recently I have 
come across 
tow places where my sequence restarts in unusual places. For 
instance I 
have a simple numbering for footnotes that looks like this:

<xsl:number count="footnote" from="div1" format="1"/>

The way I understand this, the footnotes should be numbered 
sequentially 
starting at 1, and restart at one when ever a new div1 is seen.

The result I get in my output for several footnotes that fall 
on the same 
page and inside the same div1 is as follows:

1
1
1
2

Now these footnotes fall in different elements, nested at 
different levels, 
but all within the same div1. Is there something else that 
can affect the 
numbering sequence outside of the statement I have quoted above?

..dan
--------------------------------------------------------------
-------------
Danny Vint

Specializing in Panoramic Images of California and the West
http://www.dvint.com

voice: 510-522-4703


     



--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>