Page 1 of 1

conditional coding with docbook

Posted: Thu Apr 06, 2006 6:24 pm
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

Posted: Thu Apr 06, 2006 6:25 pm
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?

Posted: Thu Apr 06, 2006 7:21 pm
by elnino
I needed to add this:

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

TOPIC CLOSED.

Posted: Fri Apr 07, 2006 11:04 am
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