W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2010

url versus urn for namespace uri?

From: Rusty Wright <rwright.lists@gmail.com>
Date: Sat, 16 Jan 2010 23:49:07 -0800
Message-ID: <4B52C0F3.1090308@gmail.com>
To: xmlschema-dev@w3.org
1) Are there any pros and cons for using a URN for a namespace URI?  It seems that most people use URLs but I feel like that adds to the confusion with people expecting that URL to have something there if you go to it with a web browser.

2) If it doesn't matter, is there documentation for the accepted conventions for a schema namespace URN?  Mine starts with the following.


<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ds="urn:publicid:xmlns:objecteffects-com:schema:dataset"
    targetNamespace="urn:publicid:xmlns:objecteffects-com:schema:dataset"
    xsi:schemaLocation="
        http://www.w3.org/2001/XMLSchema
        http://www.w3.org/2001/XMLSchema.xsd"
    elementFormDefault="qualified"
    version="1.0">

    <xs:element
        name="dataset"
        type="ds:DatasetType"
    />

Thanks
Received on Monday, 18 January 2010 09:25:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:16 GMT