This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: re: text coloring


/ "E.L. Willighagen" <egonw@sci.kun.nl> was heard to say:
| > then customise the style-sheets to process the role appropriately.
| 
| that is indeed what i tried yesterday. haven't got it working yet.
| What should the XSLT matching rule look like?
| 
| I tried "para[@role='passed']" but that did not seem to work.

This works for me:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

<xsl:import href="../html/docbook.xsl"/>

<xsl:template match="para[@role='passed']">
  <p><font color="green"><xsl:apply-templates/></font></p>
</xsl:template>

</xsl:stylesheet>

What didn't seem to work for you?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | Where it is permissible both to
http://www.oasis-open.org/docbook/ | die and not to die, it is an abuse
Chair, DocBook Technical Committee | of valour to die.--Mencius

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]