[Zorba-coders] [Bug 1023120] Re: xs:include ignored in schemas
** Changed in: zorba Status: Confirmed = Fix Committed -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/1023120 Title: xs:include ignored in schemas Status in Zorba - The XQuery Processor: Fix Committed Bug description: It doesn't appear that xs:include elements in schemas have any effect. The definitions in the referenced schema are not loaded, and no error is thrown even if the referenced file does not exist or contains invalid XML. To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/1023120/+subscriptions -- 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
[Zorba-coders] [Bug 1023120] Re: xs:include ignored in schemas
** Branch linked: lp:~zorba-coders/zorba/bug1023120-schemaImport -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/1023120 Title: xs:include ignored in schemas Status in Zorba - The XQuery Processor: Confirmed Bug description: It doesn't appear that xs:include elements in schemas have any effect. The definitions in the referenced schema are not loaded, and no error is thrown even if the referenced file does not exist or contains invalid XML. To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/1023120/+subscriptions -- 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
[Zorba-coders] [Bug 1023120] Re: xs:include ignored in schemas
After more investigation, the bug was actually in Zorba's resolver. -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/1023120 Title: xs:include ignored in schemas Status in Zorba - The XQuery Processor: Confirmed Bug description: It doesn't appear that xs:include elements in schemas have any effect. The definitions in the referenced schema are not loaded, and no error is thrown even if the referenced file does not exist or contains invalid XML. To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/1023120/+subscriptions -- 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
[Zorba-coders] [Bug 1023120] Re: xs:include ignored in schemas
I checked it out and we do return to Xerces the right URL but in the case of include it is never used. There is a Xerces bug that makes the loading of the included URL to be skipped. As a workaround, you can use import. So you would need to make therse modifications: test.xq: import schema namespace s = http://www.28msec.com/project1/schemas/ext; at extensions.xsd; validate { s:superproduct string=blabla something=something/ } extensions.xsd: xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; targetNamespace=http://www.28msec.com/project1/schemas/ext; xmlns:ext=http://www.28msec.com/project1/schemas/ext; xmlns:simple=http://www.28msec.com/project1/schemas/simple; elementFormDefault=qualified xs:import namespace=http://www.28msec.com/project1/schemas/simple; schemaLocation=./simple.xsd/ xs:element name=superproduct type=ext:SuperProductType/ xs:complexType name=SuperProductType xs:complexContent xs:extension base=simple:ProductType xs:attribute name=something type=xs:string/ /xs:extension /xs:complexContent /xs:complexType /xs:schema and simple.xsd remains the same: xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; targetNamespace=http://www.28msec.com/project1/schemas/simple; xmlns=http://www.28msec.com/project1/schemas/simple; elementFormDefault=qualified xs:element name=product type=ProductType/ xs:complexType name=ProductType xs:attribute name=string type=xs:string/ /xs:complexType /xs:schema ** Changed in: zorba Assignee: Cezar Andrei (cezar-andrei) = David Graf (davidagraf) -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/1023120 Title: xs:include ignored in schemas Status in Zorba - The XQuery Processor: Confirmed Bug description: It doesn't appear that xs:include elements in schemas have any effect. The definitions in the referenced schema are not loaded, and no error is thrown even if the referenced file does not exist or contains invalid XML. To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/1023120/+subscriptions -- 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