atom feed90 messages in org.xml.lists.xml-devRe: [xml-dev] Pragmatic namespaces. A...
FromSent OnAttachments
Micah DubinkoJul 31, 2009 4:06 pm 
COUTHURES AlainAug 1, 2009 3:35 am 
Amelia A LewisAug 1, 2009 7:43 am 
Kurt CagleAug 2, 2009 11:54 am 
Kurt CagleAug 2, 2009 12:30 pm 
Amelia A LewisAug 2, 2009 6:44 pm 
rjel...@allette.com.auAug 2, 2009 9:06 pm 
Micah DubinkoAug 2, 2009 9:21 pm 
Micah DubinkoAug 2, 2009 9:39 pm 
Dave PawsonAug 2, 2009 11:20 pm 
Michael LudwigAug 3, 2009 8:30 am 
Kurt CagleAug 3, 2009 10:41 am 
Pete CordellAug 3, 2009 11:56 am 
Michael KayAug 3, 2009 1:46 pm 
Kurt CagleAug 3, 2009 4:42 pm 
rjel...@allette.com.auAug 3, 2009 8:39 pm 
Pete CordellAug 4, 2009 12:36 am 
Tim BrayAug 4, 2009 9:44 am 
Micah DubinkoAug 4, 2009 11:17 am 
Micah DubinkoAug 4, 2009 10:54 pm 
Liam QuinAug 4, 2009 11:28 pm 
Dave PawsonAug 5, 2009 12:45 am 
Pete CordellAug 5, 2009 3:17 am 
Tim BrayAug 5, 2009 12:53 pm 
Liam QuinAug 5, 2009 1:46 pm 
Michael KayAug 5, 2009 4:44 pm 
'Liam Quin'Aug 5, 2009 4:50 pm 
Pete CordellAug 6, 2009 12:23 am 
Pete CordellAug 6, 2009 12:35 am 
rjel...@allette.com.auAug 6, 2009 12:57 am 
Michael LudwigAug 6, 2009 1:37 am 
Kurt CagleAug 6, 2009 1:47 am 
rjel...@allette.com.auAug 6, 2009 1:50 am 
Michael KayAug 6, 2009 2:10 am 
Michael KayAug 6, 2009 2:21 am 
Michael KayAug 6, 2009 2:25 am 
Pete CordellAug 6, 2009 2:38 am 
Pete CordellAug 6, 2009 2:45 am 
rjel...@allette.com.auAug 6, 2009 3:08 am 
Pete CordellAug 6, 2009 3:30 am 
Michael KayAug 6, 2009 3:33 am 
Simon St.LaurentAug 6, 2009 5:57 am 
Dave PawsonAug 6, 2009 7:16 am 
Michael KayAug 6, 2009 7:32 am 
rjel...@allette.com.auAug 6, 2009 7:41 am 
Richard SalzAug 6, 2009 7:46 am 
Liam QuinAug 6, 2009 8:03 am 
Liam QuinAug 6, 2009 8:10 am 
Michael LudwigAug 6, 2009 8:10 am 
Pete CordellAug 6, 2009 9:37 am 
Dave PawsonAug 6, 2009 9:47 am 
Liam QuinAug 6, 2009 9:51 am 
Dave PawsonAug 6, 2009 9:53 am 
Dave PawsonAug 6, 2009 9:54 am 
Liam QuinAug 6, 2009 10:17 am 
Kurt CagleAug 6, 2009 10:19 am 
Richard SalzAug 6, 2009 10:25 am 
Michael LudwigAug 6, 2009 10:32 am 
Kurt CagleAug 6, 2009 10:38 am 
Richard SalzAug 6, 2009 10:41 am 
Pete CordellAug 6, 2009 10:42 am 
Dave PawsonAug 6, 2009 10:47 am 
Liam QuinAug 6, 2009 11:05 am 
Pete CordellAug 6, 2009 11:49 am 
John L. ClarkAug 6, 2009 12:32 pm 
Simon St.LaurentAug 6, 2009 1:06 pm 
Michael LudwigAug 6, 2009 1:13 pm 
Michael LudwigAug 6, 2009 1:16 pm 
Michael LudwigAug 6, 2009 1:39 pm 
Liam QuinAug 6, 2009 2:43 pm 
Michael LudwigAug 6, 2009 3:11 pm 
Michael KayAug 6, 2009 3:32 pm 
rjel...@allette.com.auAug 6, 2009 8:21 pm 
rjel...@allette.com.auAug 6, 2009 8:32 pm 
Michael KayAug 7, 2009 1:10 am 
michael odling-smeeAug 7, 2009 1:28 am 
Michael KayAug 7, 2009 1:33 am 
michael odling-smeeAug 7, 2009 2:24 am 
Michael LudwigAug 7, 2009 3:00 am 
Dave PawsonAug 7, 2009 8:50 am 
Liam QuinAug 7, 2009 9:08 am 
Micah DubinkoAug 7, 2009 5:03 pm 
Micah DubinkoAug 7, 2009 5:05 pm 
Robert KobergAug 7, 2009 5:08 pm 
Dave PawsonAug 12, 2009 12:34 am 
Dave PawsonAug 13, 2009 12:35 am 
Henri SivonenAug 13, 2009 11:47 am 
Micah DubinkoAug 23, 2009 3:05 pm 
David CarverAug 23, 2009 4:21 pm 
Henri SivonenAug 24, 2009 4:03 am 
Subject:Re: [xml-dev] Pragmatic namespaces. A proposal
From:Dave Pawson (dav@dpawson.co.uk)
Date:Aug 13, 2009 12:35:25 am
List:org.xml.lists.xml-dev

<doc> <hd>Proposal for an alternative to namespaces. &#xA9; Dave Pawson 2009. Will be FDL (http://www.gnu.org/licenses/fdl.html)</hd>

<example> <hd>An XML instance. No namespaces, disambiguation of schemas in mind</hd> <root> <!-- Initial schema A--> <a> <a> <a> <chx id='c1'> <!-- Change to use schema B --> <a> <a></a> </a> </chx> <a> <!-- Revert to schema A --> <chx id='c2'> <!-- change to schema C --> <a> <a></a> </a> </chx> </a> </a> </a> </a> </root> </example>

<p>Note that DSRL simply can't currently handle this!</p>

<hd>Scope of this proposal</hd> <ol> <li>This proposal does not attempt to meet the needs of the HTML WG</li> <li>It does address XML processing via todays ns aware tools(via transformation to a ns based instance)</li> <li>It addressed the needs of schema disambiguation</li> <li>Addresses element names common to more than one schema in use by an application processing the instance</li> <li>Schema association of a particular element is context independent</li>

</ol>

<hd>Design Outline: </hd> <ol> <li>As Rick suggests, the rationale behind the ns rec is to disambiguate content via the vocabulary used. To do that we only need to recognise transition points, i.e. where elements change from using one schema to another. In the example, these are identified as elements chx. This relies on the scoping of vocabulary association</li> <li>Vocabulary association is only inherited from the nearest ancestor. </li> <li>An element is only ever in one schema from the POV of an application using the instance</li> <li>As Mike Kay and Liam Quinn proprosals, the mapping to vocabulary/schema is done outside the instance.</li> <li>Currently attributes are not addressed. TBD. KISS principle desirable</li> <li>Using something similar to DSRL such an instance could be mapped to a namespaced instance for validation or other processing using todays tools</li> </ol>

<hd>Disambiguation</hd> <p>Source document transition points may be identified by either a unique id value or an xpath expression. The external 'namespace definition file' as Liam calls it (see http://www.balisage.net/Proceedings/vol3/html/Quin01/BalisageVol3-Quin01.html), or a 'Vocabulary definition file' as Mike Kay called it, is used for this. No reference to it in the XML instance, as per Relax NG and the lack of a schema reference internal to the file. </p> <p>Having identified such a transition point, the vocabulary definition file maps this point to a schema, or it may need to be to an element within that schema, if there is more than one element of the same name. This assumes an XML based schema. </p>

<hd>Vocabulary definition file</hd> <p>This section is not a proposal. It is for discussion only</p>

<example> <hd>An example vocabulary definition file for the previous example</hd>

<vdf> <meta> ... any required metadata, including versioning </meta>

<element xpath="/root" schema="/sgml/rng/sch0.rng" start-element="doc"/>

<element xpath="/root/a[1]/a[1]/a[1]/chx[1]" schema="/sgml/rng/sch1.rng" start-element="chx"/> <element xpath="/root/a[1]/a[1]/a[1]/a[1]/chx[1]" schema="/sgml/rng/sch2.rng" start-element="svg"/>

<!-- Or --> <element idref="c2" schema="/sgml/rng/sch2.rng" start-element="svg"/> </vdf> </example> <p>This is not fully thought out. For SDRL to do it's remapping such remap information would need to be within (or accessible from) the Vocabulary definition file. An SDRL file link could be part of the metadata</p>

</doc>

Comments?

regards

-- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or unsubscribe: xml-@lists.xml.org subscribe: xml-@lists.xml.org List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php