Author: amassari
Date: Mon Mar 27 04:24:31 2006
New Revision: 389118

URL: http://svn.apache.org/viewcvs?rev=389118&view=rev
Log:
Allow whitespace at the beginning and after the union operator in XPath 
expressions of identity constraints

Modified:
    xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp

Modified: xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp
URL: 
http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp?rev=389118&r1=389117&r2=389118&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp Mon Mar 27 
04:24:31 2006
@@ -4404,6 +4404,12 @@
     unsigned int startIndex = 0;
        
     while (startIndex < xpathLen) {
+        if(XMLChar1_0::isWhitespace(*(xpathExpr+startIndex)))
+        {
+            fBuffer.append(xpathExpr + startIndex, 1);
+            startIndex++;
+            continue;
+        }
 
         if (!XMLString::startsWith(xpathExpr + startIndex, fgForwardSlash)
             && !XMLString::startsWith(xpathExpr + startIndex, fgDot)) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to