customize xslt or customize the schema?

View: New views
2 Messages — Rating Filter:   Alert me  

customize xslt or customize the schema?

by Tim Arnold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi, I first posted this on docbook list; hopefully this is the appropriate place now. Sorry if you get duplicates...

Hi, I'm trying to decide how best to solve a problem I have with some tech documentation.
The doc is originally in LaTeX and I'm converting to DocBook 5 (using plasTeX). The doc contains both Figure and 'Output'  elements.
When rendered, a Figure is numbered as chapter.figure

The 'Output' element is like a  Figure, but appears only in Examples, and is numbered as chapter.example.output

There are of course references to both Figures and Outputs.

Which way should I go for this situation--add a new element by customizing the schema or customize the xsl stylesheets to use different numbering and gentext? I can differentiate between the two with xpath. (something like this: chapter//figure versus chapter/example/figure@remap=Output)

thanks for any insights.
--Tim Arnold



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


Re: customize xslt or customize the schema?

by Philipp Kempgen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tim Arnold schrieb:
> Which way should I go for this situation--add a new element by customizing the schema or customize the xsl stylesheets to use different numbering and gentext? I can differentiate between the two with xpath. (something like this: chapter//figure versus chapter/example/figure@remap=Output)

I'd say customize the XSL stylesheets.
If you customize the schema then it's not docbook any more.


    Philipp Kempgen
--
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 ->  http://www.amoocon.de
--

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...