| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:from:subject:to:message-id:date:mime-version | |
| :content-type; q=dns; s=default; b=wZfrZFY+EtqmWNEgkLaTkol+4IPv0 | |
| 1bYqiD33a074klm7uu42B/7NhfT+Jmdgppz70U4FSRgFiyBvhK7AbfymNiK2kqEC | |
| sIN/Q9/uMimgdWKvsTlCOO+ir1SE26d/zYYsUy7TpS3gTaNmAf9n6GBVRo+sk0+a | |
| lyiMzypYz89ml4= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:from:subject:to:message-id:date:mime-version | |
| :content-type; s=default; bh=aVTavznGozTaVk3anOu5le9gyfU=; b=r89 | |
| jzMLgL/MyyaDZDWiuoXuG8zYTAORfglMVzUeoIPr49IV5g35shsyFfxzooej9Tw1 | |
| sCsRFEGroU7FrtsKbwmHCq2popVUP33On+5UE3zPpoAXnOH0uktqYhdFBWugNM65 | |
| 2K2r0bELnpFp659FEfqnyJeut9i74TFlftqMNuaE= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-0.7 required=5.0 tests=BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=UD:cygwin1.dll, cygwin1.dll, cygwin1dll, 0x180040000 |
| X-HELO: | mout.web.de |
| From: | Kay Ulbrich <kay_ulbrich AT web DOT de> |
| Subject: | xmlstarlet ignores XML attributes |
| To: | cygwin AT cygwin DOT com |
| Message-ID: | <a26314fa-e463-113b-b8b3-df353a620cb0@web.de> |
| Date: | Sat, 30 Sep 2017 17:25:08 +0200 |
| User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
| MIME-Version: | 1.0 |
| X-UI-Out-Filterresults: | notjunk:1;V01:K0:U4fEGkakbjg=:9eOrFdkqR0uidRqV696AND phMj3T7b2G9M84v6fZ+6VTWrZWMGQqgl4aLah4MHQeuUBhcxm0CoMFbttVaNWZ2IGo+6eLGcw jdCIFW4vZJL/oBEp/0pJF9CSCmD3yqbepedsrv4cZeR41h2Hz9W4hthP9q5+WkjltYydmhZC8 iPPzjIMubPBOSQz5PPLqzxTgcSHpWYDhSlll8uhlmNW1rQN3VeJ/8AHnnN7PzqBgsTiy5iuqD WMGNyYMZEckP0+UlppPF/3Oo1Wd0ZcaKPVFmSx+Sz4Y05MMt0SvYA4Me4q0iVQcdnzyg5PN/v boPSn7cCcJtnmTukpIghlM7b5osF5SGYWleYrGuWv3n+WFCrTxhu8Tne+5rghZs+JFoYRd29b Xv/LqOA4C1/whqOKUEeV81jVGUowH+N6WqCh+JDo2RpjphvzZo/tNFkC7cE+9Hh9nI528C+05 SEjHNI4L9VrxY+ZXtdtBbYPGO+l0/TDBO15FrWe6IEKhqgeXPA48bFOk1i1DqOIhIxwprZ4h8 lKjBdkoWCH6lLBVf0rtjTpIGrbpQ2Nk0fH6qPa03fL5QuHGR5q8MueSbDzmq4GpW2t9o53Hfa C1PzY/OgaQPzAUDskPVGVDNAFRCE9+Tu59xAqZ+q5GRbn2kxYEYJjWTu2PgrX5EcZy8toTbzO 2YZQGgpNWQXETIqDJ3nb7eOX/SLFc5BNOSIb7HY9QUzDQFcQM+hCsmfUu5jmwOGEQucwPqhVg 3KqjmVtVMHc75R+IPUA9E/M16evNVr0VgVQ64qZu6JGiTxREVueUozbACideJ/yUts8WeG55a Ae1DS1BQQYGBqHZz2O4CMOiuF32rg== |
--------------42B6A98D968301289F4DBBA1
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
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
--------------42B6A98D968301289F4DBBA1
Content-Type: application/octet-stream;
name="libxmlbug.txz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="libxmlbug.txz"
/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4Cf/AmhdADYaSGvK9AosthlLk2j6
W74jaP1TN1XvpA1wb443AS4z7zibpN8jPOIccvgvxLByfGu+1X7kmtLfIyet
Khm4olE/Yk23EDpPTmtyAN6qiDORkukiz2KvvKwvT/c4jHPo000PWHk3xjhc
8j5Yruvpr873AH4/wgKNEEHS9qF+/GOvGbiLVvXkeQhct0tkd0xVXD5ymzOz
hZE01626LN6Q8HsvdEs3D6CZJvLrDYyCw8v3TdiSIj9ljGK3vusZaApea2bC
i7hno8IztjEG7H9elk8F5m0V9s/c2QH0u798VVrgCKCeGnlMuCHzVhY9qmjQ
0ajjJsjCHE3CsewdVxnTpPre8UjQAz9iUoIFwjrocvzno0pKmmjWRNnKGTYq
D3AB+LILo7BKvBFZw8R4J0iZ3d+aNolkYQ585YbW+QdMgLaZWyMrynZtaVJP
cfj4S6q9c1/zXebIW5nFryNRkCvZo905hPsnLdcNjYggV3v8wGxXDN3ST1TH
MKOHrwGC9Ey/IR+8JGnWKbZtOx/mfTJPWdF0SFFbYNMPGFcA1KxhVlNQ8dgW
+C+e0mVDyiKmWwLmsi3BhOCxBCtQwVbiUmQplztgXHzCIU4NtsTdLCFTWFK0
DOe6GIWEjvkT7bonkA4CQcrhO4htprOXOVpkhuwfHyQmnGCenB+CagEHUpl3
21OrkBV54BJvGnTGLkaNiqDfvEhvHHYyv0bmLHexglj1jgHl2TA17pDOOn8f
oASK+GcK+7EaxHYETXh0NGuzOK/rxcXJdCyymYj6QCMRRIPwVAluv94k3VHU
fCUf77qqQDYvvHZLHwsikAAAg5GUCeaUlP0AAYQFgFAAAOiVcQ+xxGf7AgAA
AAAEWVo=
--------------42B6A98D968301289F4DBBA1
Content-Type: text/plain; charset=us-ascii
--
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
--------------42B6A98D968301289F4DBBA1--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |