[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: svn commit: r559794 -
From: amassari () apache ! org
Date: 2007-07-26 12:39:09
Message-ID: 20070726123909.3FA711A981A () eris ! apache ! org
[Download RAW message or body]
Author: amassari
Date: Thu Jul 26 05:39:08 2007
New Revision: 559794
URL: http://svn.apache.org/viewvc?view=rev&rev=559794
Log:
XSWildcard was always getting a 'strict' processContent when the namespace list \
contained more than 2 elements
Modified:
xerces/c/trunk/src/xercesc/framework/psvi/XSWildcard.cpp
Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSWildcard.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSWildcard.cpp?view=diff&rev=559794&r1=559793&r2=559794
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSWildcard.cpp (original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSWildcard.cpp Thu Jul 26 05:39:08 2007
@@ -117,7 +117,9 @@
else if (nodeType == ContentSpecNode::Any_NS_Choice)
{
fConstraintType = NSCONSTRAINT_DERIVATION_LIST;
- ContentSpecNode::NodeTypes anyType = elmWildCard->getFirst()->getType();
+ // inspect the second child, not the first one, as the first could hold \
another Any_NS_Choice wrapper + // if the choices are more than 2, while the \
second child is always a leaf node + ContentSpecNode::NodeTypes anyType = \
elmWildCard->getSecond()->getType();
if (anyType == ContentSpecNode::Any_NS_Lax)
fProcessContents = PC_LAX;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic