Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESJ-955

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESJ-955
    Summary: InvalidRegex for correct regular expression
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Xerces2-J
 Components: 
             XML Schema API
   Versions:
             2.5.0

   Assignee: 
   Reporter: Dietrich Vatter

    Created: Fri, 7 May 2004 10:18 AM
    Updated: Fri, 7 May 2004 10:18 AM
Environment: Windows 2000, java version "1.4.1_02"

Description:
running org.xml.sax.XMLReader with this java code

reader = XMLReaderFactory.createXMLReader();
reader.setFeature("http://apache.org/xml/features/validation/schema";, true);
reader.setFeature("http://xml.org/sax/features/validation";, true);

against this schema extract (original taken from www.bmecat.org)

<xsd:simpleType name="dtTIMEZONETYPE">
<xsd:restriction base="xsd:string">
<xsd:pattern value="([+-]([0-1][0-9]|2[0-3])(:[0-5][0-9]))|Z"/>
</xsd:restriction>
</xsd:simpleType>

in this error:

[Error] bmecat_new_catalog_1_2.xsd:2952:38: InvalidRegex: Pattern value 
'([+-]([0-1][0-9]|2[0-3])(:[0-5][0-9]))|Z' is not a valid regular expression. The 
reported error was: ''-' is an invalid character range. Write '\-'.'.

Looks like it assumes a range when hitting the '-', but it is actually just a 
character. Probably needs to check whether '-' is at beginning or and of brackets.


---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to