[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [ubl-dev] Ken's example (UBL 2.0 and Schema Extensibility)
At 2006-05-18 23:19 +0800, Chin Chee-Kai wrote: >A bit of detour... I didn't quite understand how parsing >the fragment at > > <hello xmlns="">...</hello> > >would get by without producing an error of invalid namespace value. It isn't an invalid namespace, it is the null-URI ... it is explicitly declaring there is now no default namespace. So, "hello" is an element in no namespace. Had I not had that, it would have been in the Order namespace since that was the default namespace in scope. >Unless the entire content within <LineItemExtension> was wrapped >within CDATA section, (which would make it text, not markup) >wouldn't <hello> need to conform to XML >spec and so end up as a parsed entity within processor memory >(instead of, say, pure textual segment)? It does. >Anyone able to lend me some insight? Namespaces in XML 1.1 http://www.w3.org/TR/2004/REC-xml-names11-20040204 Section 6.2: "The attribute value in a default namespace declaration MAY be empty. This has the same effect, within the scope of the declaration, of there being no default namespace. " I hope this helps, Chee-Kai. . . . . . . . . Ken -- Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16 Also for XSL-FO/XSLT training: Minneapolis, MN 2006-07-31/08-04 Also for XML/XSLT/XSL-FO/UBL training: Varo,Denmark 06-09-25/10-06 World-wide corporate, govt. & user group UBL, XSL, & XML training. G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/u/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/u/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]