OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-lcsc message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: RE: [ubl-lcsc] Namespaces in UBL Schemas

At 2003-01-23 21:43 +0100, Stuhec, Gunther wrote:
>I thought, if the specific schema will be not a prefixed namespace, then 
>the attributes "targetNamespace" and "xmlns" are not really necessary.

Downloading 22-01-03b.zip from:


and my sample instances from:


The schemas as written do not validate the instances:

Z:\data\docs\ubl\lcsc\20030122b>msv UBL_Library_0p70_Order.xsd 220order1.xml
start parsing a grammar.
validating 220order1.xml
Error at line:2, column:54 of 
   Probably namespace URI of tag "Order" is wrong (correct one is "")

the document is NOT valid.


When I add the following two attributes to the xsd:schema document element ...


... the instances validate:

Z:\data\docs\ubl\lcsc\20030122b>msv UBL_Library_0p70_Order-mod.xsd 

No validation errors.

Z:\data\docs\ubl\lcsc\20030122b>msv UBL_Library_0p70_Order-mod.xsd 

No validation errors.


I am ambivalent about the xmlns:bie="" attribute ... it doesn't affect me, 
it just looks out of place.

Perhaps I've created the instances differently than what members expect ... 
I'm coming in late so I may have incorrect assumptions.  The first lines of 
the 220order1.xml instance are:

Z:\data\docs\ubl\lcsc\20030122b>head 220order1.xml
<?xml version="1.0" encoding="UTF-8"?>
<Order xmlns="urn:oasis:names:tc:ubl:Order:1.0:0.70">
   <OrderGrossWeightMeasure unitCode="kg">50</OrderGrossWeightMeasure>
   <OrderGrossVolumeMeasure unitCode="m3">7</OrderGrossVolumeMeasure>


>But if this will be better for processing application, I can implement 
>these two attributes, now.

*I'm* quite confident it is necessary, but I'm concerned that no-one else 
has confirmed or challenged my position.

Any other opinions?  Has anyone else yet created instances against 22-01-03b?

................... 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/m/
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/m/bc

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC