OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] Attribute conditioning


hi,

I do exactly this, but I wrote 2 customization layers in the XSL parts one for "fop" (pdf) and one for "html" html output.

No need to add something in the original docbook (xml) file

It's my solution; maybe your's is better

Eric

Le 09/09/2022 Ã 14:54, Matteo Regazzo a ÃcritÂ:
Hi everybody,

I have a question (and I hope Iâll be able to explain my need).

Is it possible to manage the attributes with a condition?

For example (not real, just to simplify), imagine to have a long table as:

<table>

 ÂÂ â

 ÂÂ â

 ÂÂ â

</table>

And you want to change one or more attributes of the <table> element depending on the output format, something like

<table frame=âallâ>if the output format is HTML

<table frame=ânoneâ> if the output format is PDF

Obviously, the solution of use a condition in the <table> element is not praticable, because the whole table would be conditioned and we would need to write the entire table 2 times, one time per condition.

<table frame=âallâ outputformat=âHTMLâ>

 ÂÂ â

 ÂÂ â

 ÂÂ â

</table>

<table frame=ânoneâ outputformat=âPDFâ>

 ÂÂ â

 ÂÂ â

 ÂÂ â

</table>

Does it exists something similar to the following example, in the XLST world?

<table>

 Â <add-attribute-to-parent name=âframeâ value=âallâ outputformat=âHTMLâ/>

 Â <add-attribute-to-parent name=âframeâ value=ânoneâ outputformat=âPDFâ/>

 ÂÂ â

 ÂÂ â

</table>

Of course, Iâm not asking a solution for âframeâ and âtableâ, but a generic one. Something I suppose could be a pre-processing, but in this case I should edit the toolchain, and I would prefer to avoid itâ

What is the best method to solve this problem?

Thank you since now,

Matteo



Matteo Regazzo
Service Coordinator
Email: matteo.regazzo@cmz.it| Web: www.cmz.it
Tel: +39 0422 447446 	CMZ Sistemi Elettronici srl
Via dell'Artigianato, 21
Vascon di Carbonera (TV)
31050 ITALY 	
<https://www.cmz.it>
<https://www.sogaenergyteam.com/cmz/>


<https://www.cmz.it/repairs/>
From September 1, 2022 allÂproducts returned to CMZ must be approved in advance. Dal 1Â Settembre 2022 tutti i materiali resi a CMZ devono essere approvati preventivamente.
*www.cmz.it/repairs/*
------------------------------------------------------------------------
The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error please contact the sender and destroy any copies of this information.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]