You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Kasper Døring (JIRA)" <xe...@xml.apache.org> on 2005/10/31 11:29:55 UTC

[jira] Created: (XERCESC-1521) Error in regexpr matching

Error in regexpr matching
-------------------------

         Key: XERCESC-1521
         URL: http://issues.apache.org/jira/browse/XERCESC-1521
     Project: Xerces-C++
        Type: Bug
  Components: Validating Parser (Schema) (Xerces 1.5 or up only)  
    Versions: 2.7.0    
 Environment: Windows XP Professional SP2, MS Visual C++ 6.0, A newly downloaded binary distribution of Xerces-C 2.7.0
    Reporter: Kasper Døring


Hi

I use the followin type definition:
  <xsd:simpleType name="Real_type">
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="(\+|\-)?[0-9]*(([0-9].)|(.[0-9]))?[0-9]*(e(\+|\-)?[0-9]+)?"/>
    </xsd:restriction>
  </xsd:simpleType>

to match decimal values using the e-notation (the regexpr is not perfet I know).
When I try to validate the value '1.e23' (for instance) the validation fails even though it is clearly valid.

The problem disapears when I move to a Linux (Debian) platform and run the exact code.
I'll gladly email some code and example XML-files

Best regards
Kasper Døring









-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Assigned: (XERCESC-1521) Error in regexpr matching

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1521?page=all ]

Alberto Massari reassigned XERCESC-1521:
----------------------------------------

    Assign To: Alberto Massari

> Error in regexpr matching
> -------------------------
>
>          Key: XERCESC-1521
>          URL: http://issues.apache.org/jira/browse/XERCESC-1521
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.7.0
>  Environment: Windows XP Professional SP2, MS Visual C++ 6.0, A newly downloaded binary distribution of Xerces-C 2.7.0
>     Reporter: Kasper Døring
>     Assignee: Alberto Massari

>
> Hi
> I use the followin type definition:
>   <xsd:simpleType name="Real_type">
>     <xsd:restriction base="xsd:string">
>       <xsd:pattern value="(\+|\-)?[0-9]*(([0-9].)|(.[0-9]))?[0-9]*(e(\+|\-)?[0-9]+)?"/>
>     </xsd:restriction>
>   </xsd:simpleType>
> to match decimal values using the e-notation (the regexpr is not perfet I know).
> When I try to validate the value '1.e23' (for instance) the validation fails even though it is clearly valid.
> The problem disapears when I move to a Linux (Debian) platform and run the exact code.
> I'll gladly email some code and example XML-files
> Best regards
> Kasper Døring

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Resolved: (XERCESC-1521) Error in regexpr matching

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1521?page=all ]
     
Alberto Massari resolved XERCESC-1521:
--------------------------------------

    Resolution: Duplicate

Duplicate of  XERCESC-1512

> Error in regexpr matching
> -------------------------
>
>          Key: XERCESC-1521
>          URL: http://issues.apache.org/jira/browse/XERCESC-1521
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.7.0
>  Environment: Windows XP Professional SP2, MS Visual C++ 6.0, A newly downloaded binary distribution of Xerces-C 2.7.0
>     Reporter: Kasper Døring
>     Assignee: Alberto Massari

>
> Hi
> I use the followin type definition:
>   <xsd:simpleType name="Real_type">
>     <xsd:restriction base="xsd:string">
>       <xsd:pattern value="(\+|\-)?[0-9]*(([0-9].)|(.[0-9]))?[0-9]*(e(\+|\-)?[0-9]+)?"/>
>     </xsd:restriction>
>   </xsd:simpleType>
> to match decimal values using the e-notation (the regexpr is not perfet I know).
> When I try to validate the value '1.e23' (for instance) the validation fails even though it is clearly valid.
> The problem disapears when I move to a Linux (Debian) platform and run the exact code.
> I'll gladly email some code and example XML-files
> Best regards
> Kasper Døring

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1521) Error in regexpr matching

Posted by "Sylvain Sauvage (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1521?page=comments#action_12360043 ] 

Sylvain Sauvage commented on XERCESC-1521:
------------------------------------------

Hi,

I've the same problem here, with a much simpler expression:
(0?[1-9])|(1[012])

(to match a month number), and I get this error message:
Datatype error: Type:InvalidDatatypeValueException, Message:Value '10' does not match regular expression facet '(0?[1-9])|(1[012])'

It correctly matched months 1 to 9 that were just before that annoying 10.

I'm using libxerces 2.7.0 from Debian Sid, i386 and amd64 (different computers, same problem).

Cordially,
Sylvain Sauvage


> Error in regexpr matching
> -------------------------
>
>          Key: XERCESC-1521
>          URL: http://issues.apache.org/jira/browse/XERCESC-1521
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.7.0
>  Environment: Windows XP Professional SP2, MS Visual C++ 6.0, A newly downloaded binary distribution of Xerces-C 2.7.0
>     Reporter: Kasper Døring

>
> Hi
> I use the followin type definition:
>   <xsd:simpleType name="Real_type">
>     <xsd:restriction base="xsd:string">
>       <xsd:pattern value="(\+|\-)?[0-9]*(([0-9].)|(.[0-9]))?[0-9]*(e(\+|\-)?[0-9]+)?"/>
>     </xsd:restriction>
>   </xsd:simpleType>
> to match decimal values using the e-notation (the regexpr is not perfet I know).
> When I try to validate the value '1.e23' (for instance) the validation fails even though it is clearly valid.
> The problem disapears when I move to a Linux (Debian) platform and run the exact code.
> I'll gladly email some code and example XML-files
> Best regards
> Kasper Døring

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org