Bug 33320 - Malformed regexps in src/foschema/fop.xsd
Summary: Malformed regexps in src/foschema/fop.xsd
Status: CLOSED DUPLICATE of bug 33321
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.5
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-01 02:22 UTC by James Shaw
Modified: 2012-04-01 13:48 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Shaw 2005-02-01 02:22:45 UTC
[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>
Comment 1 James Shaw 2005-02-01 02:26:24 UTC

*** This bug has been marked as a duplicate of 33321 ***
Comment 2 Glenn Adams 2012-04-01 13:48:11 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs