Re: Problème de déclaration d'un attribut xml:lang avec Xschema

Stéphane Bonhomme <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
Dans la spec de XMLSchema (dans le schema des schema) il est ecrit :

<xs:import namespace="http://www.w3.org/XML/1998/namespace"
             schemaLocation="http://www.w3.org/2001/xml.xsd">
    <xs:annotation>
      <xs:documentation>
       Get access to the xml: attribute groups for xml:lang
     </xs:documentation>
    </xs:annotation>
  </xs:import>


ce qui vous permet d'écrire dans un complexType/content:

<xs:attribute ref="xml:lang"/>


Stéphane

Patrice Harmegnies wrote:

>Bj la liste
>J'ai une structure xml avec un node contenant un attribut du genre
>xml:lang="fr".
>Comment faire pour le déclarer dans mon fichier xsd?
>Pose problème au niveau de la déclaration de l'attribut avec xs:attribut
>
>Pour l'instant, j'utilise la syntaxe suivante
><news xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>xsi:noNamespaceSchemaLocation="ex_a_faire1.xsd">
>
>Une petite indication please?
>Merci
>
>P. Harmegnies
>
>
>
>--
>Devenez redacteur <XML>fr et contribuez au developpement du
>xml francophone (http://xmlfr.org/infos/redacteurs/) !
>
>Liste de diffusion "[email protected]" (http://xmlfr.org).
>
>Cette liste est a votre disposition pour discuter en francais de 
>tout sujet technique lie a XML.
>
>Pour resilier votre abonnement, envoyez un message contenant 
>la commande "unsubscribe" a [email protected]
>(mailto:[email protected]?Subject=unsubscribe)
>
>
>  
>


-- 
   Stéphane Bonhomme           --           Exselt Services

Formations, Conseil et Réalisations en Ingénierie Documentaire,
            Technologies Web et Logiciels Libres
     [email protected]   -   http://www.exselt.com
        04 76 17 09 40        /      06 88 57 27 08
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.