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] | [Elist Home]


Subject: Re: DOCBOOK: 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


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


Powered by eList eXpress LLC