logo       

[jira] Commented: (XERCESJ-955) InvalidRegex for correct regular expression: msg#00021

Subject: [jira] Commented: (XERCESJ-955) InvalidRegex for correct regular expression
    [ 
https://issues.apache.org/jira/browse/XERCESJ-955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544797
 ] 

Dave Hoffer commented on XERCESJ-955:
-------------------------------------

Yes, I too have schemas defined with this problem.  What is the fix/workaround? 
 How can I change the schema to that xerces can handle the same functionality?

> InvalidRegex for correct regular expression
> -------------------------------------------
>
>                 Key: XERCESJ-955
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-955
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema API
>    Affects Versions: 2.5.0
>         Environment: Windows 2000, java version "1.4.1_02"
>            Reporter: Dietrich Vatter
>            Priority: Minor
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe