Your message dated Mon, 1 Jan 2018 23:13:44 +0100
with message-id <[email protected]>
and subject line Re: Bug#288149: trang: conversion from XML and attributes with 
a default value
has caused the Debian Bug report #288149,
regarding xmllint: RELAX NG validation fails due to default attribute value
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
288149: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288149
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: trang
Version: 20030619-3
Severity: normal

In a conversion from an XML file, trang considers that an attribute
that has a default value is always present. This leads to invalid
files. For instance:

ay:~> cat test.xml
<?xml version="1.0"?>
<!DOCTYPE root [
<!ELEMENT root (#PCDATA)>
<!ATTLIST root
  type  (text|number)  "text"
  >
]>
<root>Test</root>
ay:~> trang test.xml test.rng
ay:~> cat test.rng
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0"; 
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes";>
  <start>
    <element name="root">
      <attribute name="type">
        <data type="NCName"/>
      </attribute>
      <data type="NCName"/>
    </element>
  </start>
</grammar>
ay:~> xmllint --noout --relaxng test.rng test.xml
test.xml:8: element root: Relax-NG validity error : Element root failed to 
validate attributes
test.xml fails to validate

and similarly:

ay:~> trang test.xml test.rnc
ay:~> cat test.rnc
default namespace = ""

start =
  element root {
    attribute type { xsd:NCName },
    xsd:NCName
  }
ay:~> emacs test.xml

With nxml-mode, the file is regarded as invalid.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (200, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.9-powerpc
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages trang depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.4.3-6    GCC support library
ii  libgcj4                     1:3.3.4-13   Java runtime library for use with 
ii  zlib1g                      1:1.2.2-3    compression library - runtime

-- no debconf information


--- End Message ---
--- Begin Message ---
On Thu, Sep 24, 2009 at 02:48:11PM +0200, Vincent Lefevre wrote:
> retitle 288149 xmllint: RELAX NG validation fails due to default attribute 
> value
> tags 288149 upstream
> forwarded 288149 https://bugzilla.gnome.org/show_bug.cgi?id=596184
> thanks
> 
> Note: I can reproduce the bug under Mac OS X. So, this is
> an upstream bug.

Upstream closed that bug as wontfix.  We won't diverge from such
decision, so I'm closing this bug as well.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to