conditional coding with docbook

Here should go questions about transforming XML with XSLT and FOP.
elnino
Posts: 4
Joined: Thu Aug 18, 2005 5:56 pm

conditional coding with docbook

Post by elnino »

according to docbook, (http://www.sagehill.net/docbookxsl/Profiling.html) there are given attributes to use for conditional coding (or profiling), but I would like to use a customized profiling attribute.

When coding in oxygen, oxygen will not allow me to use my custom attribute. Is there a setting somewhere in oxygen to all this?

Thanks!

LN
elnino
Posts: 4
Joined: Thu Aug 18, 2005 5:56 pm

Post by elnino »

customized attbitues for docbook is described here http://www.sagehill.net/docbookxsl/Cust ... gAttr.html.

So basically I'm looking for a place to put the "profile.attribute "status"" or modify the dtd?

I suspect the dtd has to be modified?
elnino
Posts: 4
Joined: Thu Aug 18, 2005 5:56 pm

Post by elnino »

I needed to add this:

<!ENTITY % local.effectivity.attrib "product CDATA #IMPLIED">

TOPIC CLOSED.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Adding that parameter entity declaration as a customization of the DocBook DTD will enable <oXygen/> to offer the product attribute in the content completion window on many DocBook tags like title, para, sect1, sect2, variablelist, etc. This will make editing the file easier and it will keep it valid. To use the attribute in a profiling DocBook transformation you have to specify the value product for the attribute called profile.attribute of the profiling stylesheet and the value on which you want to profile, for example myProduct as the value of the attribute profile.value.

Regards,
Sorin
Post Reply