slide 41
Copyright © 2005 W3C (MIT, ERCIM, Keio)
Directionality
Data categories
< dirRule > containing:
@ selector required, value is XPath expression selecting nodes to which rule applies
@ dir required, values " ltr ", " rtl ", " lro " or " rlo "
Global use:
<text>
<its:rules its:version="1.0">
<its:dirRule dir=" rtl " selector=" //*[@direction='rtlText'] "/>
</its:rules>
<par> In Arabic, the title <quote xml:lang="ar"
direction="rtlText"> W3C ، نشاط التدويل </quote> means
<quote> Internationalization Activity, W3C </quote> . </par>
</text>
Go to previous slide Go to next slide Go to the first slide Go to the slide index Go to the PDF version
Slide 41 of 50
In the example on this slide, the content actually has markup to perform the same role as the its:dir attribute. We use a global rule to indicate that all direction attributes with a value of rtlText are equivalent to its:dir="rtl". (In an actual implementation, you would probably want to define rules for all possible values of the direction attribute - we kept things simple for the example.)
"