Validating XML with DTD through a Catalog
Posted: Sat Jan 21, 2012 6:16 pm
Hi,
I am using Oxygen 13.2 and am going though some DITA tutorials that use DTDs.
I believe this question is general XML, not DITA specific, but will re-post in the DITA forum if you believe it is specific to DITA.
I have setup a DTD that is accessed through an XML catalog. Oxygen is resolving though the catalog and validating my document.
My question is in regards to the <!DOCTYPE> statement, here:
As you can see, system ID is set to ".dtd", my understanding it's value is not used. Obviously, the name is bogus, my dtd is named "faq-question.dtd". I can change the ".dtd" to anything as long as it has the ".dtd" (e.g. "bogus.dtd") and it still works. But if I change the ".dtd" to anything that does not include the ".dtd" (e.g. "bogus") then Oxygen no longer validates my document through the DTD. I get "There is no Schema or DTD associated with this document" errors.
From what I have read the system ID part of the public DTD is unused. Is this expected behavior for the DTD validation in Oxygen?
Thanks,
- Michael Hare
I am using Oxygen 13.2 and am going though some DITA tutorials that use DTDs.
I believe this question is general XML, not DITA specific, but will re-post in the DITA forum if you believe it is specific to DITA.
I have setup a DTD that is accessed through an XML catalog. Oxygen is resolving though the catalog and validating my document.
My question is in regards to the <!DOCTYPE> statement, here:
Code: Select all
<!DOCTYPE faq-question
PUBLIC "urn:pubid:example.org:doctypes:dita:faq-question" ".dtd"
>
From what I have read the system ID part of the public DTD is unused. Is this expected behavior for the DTD validation in Oxygen?
Thanks,
- Michael Hare