Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xml:lang vs xs:language

From: "G. Ken Holman" <gkholman@----------------.--->
To: xmlschema-dev@--.---
Date: 9/20/2008 3:56:00 PM
At 2008-09-19 12:54 -0700, Kondapally Kumar wrote:
>We are having a discussion on whether to use "xml:lang" as an 
>attribute on a new element that we are defining in our xsd or 
>whether to make a new element with type "xs:language".
>
>For e.g (not syntactically correct but just to give you an idea)
>
><Newelement attribute xml:lang> </Newelement>
>
>OR
>
><Newelement >
><have another sub element with xs:language type>
></Newelement>
>
>Is there any guidance on which one to use?

The syntax and semantics of xml:lang is specified in the XML specification:

   http://www.w3.org/TR/2006/REC-xml-20060816/#sec-lang-tag

If you use xml:lang then other tools that are familiar with the 
syntax and semantics can access it, such as the lang() function in XPath.

I hope this helps.

. . . . . . . . . . . . Ken


--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


From info@X... Fri Sep 26 08:55:39 2008
Received: from farnsworth.w3.org ([128.30.5


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent