RE: [xsl] Numbering of titles

Subject: RE: [xsl] Numbering of titles
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 10 Dec 2005 18:30:07 -0000
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@xxxxxxxx]
> Sent: 10 December 2005 18:24
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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
> Tilichargez cette version sur http://fr.messenger.yahoo.com

Current Thread
  • [xsl] Numbering of titles
    • drkm - Sat, 10 Dec 2005 16:51:28 +0100 (CET)
      • drkm - Sat, 10 Dec 2005 19:23:42 +0100 (CET)
        • Michael Kay - Sat, 10 Dec 2005 18:30:07 -0000 <=
      • <Possible follow-ups>
      • drkm - Sat, 10 Dec 2005 20:04:19 +0100 (CET)