You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2006/01/30 08:12:36 UTC

[jira] Resolved: (XERCESJ-506) warn-on-undeclared-element feature not recognized

     [ http://issues.apache.org/jira/browse/XERCESJ-506?page=all ]
     
Michael Glavassevich resolved XERCESJ-506:
------------------------------------------

    Resolution: Fixed

The patch attached to this bug report doesn't match the description of the feature. Just to clarify what this feature does since it's been broken for so long; when the it is set to true a warning is reported for an element referenced in a content model that has not been declared. This is the user option described by the XML specification [1]: "At user option, an XML processor MAY issue a warning when a declaration mentions an element type for which no declaration is provided, but this is not an error." This has nothing to do with validation of elements [2] in the document.

I've restored the behaviour of this feature to as it was in an early version of Xerces 1.x where it was last working.

[1] http://www.w3.org/TR/2004/REC-xml-20040204/#elemdecls
[2] http://www.w3.org/TR/2004/REC-xml-20040204/#elementvalid

> warn-on-undeclared-element feature not recognized
> -------------------------------------------------
>
>          Key: XERCESJ-506
>          URL: http://issues.apache.org/jira/browse/XERCESJ-506
>      Project: Xerces2-J
>         Type: Bug
>   Components: DTD
>     Versions: 2.2.0
>  Environment: Operating System: All
> Platform: All
>     Reporter: ora01
>     Assignee: Michael Glavassevich
>  Attachments: bug-506-patch.txt
>
> The documented feature "http://apache.org/xml/features/validation/warn-on-
> undeclared-elemdef" is not recognized anymore. When setting this feature on a 
> DOMParser, an exception is thrown: 
> org.xml.sax.SAXNotRecognizedException: 
> http://apache.org/xml/features/validation/warn-on-undeclared-elemdef

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org