-----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-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org

Reply via email to