From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31430 invoked by alias); 30 Sep 2017 15:25:16 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 31368 invoked by uid 89); 30 Sep 2017 15:25:15 -0000 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 Received: from mout.web.de (HELO mout.web.de) (212.227.15.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 30 Sep 2017 15:25:13 +0000 Received: from [192.168.2.125] ([84.161.162.9]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M7blv-1d9tuD1NId-00xM9m for ; Sat, 30 Sep 2017 17:25:10 +0200 From: Kay Ulbrich Subject: xmlstarlet ignores XML attributes To: cygwin@cygwin.com Message-ID: Date: Sat, 30 Sep 2017 17:07:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------42B6A98D968301289F4DBBA1" 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== X-SW-Source: 2017-09/txt/msg00319.txt.bz2 --------------42B6A98D968301289F4DBBA1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-length: 2025 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" Content-length: 924 /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 Content-length: 219 -- 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--