Skip Menu |

This queue is for tickets about the XML-Validator-Schema CPAN distribution.

Report information
The Basics
Id: 5871
Status: resolved
Priority: 0/
Queue: XML-Validator-Schema

People
Owner: Nobody in particular
Requestors: jacob [...] j-e-b.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.05
Fixed in: (no value)



Subject: minOccurs >= 2 will not work
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0"> <xsd:element name="top"> <xsd:complexType mixed="false"> <xsd:sequence> <xsd:element name="inner" type="xsd:string" minOccurs="2" maxOccurs="2" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> will not work at all because the regular expression used in ModelNode::check_model() will contain "(inner{2,2})". Correct for checking in mid-parse would be sth like "(inner(inner)?)?".
This is fixed. The fix will be in 1.06. Thanks for the report!