This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: re: text coloring
- To: docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: re: text coloring
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Tue, 09 Jan 2001 19:10:58 -0500
- References: <200101060840.JAA04068@studs3.sci.kun.nl>
/ "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