Thank you Jirka,
it seems to be an accessible way, but I'm not too able on stylesheets 
customization. If you have some tip (which files and where make modifications), 
to let me start with the right direction...
Certainly in the next few days I will need you guys.

Maybe from now on this argument may be better related to the docbook-apps 
mailing list...? I will probably ask for help there.

Thanks to everyone,
Matteo


Questa mi sembra una strada percorribile, purtroppo non sono così abile nel 
personalizzare i fogli di stile. Se hai una qualche dritta (quali file e dove 
modificare) per iniziare nella giusta direzione. Sicuramente nei prossimi 
giorni avrò bisogno di voi.
Immagino che da questo punto diventi un argomento della mailing list 
docbook-apps, probabilmente chiederò aiuto in quest’ultima.



Matteo Regazzo
Service Coordinator

Email: [email protected] | Web: www.cmz.it
Tel: +39 0422 447446 | Mob:

CMZ Sistemi Elettronici srl
Via dell'Artigianato, 21
Vascon di Carbonera (TV)

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.



-----Messaggio originale-----
Da: Jirka Kosek <[email protected]>
Inviato: lunedì 12 settembre 2022 15:21
A: Matteo Regazzo <[email protected]>; [email protected]
Oggetto: Re: [docbook] Attribute conditioning

On 09.09.2022 14:54, Matteo Regazzo wrote:
> <table frame=”all”>   if the output format is HTML
>
> <table frame=”none”> if the output format is PDF

You would usually use profiling for this, but for handling attribute values it 
is not very practical as profiling condition is attached to a whole element not 
only to single attribute.

> 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>

It would be better to use processing instruction for this, otherwise your 
document will not be valid DocBook, i.e.

<table>
    <?attr name="frame" value="all" outputformat="HTML"?>
    <?attr name="frame" value="none" outputformat="PDF"/>

With such markup it would be quite easy to modify profiling step in the 
stylesheets to add desired attributes to a parent element.

Jirka


--
------------------------------------------------------------------
   Jirka Kosek      e-mail: [email protected]      http://xmlguru.cz
------------------------------------------------------------------
      Professional XML and Web consulting and training services DocBook/DITA 
customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
     Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------


Reply via email to