logo       

[jira] Assigned: (XERCESJ-1061) Regex "$" and "^" characters treated as spe: msg#00043

Subject: [jira] Assigned: (XERCESJ-1061) Regex "$" and "^" characters treated as special chars in conflict with XML Schema spec
     [ http://issues.apache.org/jira/browse/XERCESJ-1061?page=all ]

Michael Glavassevich reassigned XERCESJ-1061:
---------------------------------------------

    Assignee: Michael Glavassevich

> Regex "$" and "^" characters treated as special chars in conflict with XML 
> Schema spec
> --------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1061
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1061
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema datatypes
>    Affects Versions: 2.6.2
>         Environment: Test Environment: Win XP SP1, JDK v1.5.0_02, Xerces 
> v2.6.2 (manually used; overrides any other, if packaged with the JDK)
>            Reporter: Darien Kindlund
>         Assigned To: Michael Glavassevich
>            Priority: Minor
>         Attachments: RegexParser.diff, regexparser.java
>
>
> Xerces rejects the following schema:
> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
>  <xs:element name="test">
>   <xs:simpleType>
>    <xs:restriction base="xs:string">
>     <xs:pattern value="$?[0-9]+\.[0-9]{2}" />
>    </xs:restriction>
>   </xs:simpleType>
>  </xs:element>
> </xs:schema>
> The code within org.apache.xerces.impl.xpath.regex.RegexParser throws a 
> parser exception over the use of the "$?" characters, unless the "$" 
> character is escaped. For example, this works:
>     <xs:pattern value="\$?[0-9]+\.[0-9]{2}" />
> The fundamental problem is that the Xerces RegexParser code does NOT follow 
> the XML Schema specification, as defined by this URL:
> http://www.w3.org/TR/2000/WD-xmlschema-2-20000407/#dt-metac
> Specifically, the XML Schema specification does NOT give special meaning to 
> the "$" and "^" characters, whereas the RegexParser code seems to indicate 
> that these characters have the normal, standard UNIX definitions of 
> "end-of-line" and "start-of-line" anchors respectively.
> Regards,
> --
> Darien Kindlund
> The MITRE Corporation
> InfoSec Engr / Scientist, Sr.
> kindlund@xxxxxxxxx

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


<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