[Dev] Proposal: simplify parcel XML namespaces

Phillip J. Eby pje at telecommunity.com
Fri Jun 24 17:02:22 PDT 2005


Now that all Chandler parcels are using the schema API, we have the option 
of getting rid of the messy 'http:' URIs for defining parcel 
namespaces.  I'd like to propose that we move to a "parcel:" URI scheme, of 
the form "parcel:osaf.framework.blocks"  This would let us use the same 
names in parcel.xml as we would use in Python code, making the namespaces 
easier for humans to read, write, and remember.

Basically, we would go from this:

    <core:Parcel xmlns:core="http://osafoundation.org/parcels/core"
         xmlns="http://osafoundation.org/parcels/osaf/framework/blocks"
         xmlns:main="http://osafoundation.org/parcels/osaf/views/main"
         xmlns:detail="http://osafoundation.org/parcels/osaf/framework/blocks/detail"
         xmlns:amazon="http://osafoundation.org/parcels/osaf/examples/amazon"
         xmlns:doc="http://osafoundation.org/parcels/osaf/examples/amazon">

To this:

    <core:Parcel
         xmlns:core="parcel:core"
         xmlns="parcel:osaf.framework.blocks"
         xmlns:main="parcel:osaf.views.main"
         xmlns:detail="parcel:osaf.framework.blocks.detail"
         xmlns:amazon="parcel:osaf.examples.amazon"
         xmlns:doc="parcel:osaf.examples.amazon">

Any thoughts?



More information about the Dev mailing list