You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2006/03/27 14:24:34 UTC
svn commit: r389118 -
/xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp
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: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org