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=8002>.
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=8002

incompatible fixed value of referenced attribute.

           Summary: incompatible fixed value of referenced attribute.
           Product: Xerces2-J
           Version: 2.0.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Following XSD is parsed as valid.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  targetNamespace="http://xsdtesting"; xmlns:x="http://xsdtesting";
  elementFormDefault="qualified" attributeFormDefault="qualified">
  <xsd:attribute name="foo" fixed="123"/>
  <xsd:complexType name="attRef">
    <xsd:attribute ref="x:foo" fixed="456"/>
  </xsd:complexType>
  <xsd:element name="doc" type="x:attRef"/>
</xsd:schema>

In this XSD, global attribute 'foo' has fixed value '123' and
referenced with fixed value '456'.

>From my read of rec, this does not satisfy clause 2 of "3.5.6
Constraints on Attribute Use Schema Components".

As the result, each of followings parsed as invalid.

<x:doc xmlns:x="http://xsdtesting";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://xsdtesting fixed.xsd"
  x:foo="123" />

<x:doc xmlns:x="http://xsdtesting";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://xsdtesting fixed.xsd"
  x:foo="456" />

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

Reply via email to