From: Kay Ulbrich <kay_ulbrich@web.de>
To: cygwin@cygwin.com
Subject: xmlstarlet ignores XML attributes
Date: Sat, 30 Sep 2017 17:07:00 -0000 [thread overview]
Message-ID: <a26314fa-e463-113b-b8b3-df353a620cb0@web.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 2025 bytes --]
Hello,
on a current Cygwin-installation, xmlstarlet fails to validate a valid
XML document against an XML schema (XSD). One gets error messages like
attribute 'date': '' is not a valid value of the atomic type 'xs:dateTime'.
on attributes, which are present. The behaviour can be reproduced using
the example files from the attached tar-archive via:
xmlstarlet val -e -s minimal.xsd minimal.xml
On the versions installed on Debian Testing, for instance, the
validation works for the same documents.
I found a quite recent similar bug report for Debian, there seems to be
a problem with certain versions of libxml:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832602
Additional information below.
*Failing on Cygwin:*
$ uname -a
CYGWIN_NT-10.0 goe-nb-ubk-w10 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64
Cygwin
$ xmlstarlet --version
1.6.1
compiled against libxml2 2.9.1, linked with 20904
compiled against libxslt 1.1.28, linked with 10129
$ ldd `which xmlstarlet.exe`
ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ffbcc5e0000)
KERNEL32.DLL => /cygdrive/c/Windows/System32/KERNEL32.DLL
(0x7ffbca5f0000)
KERNELBASE.dll => /cygdrive/c/Windows/System32/KERNELBASE.dll
(0x7ffbc94a0000)
cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
cygexslt-0.dll => /usr/bin/cygexslt-0.dll (0x3f35d0000)
cygxml2-2.dll => /usr/bin/cygxml2-2.dll (0x3f3cf0000)
cygxslt-1.dll => /usr/bin/cygxslt-1.dll (0x3e1240000)
cyggcrypt-20.dll => /usr/bin/cyggcrypt-20.dll (0x3ee1b0000)
cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3fa9c0000)
cyglzma-5.dll => /usr/bin/cyglzma-5.dll (0x3f5af0000)
cygz.dll => /usr/bin/cygz.dll (0x3f3c90000)
cyggpg-error-0.dll => /usr/bin/cyggpg-error-0.dll (0x3eda70000)
cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3fa890000)
*Here it worked (Debian Testing):*
$ xmlstarlet --version
1.6.1
compiled against libxml2 2.9.4, linked with 20904
compiled against libxslt 1.1.29, linked with 10129
[-- Attachment #2: libxmlbug.txz --]
[-- Type: application/octet-stream, Size: 680 bytes --]
[-- Attachment #3: Type: text/plain, Size: 219 bytes --]
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next reply other threads:[~2017-09-30 15:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-30 17:07 Kay Ulbrich [this message]
2017-10-02 19:10 ` libxml2: Attribute decoding patch (was: Re: xmlstarlet ignores XML attributes) David Stacey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a26314fa-e463-113b-b8b3-df353a620cb0@web.de \
--to=kay_ulbrich@web.de \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).