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] span like thing ?


Hi,
The automatic propagation of role values into class attributes only applies to four 
elements: emphasis, entry, para, and phrase. For other elements like markup, you can 
customize the class attribute generated for it with a small customization as described 
here:

http://www.sagehill.net/docbookxsl/UsingCSS.html#CustomClass

The mode="class.value" feature was added in version 1.73 of the stylesheets and gives 
you control of your class attribute values.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "David Cramer" <david@thingbag.net>
To: <docbook@lists.oasis-open.org>
Sent: Tuesday, May 10, 2011 7:42 AM
Subject: Re: [docbook] span like thing ?


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 05/10/2011 09:21 AM, Jean-Christophe Helary wrote:
>> I sincerely apologize for this series of trivial questions, but they are certainly 
>> not trivial to me...
>>
>> I have a <literal> block in which I have a number of <markup> spans.
>>
>> When I convert that to html I want some <markup> to be attributed some class and 
>> others to be attributed some other class, because in the end I want to use the 
>> classes to color them differently with a style sheet.
>>
>> Problem is that all the <markup> I have ends up transformed as a <span 
>> class="markup">, even if I put some attributes like [role="inline"] or 
>> [role="block"], which I eventually would love to see become the classes in the 
>> rendered html...
>>
>> So, is there a way to have:
>>
>> <markup role="block"> to be converted into an HTML <span class="block"> ?
>>
>> I have no preference for the DocBook tag, <markup> just ends up describing the 
>> contents nicely, but if there is something else that allows me to do what I want 
>> I'll be happy to change of tag.
>
> Hi Jean-Christophe,
>
> Have a look at http://www.sagehill.net/docbookxsl/UsingCSS.html
>
> Especially where he talks about emphasis.propagates.style and
> phrase.propagates.style.
>
> See also:
>
> http://docbook.sourceforge.net/release/xsl/1.76.1/doc/html/emphasis.propagates.style.html
>
> http://docbook.sourceforge.net/release/xsl/1.76.1/doc/html/phrase.propagates.style.html
>
> David
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNyU7LAAoJEMHeSXG7afUh9RwH/0sVrCrVBBIJtbNWj/QOxbLP
> VAEK/eXxMQVNmSDKot04jNJGQYzdvTNeQaqecV2PmGCDG9+peyDbcVp5Gsapiui3
> CdAra/rt1AXq2XTzj+Jwk/zMlcebPormKXLJXKnYsAhxMqkPncrkMf/inftDqUsB
> YmRTg+wzs7dzUi33uHnAlvVu6lFyIiO/YC3LbmUQ09f88JLhPq1aVRUQNouLoDzC
> tPRM12gCetoc6RXXyZ66vDOrckU1rlVf0E8a+UtJnRDCOJsMRkzBL+g2XmLTFjKY
> NmjEBixnS64p1J1VSmvnX6TXtrNyqJSvu4ILS56DnRGWqS4pL78VQunteQHG6rI=
> =XmEB
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>
>
> 



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