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 ji...@apache.org on 2004/05/14 11:37:59 UTC
[jira] Created: (XERCESJ-962) minInclusive facet validated against lexical space, not value space
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-962
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-962
Summary: minInclusive facet validated against lexical space, not value space
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces2-J
Components:
XML Schema API
Versions:
2.6.2
Assignee:
Reporter: David Sheldon
Created: Fri, 14 May 2004 2:36 AM
Updated: Fri, 14 May 2004 2:36 AM
Description:
If I have a type thus:
<xsd:element name='Reason'>
<xsd:simpleType>
<xsd:restriction base='xsd:integer'>
<xsd:pattern value='[0-9][0-9]' />
<xsd:maxInclusive value='29' />
<xsd:minInclusive value='5' />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
I get the error message:
cvc-pattern-valid: Value '5' is not facet-valid with respect to pattern '[0-9][0-9]' for type 'null'.
5 is from the value space of "integer". It appears that xerces is checking the Value '5' against the lexical space of the derived type.
The spec: http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#dc-minInclusive
Says:
A value from the - value space- of the {base type definition}.
---------------------------------------------------------------------
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-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Updated: (XERCESJ-962) minInclusive facet validated against lexical space, not value space
Posted by ji...@apache.org.
The following issue has been updated:
Updater: David Sheldon (mailto:dws@decisionsoft.co.uk)
Date: Fri, 14 May 2004 2:38 AM
Comment:
Example schema exhibiting this problem
Changes:
Attachment changed to a.xsd
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XERCESJ-962?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-962
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-962
Summary: minInclusive facet validated against lexical space, not value space
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces2-J
Components:
XML Schema API
Versions:
2.6.2
Assignee:
Reporter: David Sheldon
Created: Fri, 14 May 2004 2:36 AM
Updated: Fri, 14 May 2004 2:38 AM
Description:
If I have a type thus:
<xsd:element name='Reason'>
<xsd:simpleType>
<xsd:restriction base='xsd:integer'>
<xsd:pattern value='[0-9][0-9]' />
<xsd:maxInclusive value='29' />
<xsd:minInclusive value='5' />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
I get the error message:
cvc-pattern-valid: Value '5' is not facet-valid with respect to pattern '[0-9][0-9]' for type 'null'.
5 is from the value space of "integer". It appears that xerces is checking the Value '5' against the lexical space of the derived type.
The spec: http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#dc-minInclusive
Says:
A value from the - value space- of the {base type definition}.
---------------------------------------------------------------------
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-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Assigned: (XERCESJ-962) minInclusive facet validated against lexical space, not value space
Posted by ji...@apache.org.
Message:
The following issue has been re-assigned.
Assignee: Sandy Gao (mailto:sandygao@ca.ibm.com)
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-962
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-962
Summary: minInclusive facet validated against lexical space, not value space
Type: Bug
Status: Open
Priority: Major
Project: Xerces2-J
Components:
XML Schema API
Versions:
2.6.2
Assignee: Sandy Gao
Reporter: David Sheldon
Created: Fri, 14 May 2004 2:36 AM
Updated: Wed, 19 May 2004 6:56 AM
Description:
If I have a type thus:
<xsd:element name='Reason'>
<xsd:simpleType>
<xsd:restriction base='xsd:integer'>
<xsd:pattern value='[0-9][0-9]' />
<xsd:maxInclusive value='29' />
<xsd:minInclusive value='5' />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
I get the error message:
cvc-pattern-valid: Value '5' is not facet-valid with respect to pattern '[0-9][0-9]' for type 'null'.
5 is from the value space of "integer". It appears that xerces is checking the Value '5' against the lexical space of the derived type.
The spec: http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#dc-minInclusive
Says:
A value from the - value space- of the {base type definition}.
---------------------------------------------------------------------
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-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Resolved: (XERCESJ-962) minInclusive facet validated against lexical space, not value space
Posted by ji...@apache.org.
Message:
The following issue has been resolved as FIXED.
Resolver: Sandy Gao
Date: Wed, 19 May 2004 7:06 AM
Should have used the base type to convert the lexical value to the actual value, then the "pattern" facet would be used. Fixed in CVS.
Please verify and close the bug. Thx.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-962
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-962
Summary: minInclusive facet validated against lexical space, not value space
Type: Bug
Status: Resolved
Priority: Major
Resolution: FIXED
Project: Xerces2-J
Components:
XML Schema API
Fix Fors:
2.6.2
Versions:
2.6.2
Assignee: Sandy Gao
Reporter: David Sheldon
Created: Fri, 14 May 2004 2:36 AM
Updated: Wed, 19 May 2004 7:06 AM
Description:
If I have a type thus:
<xsd:element name='Reason'>
<xsd:simpleType>
<xsd:restriction base='xsd:integer'>
<xsd:pattern value='[0-9][0-9]' />
<xsd:maxInclusive value='29' />
<xsd:minInclusive value='5' />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
I get the error message:
cvc-pattern-valid: Value '5' is not facet-valid with respect to pattern '[0-9][0-9]' for type 'null'.
5 is from the value space of "integer". It appears that xerces is checking the Value '5' against the lexical space of the derived type.
The spec: http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#dc-minInclusive
Says:
A value from the - value space- of the {base type definition}.
---------------------------------------------------------------------
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-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org