Restriction of DITA domain

This should cover W3C XML Schema, Relax NG and DTD related problems.
Pascale
Posts: 33

Restriction of DITA domain

Thu Mar 05, 2015 5:24 pm

Hi,
DITA 1.2 specification says in section 2.1.4.4 "For example, a constraint on the Programming Domain could reduce the list of included extension elements to <codeph> and <codeblock>."

This is exactly what I want, but I do not understand how to do it!

Do I need to include the Programming Domain in my shell DTD, and then add a restriction module?
I understand how to restrict, for example, the pr-d-ph entity, but how do I undeclare the elements that I do not want to include in my DTD, such as synph or apiname ?

Thanks in advance for your help,
Pascale
Radu
Posts: 5221

Re: Restriction of DITA domain

Fri Mar 06, 2015 10:35 am

Hi Pascale,

Possibly Eliot Kimber's tutorial about creating a constraint module should help:

http://www.xiruss.org/tutorials/dita-specialization/body/part-config-and-extend/tutorials/constraint-module/creating-constraint-module.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Pascale
Posts: 33

Re: Restriction of DITA domain

Thu Mar 19, 2015 12:08 pm

Hi Radu,

thanks for reminding me the link, I agree that Eliot Kimber website and book is an invaluable resource for DITA specialization.
However I am looking for more: what I want to do is to remove elements from an existing DITA Domain, and I could not find any info about that.

The solution I implemented was to include in my shell DTD a copy of the original DITA domain where I have removed all entities related to the elements I do not want to have in my DTD. I have kept other entities, including the domain declaration attribute, as is.

I am not sure that this way of doing it is valid regarding the rules of DITA architecture and DTD specialization, but both Oxygen and the DITA OT accept my DTD, so that's OK for now.

Kind regards,
Pascale
Radu
Posts: 5221

Re: Restriction of DITA domain

Thu Mar 19, 2015 12:37 pm

Hi Pascale,

That looks like the proper way to do things.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests