1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

fixed the bug in lang() as raised by Elliotte Rusty Harold added a

* xpath.c: fixed the bug in lang() as raised by Elliotte Rusty Harold
* result/XPath/tests/langsimple test/XPath/tests/langsimple
  test/XPath/docs/lang: added a regression test
Daniel
This commit is contained in:
Daniel Veillard
2005-04-06 14:09:08 +00:00
parent 6056ae93d3
commit 4ddaa56d7a
5 changed files with 90 additions and 4 deletions

13
test/XPath/docs/lang Normal file
View File

@@ -0,0 +1,13 @@
<doc>
<x>1</x>
<b xml:lang="en">
<x>en</x>
<x>3</x>
</b>
<x>4</x>
<para xml:lang="en"/>
<div xml:lang="en"><para/></div>
<para xml:lang="EN"/>
<para xml:lang="en-us"/>
<para xml:lang="EN-US"/>
</doc>

View File

@@ -0,0 +1,5 @@
//*[lang('en')]
//*[lang('en-us')]
//*[lang('en-gb')]
//*[lang('fr')]
//*[lang('')]