I think that (2) - a two-pass solution - is probably the simplest to
implement. Anything else would involve changing the code you use to generate
the XSLT stylesheet, which you probably don't want to make any more complex
than it is already.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: drkm [mailto:darkman_spam(_at_)yahoo(_dot_)fr]
Sent: 10 December 2005 18:24
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Numbering of titles
drkm wrote:
I wonder if such a thing is possible with the stateless
nature of XSLT?
BTW, I use Saxon-SA 8.6.1, called from Java.
Actually, I think there are three possible solution:
1) implementing a Java extension that maintain state.
IMHO not a very good idea;
2) collecting all the result tree, then apply a template
to that tree that resolve the numbering of the
counters effectively outputed. IMHO time-consuming,
but less than the FO rendition itself;
3) using a functionality of the output language. So
make it no longer an XSLT problem, and resolve the
numbering after the transformation. IMHO, the best
choice if supported by the target language.
So now my FO-related question: is there a solution to
numbering in XSL-FO ?-)
And if not, what do you think of the 2) ?
Regards,
--drkm
______________________________________________________________
_____________
Appel audio GRATUIT partout dans le monde avec le nouveau
Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.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>
--~--
--~------------------------------------------------------------------
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>
--~--