DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33320>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33320

           Summary: Malformed regexps in src/foschema/fop.xsd
           Product: Fop
           Version: 0.20.5
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: general
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: [EMAIL PROTECTED]


[PATCH] Some regexps are malformed in fop schema (as reported by Xerces).

Patch follows:

--- fop.xsd     2005-02-01 01:14:30.000000000 +0000
+++ fop.xsd.new 2005-02-01 01:14:19.000000000 +0000
@@ -775,11 +775,11 @@
         <enumeration value = "+3"/>
         <enumeration value = "5"/>
       </documentation>
     </annotation>
     <restriction base = "NMTOKEN">
-      <pattern value = "[-+]?\d+"/>
+      <pattern value = "[\-+]?\d+"/>
     </restriction>
   </simpleType>
   <simpleType name = "number_Type">
     <annotation>
       <documentation>
@@ -788,11 +788,11 @@
         <enumeration value = "2"/>
         <enumeration value = "4"/>
       </documentation>
     </annotation>
     <restriction base = "string">
-      <pattern value = "[-+]?\d+\.\d*"/>
+      <pattern value = "[\-+]?\d+\.\d*"/>
     </restriction>
   </simpleType>
   <simpleType name = "length_Type">
     <annotation>
       <documentation>
@@ -804,11 +804,11 @@
         <enumeration value = "1in"/>
         <enumeration value = "1em"/>
       </documentation>
     </annotation>
     <restriction base = "string">
-      <pattern value = "[+-]?\d+\.?\d*(px|pt|mm|cm|in|em|%)"/>
+      <pattern value = "[+\-]?\d+\.?\d*(px|pt|mm|cm|in|em|%)"/>
     </restriction>
   </simpleType>
   <simpleType name = "length_range_Type">
     <annotation>
       <documentation>
@@ -896,11 +896,11 @@
         <enumeration value = "45deg"/>
         <enumeration value = "-12deg"/>
       </documentation>
     </annotation>
     <restriction base = "string">
-      <pattern value = "[-+]?[1-3]?\d?\d?\.?\d*(deg|grad|rad)"/>
+      <pattern value = "[\-+]?[1-3]?\d?\d?\.?\d*(deg|grad|rad)"/>
     </restriction>
   </simpleType>
   <simpleType name = "percentage_Type">
     <annotation>
       <documentation>
@@ -909,11 +909,11 @@
         <enumeration value = "30%"/>
         <enumeration value = "100%"/>
       </documentation>
     </annotation>
     <restriction base = "string">
-      <pattern value = "[-+]?\d+\.?\d*%"/>
+      <pattern value = "[\-+]?\d+\.?\d*%"/>
     </restriction>
   </simpleType>
   <simpleType name = "character_Type">
     <annotation>
       <documentation>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to