Set default attribute value by constraint module
Post here questions and problems related to editing and publishing DITA content.
Set default attribute value by constraint module
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.
Where is my mistake? How should I do that?
Thank you very much
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">
Thank you very much
stefan-jung.org – Your DITA/DITA-OT XML consultant
Re: Set default attribute value by constraint module
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service