W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2004

xml:lang inherited from root doc?

From: Robert Barkan <rhb@cisco.com>
Date: Wed, 24 Mar 2004 11:48:29 -0500
Message-Id: <4.3.2.7.2.20040324114805.04fc5b68@cannon.cisco.com>
To: www-voice@w3.org

Is the <vxml> attribute "xml:lang" inherited from a root document?  My guess would be yes, but the spec is a little vague on this.

In support:
A. Section 1.5.1 "Execution within One Document" says: 
"Language information is inherited down the document hierarchy: the value of "xml:lang" is inherited by elements which also define the "xml:lang" attribute, such as <grammar> and <prompt>, unless these elements specify an alternative value.".
So if a root document is part of a "document hierarchy", then this would confirm that xml:lang is inherited.

Against:
B. Section 1.5.1 is appropriately named "Execution within *One* Document", and xml:lang is not mentioned in S1.5.2 "Executing a *Multi-Document* Application".
C. The term "document hierarchy" is never defined explicitly.  It could be interpreted as hierarchy within just the document level on down, and not the application or session levels.  The word "hierarchy" is used in a few different contexts (eg: by itself, "document hierarchy", "scope hierarchy", etc) suggesting that a "<level-qualified> hierarchy" is different than the global hierarchy.
D. Section 1.5.2 "Executing a Multi-Document Application" only specifies inheritance for the following root document constructs:
	variables
	<property> elements
	<script>
	<catch>
	Grammars
xml:lang is not included here.

---

Also, same question for the <vxml> attribute "xml:base".

Thanks in advance,
-Rob 
Received on Wednesday, 24 March 2004 17:07:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 October 2006 12:48:59 GMT