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 ji...@apache.org on 2004/05/28 17:38:00 UTC
[jira] Updated: (XERCESC-1220) Unrecognized attribute value for xsi:nil='1'
The following issue has been updated:
Updater: Matthias Jung (mailto:matthias.jung@xtradyne.com)
Date: Fri, 28 May 2004 8:37 AM
Comment:
Here a patch fixing this bug.
Apply from folder '~/xerces_2.5.0/src/xercesc' with
patch -p3 < ~/patchfile.txt
Changes:
Attachment changed to patchfile.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XERCESC-1220?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1220
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1220
Summary: Unrecognized attribute value for xsi:nil='1'
Type: Bug
Status: Unassigned
Priority: Minor
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.1.0
2.2.0
2.3.0
2.4.0
2.5.0
Assignee:
Reporter: Matthias Jung
Created: Fri, 28 May 2004 8:30 AM
Updated: Fri, 28 May 2004 8:37 AM
Environment: All systems
Description:
Within XML elements the xsi:nil attribute is only handled as logiacal true if its value is 'true'. Otherwise it is set to its default value: false.
XML Schema Spec also defines '1' to be a valid value to express logical true.
Here a simple example
XML instance:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ns:A xmlns:ns="xxx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<B xsi:nil="1"/>
</ns:A>
Schema definition:
<xsd:schema targetNamespace="xxx" xmlns:tns="xxx" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="B">
<xsd:sequence>
<xsd:element name="b1" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="A">
<xsd:sequence>
<xsd:element name="B" type="tns:B" nillable="true"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="A" type="tns:A"/>
</xsd:schema>
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org