Author: amassari
Date: Mon Mar 27 04:24:54 2006
New Revision: 389119
URL: http://svn.apache.org/viewcvs?rev=389119&view=rev
Log:
Allow whitespace at the beginning and after the union operator in XPath
expressions of identity constraints
Modified:
xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/TraverseSchema.cpp
Modified:
xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/TraverseSchema.cpp
URL:
http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/TraverseSchema.cpp?rev=389119&r1=389118&r2=389119&view=diff
==============================================================================
---
xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/TraverseSchema.cpp
(original)
+++
xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/TraverseSchema.cpp
Mon Mar 27 04:24:54 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]