Public bug reported:
Ubuntu 11.04
libxml2-utils 2.7.8.dfsg-2ubuntu0.1
I see a typo in error message generated by xmllint. I see the same error
reported by xmlstarlet. This is a cosmetic bug and fix should be
easy....
Error message with typo is:
Element test has too may ID attributes defined : id2
It should be:
Element test has too many ID attributes defined : id2
DEMO:
$ xmllint --noout test1.xml
test1.xml:6: validity error : Element test has too may ID attributes defined :
id2
id2 ID #REQUIRED>
^
$ xmlstarlet val -E -e test1.xml
test1.xml:6: Element test has too may ID attributes defined : id2
test1.xml:6: Element test has 2 ID attribute defined in the internal subset :
id2
test1.xml - invalid
$ cat test1.xml
<?xml version="1.0"?>
<!DOCTYPE test [
<!ELEMENT test EMPTY>
<!ATTLIST test
id1 ID #REQUIRED
id2 ID #REQUIRED>
]>
<test id1="A" id2="B" />
** Affects: libxml2 (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Ubuntu 11.04
libxml2-utils 2.7.8.dfsg-2ubuntu0.1
I see a typo in error message generated by xmllint. I see the same error
reported by xmlstarlet. This is a cosmetic bug and fix should be
easy....
Error message with typo is:
- Element test has too may ID attributes defined : id2
+ Element test has too may ID attributes defined : id2
It should be:
- Element test has too many ID attributes defined : id2
+ Element test has too many ID attributes defined : id2
DEMO:
- $ xmllint --noout test1.xml
+ $ xmllint --noout test1.xml
test1.xml:6: validity error : Element test has too may ID attributes defined
: id2
- id2 ID #REQUIRED>
- ^
+ id2 ID #REQUIRED>
+ ^
- $ xmlstarlet val -E -e test1.xml
+ $ xmlstarlet val -E -e test1.xml
test1.xml:6: Element test has too may ID attributes defined : id2
test1.xml:6: Element test has 2 ID attribute defined in the internal subset :
id2
test1.xml - invalid
$ cat test1.xml
-
- $ cat test1.xml
<?xml version="1.0"?>
<!DOCTYPE test [
- <!ELEMENT test EMPTY>
- <!ATTLIST test
- id1 ID #REQUIRED
- id2 ID #REQUIRED>
+ <!ELEMENT test EMPTY>
+ <!ATTLIST test
+ id1 ID #REQUIRED
+ id2 ID #REQUIRED>
]>
<test id1="A" id2="B" />
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/880573
Title:
xmllib2: typo in error message (may x many); xmllint
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/880573/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs