[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: [ubl-lcsc] Assigning vocabulary namespaces to each document type
In 5 minutes, things changed on me. At 2003-01-20 19:44 -0500, I wrote: >I figured out the namespace prefixes were needed in the 0p65 schemas, but >they are not needed in the 0p70 schemas. I'm not sure why types were >prefixed in 0p65 but my tests indicate they do not need to be prefixed in 0p70. >... >So, in alphabetical order of the doctypes, the these follow the pattern >set out in 0p65: > > <xsd:schema > targetNamespace="urn:oasis:names:tc:ubl:DespatchAdvice:1.0:0.70" ... > ... > <xsd:element name="DespatchAdvice" type="DespatchAdviceDetailsType" > id="UBL500001"/> >... >I tested each of the above changes using MSV, and then with a small test >Order instance I validated the use of the Order schema and it worked as >well. I used the default namespace in the instance to the namespace above >and it validated just fine. I just tried to create an instance in XML Spy and the software could not find the types unless the types were prefixed (as they were in 0p65). Since 0p70 uses a common reusable included file of declarations, these declarations cannot have prefixed type names because every document type uses the declarations. So, I can understand if people are using XML Spy to test these schemas that the target namespaces were removed ... but I thought we needed them in there to distinguish the vocabularies. As I said, MSV works just fine without prefixing the type names. My gut feel is that MSV is correct and XML Spy is incorrect because looking at examples in XML Schema books I don't see why the types need to be prefixed. Can anyone shed light on this? Thanks! ................... Ken -- Upcoming hands-on in-depth Europe: February 17-21, 2003 XSLT/XPath and/or XSL-FO North America: June 16-20, 2003 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/o/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-10-1 Practical Formatting Using XSL-FO Male Breast Cancer Awareness http://www.CraneSoftwrights.com/o/bc
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC