xsl-list
[Top] [All Lists]

Re: [xsl] hierarchic counting in flat structures

2012-11-02 08:06:12

How about

<xsl:number from="H3" level="any"/>

It's not the usual use case given for level="any", but I think it should work, 
provided that an H3 actually exists.

(It's a shame that it doesn't work with level="single": the from attribute 
would be a lot more useful if it were defined this way).



On 02/11/2012 11:26, Norbert Heidbrink wrote:
Hi folks,


[Michael Kay]:
Have you tried

<xsl:number from="H3"/>

I did.
However, this yields the same result as a pure <xsl:number />
All the H4 of the document are counted, not just the ones that follow
the latest H3.

(Using Saxon-HE 9.2.1.1J)


Best wishes,
Norbert

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