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: R: [docbook] Attribute conditioning


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: matteo.regazzo@cmz.it | 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 <jirka@kosek.cz>
Inviato: lunedà 12 settembre 2022 15:21
A: Matteo Regazzo <matteo.regazzo@cmz.it>; docbook@lists.oasis-open.org
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: jirka@kosek.cz      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
------------------------------------------------------------------




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