You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/10/30 12:54:01 UTC
DO NOT REPLY [Bug 14087] New: -
in namespace-aware mode, xmlns declarations are to be allowed anywhere, even if the DTD doesn't allow for "equivalent attributes"
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14087>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14087
in namespace-aware mode, xmlns declarations are to be allowed anywhere, even if the DTD doesn't allow for "equivalent attributes"
Summary: in namespace-aware mode, xmlns declarations are to be
allowed anywhere, even if the DTD doesn't allow for
"equivalent attributes"
Product: Xerces-C++
Version: 1.7.0
Platform: PC
OS/Version: Windows 9x
Status: NEW
Severity: Critical
Priority: Other
Component: Validating Parser (DTD)
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: tobiasreif@pinkjuice.com
Hi
When in namespace-aware mode, namespace declarations should not be
handled as attributes.
When validating this document:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/SVG/DTD/svg10.dtd" >
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title><!-- title --></title>
<desc>
<!-- description -->
</desc>
<!-- content -->
</svg>
this error should not not be flagged:
Error at file C:\tmp\from_stdin.820197, line 6, char 14
Message: Attribute 'xmlns:xlink' is not declared for element 'svg'
Errors occurred, no output available
The xmlns declarations are in the DTD for non-namespace-aware
validators. But namespace-aware validators should allow
xmlns declarations to occur in any form, with any prefix, on any
element, as specified in the Namepsaces in XML spec, and not raise
errors when these aren't allowed as attributes by the DTD, since they
are no attributes.
AFAIK :)
Tobi
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org