/Michael Glavassevich/:

This feature [1] has been busted for so long I sometimes wonder if it was ever implemented in any version of Xerces 2.x. I once looked back through the CVS history and couldn't find any evidence that it existed anywhere but Xerces 1.x. I've forgotten what file (or what version of that file) I saw it in.

Thank you for the clarification. I can see a constant for that feature identifier defined in 'org.apache.xerces.impl.Constants'.

If I can determine precisely what this feature actually used to do I'd be willing to take a stab at it if folks are interested.

[1] http://issues.apache.org/jira/browse/XERCESJ-506

When an element declaration for an element being validated is missing, an error is emitted:

<!DOCTYPE doc-root [
  <!ELEMENT doc-root (elem-one,elem-two?)>
  <!ELEMENT elem-one (#PCDATA)>
]>
<doc-root>
  <elem-one> foo </elem-one>
  <elem-two> bar </elem-two>
</doc-root>

I guess this feature should trigger warning for missing element declarations (after the DTD has been loaded) for identifiers used in content models, although validation for these identifiers might not be necessary as in:

<!DOCTYPE doc-root [
  <!ELEMENT doc-root (elem-one,elem-two?)>
  <!ELEMENT elem-one (#PCDATA)>
]>
<doc-root>
  <elem-one> foo </elem-one>
</doc-root>

--
Stanimir


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to