Reputation: 2135
I would like to validate different DITA documents (topics, maps, etc.) against DITA but i am a bit confused about the DITA xsd files. The xsd package contains a lot of xsd files in different directories. A lot of the files define the same elements, groups (without redefine, for example attribute group domains-att).
So i guess there is a "main" xsd file (sub set of all the xsd files) for every type of DITA document. Is that true and if yes, what are the main files? If it is not true, could you please tell me how validation of a DITA document works if there are multiple definitions of the same types.
Upvotes: 2
Views: 1152
Reputation: 2256
Proper validation of CALS tables within DITA poses additional problems due to co-constraints that XSD (at least in 1.0 form) can't express.
If you're Ok with using Schematron, there's a cals-table-schematron defintion that handles this.
Upvotes: 0
Reputation: 656
You may find my DITA specialization tutorials useful as an introduction to DITA grammar design:
http://dita4practitioners.github.io/dita-specialization-tutorials/
The tutorials focus on DTD syntax because that's what most DITA users use, but there is an XSD document type shell tutorial, which is directly relevant to your question here:
Eliot
Upvotes: 2
Reputation: 5892
The main XSD files are named <topic type name>.xsd
for each topic type, for example topic.xsd
, concept.xsd
, or map.xsd
.
Upvotes: 1