Consideration of DTDs and XSDs
XML files are declared on the basis of document type definitions (DTD) or XML Schema definitions (XSD). These are grammars defining rules for the creation of the XML files.
XML files are validated on the basis of underlying DTDs or XSDs. In this context, it is checked whether the XML files comply with the rules defined in the DTD or XSD. In Across, this validation is performed by the QM criterion validity check.
To verify the validity of XML files in Across, the DTD or XSD on which the XML file is based must be uploaded when the XML file is checked in.
- This can be done in several ways:
- The XML file contains a reference to a (external) DTD or XSD. This external DTD or XSD is automatically uploaded during the check-in to Across. In this way, the validation of the XML file will take place on the basis of this DTD or XSD. For this reason, it must be made sure that Across has access to the DTD or XSD during the check-in process.
Across also supports DTDs/XSDs that reference one or several other DTDs or XSDs as well as other files such as entity definitions. During check-in, both the DTD/XSD that the XML document refers to and the other DTDs/XSDs and other files that are referenced in this DTD/XSD are loaded. For this reason, it must be made sure that during check-in, Across has access to all referenced files.
- The XML file itself contains an internal DTD or XSD. This internal DTD or XSD is also automatically uploaded during the check-in to Across. In this case, too, the validation of the XML file will take place on the basis of this DTD/XSD.
- In the document settings template on whose basis the XML file is checked in, you can select a DTD or XSD. The DTD or XSD is imported in Across and serves as a master DTD or XSD. This means that this DTD/XSD will be used even if an XML file that is checked in to Across makes reference to another external DTD or XSD or contains another internal DTD or XSD.
To load a master DTD in Across, select the respective document settings template via Tools > System Settings > Document Settings > Tagged XML, select Configure > DTD Settings or XSD Settings, and click Load DTD or Add XSD.
If the master DTD or XSD is updated (by importing a new DTD/XSD in the document settings template), this new DTD/XSD will automatically be taken into consideration for XML files that have already been checked in. Thus, these XML files do not need to be checked in anew.