Parse doctype declaration in comment
Posted: Thu Jan 31, 2013 11:26 pm
My company has a lot of Docbook books that have chapter, section, and procedure file entities included in them as entity references. In the doctype declaration in the book head, they look like this:
<!ENTITY ofed SYSTEM "ofed.xml">
In the document, they are referenced like this:
&ofed;
Because our old DTD doesn't understand xincludes, we have to comment out the doctype declaration in the included files in order for them to validate properly. Arbortext was somehow able to parse the doctype and entity declarations in the comment, but unfortunately Oxygen does not.
In the book view, everything looks fine, but when I "edit reference" on one of the chapter files, everything breaks in the chapter because the editor doesn't know what my doctype is or any of the entities inside it.
Can I define a set of entities that I have always loaded in Oxygen so I don't need to get them from the commented section?
Has anyone dealt with this before that can help me come up with a solution that doesn't involve changing the XML source documents? I need a solution that will work with our current source files.
Thanks.
<!ENTITY ofed SYSTEM "ofed.xml">
In the document, they are referenced like this:
&ofed;
Because our old DTD doesn't understand xincludes, we have to comment out the doctype declaration in the included files in order for them to validate properly. Arbortext was somehow able to parse the doctype and entity declarations in the comment, but unfortunately Oxygen does not.
In the book view, everything looks fine, but when I "edit reference" on one of the chapter files, everything breaks in the chapter because the editor doesn't know what my doctype is or any of the entities inside it.
Can I define a set of entities that I have always loaded in Oxygen so I don't need to get them from the commented section?
Has anyone dealt with this before that can help me come up with a solution that doesn't involve changing the XML source documents? I need a solution that will work with our current source files.
Thanks.