W3C home > Mailing lists > Public > www-tag@w3.org > December 2005

speech grammar spec recommends xsi:schemaLocation [namespaceDocument-8]

From: Dan Connolly <connolly@w3.org>
Date: Mon, 12 Dec 2005 16:34:25 -0600
To: www-tag@w3.org
Message-Id: <1134426865.2319.378.camel@dirk>

Regarding our discussion of self-describing documents,
or documents that are grounded in the Web, as well
as namespaceDocument-8, I just discovered...

[[[

It is recommended that the grammar element also indicate the location of
the grammar schema (see Appendix C) via the xsi:schemaLocation attribute
from [SCHEMA1]. Although such indication is not required, to encourage
it this document provides such indication on all of the examples:

<grammar version="1.0"
         xmlns="http://www.w3.org/2001/06/grammar"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:schemaLocation="http://www.w3.org/2001/06/grammar 
                             http://www.w3.org/TR/speech-grammar/grammar.xsd">
  ...
</grammar>
]]]
 -- http://www.w3.org/TR/2004/REC-speech-grammar-20040316/#S4.3


I would have thought that

<grammar version="1.0"
         xmlns="http://www.w3.org/2001/06/grammar">

was sufficient info to ground the document in the web and,
among other things, find the standard schema. I would think
that schemaLocation was only useful/necessary in case the
author meant for the document to match some more constrained
schema.

Also sent a comment because the namespace document says
"This namespace may change without notice."
speech grammar namespace document gives misleading change policy
http://lists.w3.org/Archives/Public/www-voice/2005OctDec/0075.html

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Monday, 12 December 2005 22:34:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:56:10 UTC