« Return to Thread: customize xslt or customize the schema?

RE: customize xslt or customize the schema?

by Richard Hamilton-2 :: Rate this Message:

Reply to Author | View in Thread

Tim,

To the extent that I understand what you are trying
to do, I think I'd go with customizing the stylesheet.
I prefer not to mess with the schema unless I have to.

Dick Hamilton
---------------------------------
XML Press
XML for Technical Communicators
http://xmlpress.net
(970) 231-3624


> -----Original Message-----
> From: Tim Arnold [mailto:Tim.Arnold@...]
> Sent: Thursday, July 02, 2009 11:36 AM
> To: docbook@...
> Subject: [docbook] customize xslt or customize the schema?
>
>
> 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-unsubscribe@...
> For additional commands, e-mail: docbook-help@...
>
>



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

 « Return to Thread: customize xslt or customize the schema?