Page 1 of 1

Set default attribute value by constraint module

Posted: Thu Feb 11, 2016 2:49 pm
by xephon
Hi,

probably I miss something quite trivial: I'd like to set an attribute to #REQUIRED by constraint module. I want <chapter> elements to always use @keyref. But the following constraint module does not resolve the %chapter-atts; entity and I'd like to avoid to resolve it manually in the constraint module, because this would also mean I'd have to manually add @props extensions to the constraint module.

Code: Select all

<!ENTITY chapter-constraints "(myBookmap chapter-c)">

<!ENTITY % chapter.attributes
"%chapter-atts;
keyref
CDATA
#REQUIRED">
Where is my mistake? How should I do that?

Thank you very much

Re: Set default attribute value by constraint module

Posted: Thu Feb 11, 2016 3:04 pm
by Radu
Hi Stefan,

The question is if the main DTD shell using the constraint is valid or not. The module in itself may be invalid but if the main DTD is valid, then that's OK.
If this does not work for you maybe you could attach your customization plugin to an email and I could try to look into this.

Regards,
Radu

Re: Set default attribute value by constraint module

Posted: Thu Feb 11, 2016 3:59 pm
by xephon
Thank you Radu,

you've got mail.

Greetings,
Stefan