libxml2 r3687 - in trunk: . result/schemas test/schemas



Author: veillard
Date: Fri Feb  8 10:37:18 2008
New Revision: 3687
URL: http://svn.gnome.org/viewvc/libxml2?rev=3687&view=rev

Log:
* xmlregexp.c: apply patch from Andrew Tosh to fix behaviour
  when '.' is used in a posCharGroup
* test/schemas/poschargrp0_0.* result/schemas/poschargrp0_0_0*:
  added the test to the regression suite
Daniel


Added:
   trunk/result/schemas/poschargrp0_0_0
   trunk/result/schemas/poschargrp0_0_0.err
   trunk/test/schemas/poschargrp0_0.xml
   trunk/test/schemas/poschargrp0_0.xsd
Modified:
   trunk/ChangeLog
   trunk/xmlregexp.c

Added: trunk/result/schemas/poschargrp0_0_0
==============================================================================
--- (empty file)
+++ trunk/result/schemas/poschargrp0_0_0	Fri Feb  8 10:37:18 2008
@@ -0,0 +1 @@
+./test/schemas/poschargrp0_0.xml validates

Added: trunk/result/schemas/poschargrp0_0_0.err
==============================================================================

Added: trunk/test/schemas/poschargrp0_0.xml
==============================================================================
--- (empty file)
+++ trunk/test/schemas/poschargrp0_0.xml	Fri Feb  8 10:37:18 2008
@@ -0,0 +1,2 @@
+ï<?xml version="1.0" encoding="utf-8"?>
+<testElem xmlns="http://obj-sys.com/mySchema";>value</testElem>
\ No newline at end of file

Added: trunk/test/schemas/poschargrp0_0.xsd
==============================================================================
--- (empty file)
+++ trunk/test/schemas/poschargrp0_0.xsd	Fri Feb  8 10:37:18 2008
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8" ?> 
+<xs:schema targetNamespace="http://obj-sys.com/mySchema";
+                  xmlns:elementFormDefault="qualified"
+                  xmlns="http://obj-sys.com/mySchema";
+                  xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+  <xs:element name="testElem">
+    <xs:simpleType>
+      <xs:restriction base="xs:string">
+        <xs:pattern value="[^.:/]+"/>
+      </xs:restriction>
+    </xs:simpleType>
+  </xs:element>
+  
+</xs:schema>

Modified: trunk/xmlregexp.c
==============================================================================
--- trunk/xmlregexp.c	(original)
+++ trunk/xmlregexp.c	Fri Feb  8 10:37:18 2008
@@ -5052,7 +5052,7 @@
 static void
 xmlFAParsePosCharGroup(xmlRegParserCtxtPtr ctxt) {
     do {
-	if ((CUR == '\\') || (CUR == '.')) {
+	if (CUR == '\\') {
 	    xmlFAParseCharClassEsc(ctxt);
 	} else {
 	    xmlFAParseCharRange(ctxt);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]