xsl-list
[Top] [All Lists]

Re: [xsl] Condition Based Count of Sections

2007-04-13 05:06:16
Michael Kay wrote:
This is an area, incidentally, where as far as I can see there's no great
advantage in using XSLT 2.0 rather than 1.0. And contrary to what Abel said,
I think there's nothing in my stylesheet that depends on XSLT 2.0.

You are correct, of course. I thought the level "any" was added in XSLT 2.0, but it isn't (I see now that the biggest changes in xsl:number are 'select' attribute and formatting).

My example of by adjusting the pattern for removing sect2 or sect3 from the counting when the parent is resp. sect1 or sect2 without any p elements used parentheses in an XSLT 2.0-only way:

../(sect1 | sect2)/p


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