Creating Styles for an Attribute

Beth Van Wie <[email protected]> Fri, 10 Sep 2021 19:19:23 +0000
Newsgroups gmane.text.docbook.apps
Message-ID <AS8PR01MB76058668D958D8BF09A1CF9EF5D69@AS8PR01MB7605.eurprd01.prod.exchangelabs.com>
Hello,

I'm trying to customize the Docbook stylesheets so my profiling attributes will produce colored text when I build the document without profiling. I currently have stylesheets that pull out the profiled information as needed, and I want to create a new stylesheet that uses the same attributes, does not profile, and colors the profiled sections.

I currently use the attribute doc="" to profile my documents.

For example:

<para doc="FAT"> </para>
<step doc="SAT"> </step>

I commonly profile the following elements: para, row, step, procedure, section, table, figure, lists (different kinds of lists), and others.

I was able to write a stylesheet that would do this for a para element, and for a para element inside a step element, but the way I am doing it, I will have to write a new template for each element. Is there a way I can write one template to cover every time I use doc=""?

Thank you,

Beth


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows