You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/07/11 17:51:25 UTC

[Bug 2564] - Valid XML doc with defined xml:lang attribute fails on parsing

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2564

*** shadow/2564	Wed Jul 11 00:30:09 2001
--- shadow/2564.tmp.10293	Wed Jul 11 08:51:25 2001
***************
*** 25,28 ****
     <!ATTLIST book xml:lang CDATA #REQUIRED>
  ]>
  <book xml:lang="en-US">It is written in English</book>
! <!-- Tests LanguageID with Langcode - Subcode -->
--- 25,51 ----
     <!ATTLIST book xml:lang CDATA #REQUIRED>
  ]>
  <book xml:lang="en-US">It is written in English</book>
! <!-- Tests LanguageID with Langcode - Subcode -->
! 
! ------- Additional Comments From tng@ca.ibm.com  2001-07-11 08:51 -------
! I tried it with domcount and it works for me:
! 
! D:\xerces-c1_5_0-win32\bin>domcount -v=never d:\mydoc\xml\myxml\bug2564.xml
! d:\mydoc\xml\myxml\bug2564.xml: 241 ms (1 elems).
! 
! D:\xerces-c1_5_0-win32\bin>domcount -v=always d:\mydoc\xml\myxml\bug2564.xml
! d:\mydoc\xml\myxml\bug2564.xml: 0 ms (1 elems).
! 
! D:\xerces-c1_5_0-win32\bin>domcount -n d:\mydoc\xml\myxml\bug2564.xml
! d:\mydoc\xml\myxml\bug2564.xml: 10 ms (1 elems).
! 
! D:\xerces-c1_5_0-win32\bin>cat d:\mydoc\xml\myxml\bug2564.xml
! <!DOCTYPE book [
!    <!ELEMENT book ANY>
!    <!ATTLIST book xml:lang CDATA #REQUIRED>
! ]>
! <book xml:lang="en-US">It is written in English</book>
! <!-- Tests LanguageID with Langcode - Subcode -->
! D:\xerces-c1_5_0-win32\bin>
! 
! Which parser (DOM/SAX) did you use?  And what feature did you turn on?

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org