[cddlm] import namespaces

Steve Loughran steve_loughran at hpl.hp.com
Mon Jun 13 08:36:31 CDT 2005


I have a question for Jun regarding namespaces and import


Imagine a CDL document which declares a target namespace

<cdl:cdl cdl:targetnamespace="http://123" />...</cdl:cdl>

Now import that document. Which of the following import statements are 
valid?


(a) same namespace as before

<cdl:import namespace="http://123"  location="http://example.org/ex/cdl" />

(b) different namespace

<cdl:import namespace="http://456"  location="http://example.org/ex/cdl" />

(c) no namespace

<cdl:import location="http://example.org/ex/cdl" />

Unless told otherwise, I would assume that only option (a) is valid, (b) 
and (c) are errors. (b) is an obvious discrepancy,
though (c) could almost be handled, with the right policy "give 
everything in the imported doc its targeted namespace".

-steve





More information about the cddlm-wg mailing list