xquery options for handling / persisting DTD declarations?
Posted: Tue Jul 10, 2012 11:10 pm
Hi,
I'd like to be able to update documents with xquery update and maintain the DTD declaration.
The DTD declaration (including entities, etc) gets stripped when I apply an update and I notice that this happens even when reading it into a variable and returning it, ie fn:doc('my_DTD_disappears.xml').
Any help is greatly appreciated. I've heard that the parser doesn't consider the doctype declaration to be part of the document, but if it interprets it, then it must be able to "reinstate" it... ?
I'd rather not resort to brute-force options like wrapping the whole thing in an element, updating, then unwrapping
Thanks,
Colin
I'd like to be able to update documents with xquery update and maintain the DTD declaration.
The DTD declaration (including entities, etc) gets stripped when I apply an update and I notice that this happens even when reading it into a variable and returning it, ie fn:doc('my_DTD_disappears.xml').
Any help is greatly appreciated. I've heard that the parser doesn't consider the doctype declaration to be part of the document, but if it interprets it, then it must be able to "reinstate" it... ?
I'd rather not resort to brute-force options like wrapping the whole thing in an element, updating, then unwrapping
Thanks,
Colin