[ESW Wiki] Update of "its0601TechLangDev" by fsasaki

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "ESW Wiki" for change notification.

The following page has been changed by fsasaki:
http://esw.w3.org/topic/its0601TechLangDev


------------------------------------------------------------------------------
  
  '''[[YS-]] I Need help for this part: If any Relax-NG expert wants to volonteer, please do so.'''
  
+ '''[[FS-]] This example is based upon a schema from Sebastian, I hope he is fine with it.''']]]'''
+ 
+ In RELAX NG, you don't have to import the XML namespace. You can declare xml:lang directly in your schema.
+ 
+ {{{
+  <define name="att.global.attribute.xmllang">
+     <optional>
+       <attribute name="xml:lang">
+         <a:documentation>indicates the language of the element content using the
+       codes from RFC
+       3066</a:documentation>
+         <ref name="data.language"/>
+       </attribute>
+     </optional>
+   </define>
+  <define name="data.language">
+     <data type="language"/>
+   </define>
+ }}}
+ 
+ You then can reference to this declaration in any of your element declarations.
+ 
+ {{{
+ <element name="myDoc">
+ ...
+ <ref name="att.global.attribute.xmllang"/>
+ </element>
+ }}}
  
  === How to include xml:lang in XML DTD ===
  

Received on Monday, 30 January 2006 06:59:29 UTC