Schema and DTD in document type association
Posted: Mon Apr 18, 2011 12:53 pm
It's quite standard practice, I think, if using schema for validation, also to declare a DTD for entities. I can do both fine within an XML file. I am now looking at whether I can make use of Document Type Associations in Oxygen so that I don't have to declare my Schema, DTD, CSS etc. explicitly within every file. I have a few questions.
When I set up a Document Type Association, if I have put entities in an external DTD, can I refer to this as well as the Schema that I am using for validation?
Or must I still declare that external DTD separately in every instance file if I want to use to my Schema in the Document Type Association?
And, in fact, if I do declare (in every XML instance file) a DTD which contains only entities, will that declaration then cause the Schema set in the Document Type Association | Schema tab (where it does say 'The schema defined here is used only if there is no schema detected in the XML file.') to be ignored, meaning that I then have to declare the Schema in each instance file anyway?
Any guidance on how this common situation is best handled with Oxygen would be appreciated.
When I set up a Document Type Association, if I have put entities in an external DTD, can I refer to this as well as the Schema that I am using for validation?
Or must I still declare that external DTD separately in every instance file if I want to use to my Schema in the Document Type Association?
And, in fact, if I do declare (in every XML instance file) a DTD which contains only entities, will that declaration then cause the Schema set in the Document Type Association | Schema tab (where it does say 'The schema defined here is used only if there is no schema detected in the XML file.') to be ignored, meaning that I then have to declare the Schema in each instance file anyway?
Any guidance on how this common situation is best handled with Oxygen would be appreciated.