Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - xml:lang vs xs:language [Thread Next] Re: xml:lang vs xs:languageTo: 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
