[ESW Wiki] Update of "its0601TechLangDev" by YvesSavourel

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 YvesSavourel:
http://esw.w3.org/topic/its0601TechLangDev


------------------------------------------------------------------------------
  
  === How to include xml:lang in XML Schema ===
  
+ To include the xml:lang attribute in your XSD document, import the W3C xml.xsd schema in your own XSD schema using the <xsd:import> element as shown below:
+ 
+ {{{<xsd:schema targetNamespace="myNamespaceURI"
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+  xmlns:t="myNamespaceURI" elementFormDefault="qualified" xml:lang="en">
+  <!-- Import for xml:lang and xml:space -->
+  <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
+  schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+  ...}}}
+ 
+ Once the xml.xsd schema is imported, you can use the reference to xml:lang in any of your element declarations.
+ 
+ {{{...
+ <xsd:element name="myDoc">
+  <xsd:complexType>
+   <xsd:sequence maxOccurs="unbounded">
+    <xsd:element name="section" type="t:Section_Type"/>
+   </xsd:sequence>
+   <xsd:attribute name="version" type="xsd:string" use="required"/>
+   <xsd:attribute ref="xml:lang" use="optional"/>
+  </xsd:complexType>
+  ...}}}
+ 
  
  === How to include xml:lang in Relax NG ===
+ 
+ '''[[YS-]] I Need help for this part: If any Relax-NG expert wants to volonteer, please do so.'''
  
  
  === How to include xml:lang in XML DTD ===

Received on Saturday, 28 January 2006 20:59:21 UTC