OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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

Subject: Re: [docbook-apps] Text style and color

It looks like DocBook is just being used as an intermediate format that is 
just used for formatting and is not retained.  If that is the case, then 
you could use existing DocBook elements and add some attributes that 
identify the formatting features you want.  Your example could be converted 
to this DocBook:

<phrase role="color: blue; style: underline;">A part of</phrase>
<phrase role="color: black; style: normal">a text for xxx</phrase>

Or use some other convention for identifying style information.  This 
markup will validate and you would not have to modify the DocBook DTD. You 
just need to add some XSL templates to a customization layer to parse the 
role attributes and apply the styles.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: <xav.dev@free.fr>
To: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
Sent: Monday, March 26, 2007 9:52 AM
Subject: [docbook-apps] Text style and color

Hi all,

I have to produce documents with a complex presentation for some part of 

My toolchain consists in :
XML (with owner format) --|XSLT|--> DocBook --|docbook-xsl|--> PDF

In my source XML document, there is some data where format description is 
of the data.
<wording>A part of</wording>
<wording> a text for xxx</wording>

In my final PDF document, I want to display xxx elements with a pretty 
representing a concatenation of txt (taking into account color and style

For this purpose, I think I have two choices, but I'm not sure the first is
possible :

1/ Generating a docbook document with color and style inside. I don't find 
documentation about customizing text color in docbook (i.e. without 
it in my customization layer). Is it possible to do this ?

2/ Generating a docbook document with "xxx" elements inside and treating 
them in
the presentation layer. This means that my docbook format is extented with 
"xxx" element. Regarding the reference schema of DocBook publishing
model(http://nwalsh.com/docbook/procdiagram/) I guess it is possible. Is 
there a
documentation guide for extending DocBook format with owner elements ?

Thanks in advance.


To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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