OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Problem with xml:lang

[ Lists Home | Date Index | Thread Index ]
  • From: Pierre Attar <patt@tireme.fr>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 19 Jul 2000 14:34:48 +0200

At 12:34 19/07/2000 +0100, Phil wrote:
>I think xml:lang is a reserved XML attribute, so that could be why Xerces is
>complaining. Does it complain if you do:
>
><!DOCTYPE TEST  [
><!ELEMENT TEST (#PCDATA)>
><!ATTLIST TEST
>          xml:foo NMTOKEN  'fr'
>  >
>]>
><TEST xml:foo="fr">Some text in french</TEST>

Phil, Answering your question : yes it complains the same way.

Nevertheless, I know that xml:lang is a reserved attribute and that's 
exactely the reason why I want to use it in this way.

<!DOCTYPE TEST [
<!ELEMENT TEST (#PCDATA)>
<!ATTLIST TEST
  xml:lang NMTOKEN 'fr'
 >
]>
<TEST xml:lang="fr">Some text in french</TEST>

Thanks,

Pierre





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS