slide 46
Copyright © 2005 W3C (MIT, ERCIM, Keio)
Language information
Data categories
< langRule > containing:
@ selector required, value is XPath expression selecting nodes to which language information applies
@ langPointer required, value is XPath expression selecting markup
that expresses the language of the selected text
Global use only:
<its:rules its:version="1.0">
<its:langRule selector=" //* " langPointer=" @language "/>
</its:rules>
For local use, use xml:lang !
Go to previous slide Go to next slide Go to the first slide Go to the slide index Go to the PDF version
Slide 46 of 50
Our final data category provides a means of indicating that a legacy tag fulfills the same role as the xml:lang attribute in XML.
There is no local ITS usage for this data category. You should simply use xml:lang for this purpose.
This example says that for any element in the content, the language attribute plays the same role as, and uses the same values as, the xml:lang attribute would.
"