Cezar Andrei has proposed merging lp:~zorba-coders/zorba/bug1160028-valType 
into lp:zorba.

Requested reviews:
  Cezar Andrei (cezar-andrei)
  Sorin Marian Nasoi (sorin.marian.nasoi)
Related bugs:
  Bug #1160028 in Zorba: "validate type failures (at least 14)"
  https://bugs.launchpad.net/zorba/+bug/1160028

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug1160028-valType/+merge/157193

Fix for bug1160028. Fix URI of the type when validating with xsi:type attribute 
specified.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug1160028-valType/+merge/157193
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/types/schema/SchemaValidatorFilter.cpp'
--- src/types/schema/SchemaValidatorFilter.cpp	2013-02-26 04:12:43 +0000
+++ src/types/schema/SchemaValidatorFilter.cpp	2013-04-04 18:24:31 +0000
@@ -1028,7 +1028,9 @@
     {
       const ElemStack::StackElem* topElem = fElemStack.topElement();
       DatatypeValidator *currentDV = 0;
-      if(topElem->fThisElement->isDeclared())
+      if(topElem->fThisElement->isDeclared() ||
+         theXsiType  // this is when there is no schema import but xsiType is used
+        )
       {
         ComplexTypeInfo *currentTypeInfo = ((XercSchemaValidator*)fValidator)->getCurrentTypeInfo();
         if(currentTypeInfo)

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to