Your message dated Fri, 27 Jul 2012 21:05:12 +0200
with message-id <[email protected]>
and subject line Re: Bug#682944: xmllint refuses valid xref xrefstyle content 
when validating docbook file
has caused the Debian Bug report #682944,
regarding xmllint refuses valid xref xrefstyle content when validating docbook 
file
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.)


-- 
682944: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682944
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libxml2-utils
Version: 2.7.8.dfsg-2+squeeze4

I try to validate my docbook file before processing it, but after
adding xrefs the document is rejected, even if the dblatex processor
seem to handle the XML just fine, and the XML formatting is correct as
far as I can see.  This is a simple XML example to demonstrate the
problem:

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
<book>
  <bookinfo>
    <title>Your title here</title>
  </bookinfo>
  
    <chapter id="ch1"><title>Chapter title</title>
      <section><title>Section title 1</title>
      <para>
      See chapter on page <xref xrefstyle="select: pagenumber" linkend="ch1"/>.
      </para>
      </section> 
    </chapter>
</book>

When processing it with dblatex, the paragraph is expanded to "See
chapter on page 1".  But when I process it with xmllint, I get this
error:

  % xmllint --nonet --noout --postvalid --xinclude valid-xref-xrefstyle.xml 
  valid-xref-xrefstyle.xml:11: element xref: validity error : No declaration 
for attribute xrefstyle of element xref
  Document valid-xref-xrefstyle.xml does not validate
  %

What is going on here?  Is the docbook XML invalid or is xmllint
unable to recognize correct docbook XML?

-- 
Happy hacking
Petter Reinholdtsen

--- End Message ---
--- Begin Message ---
Am Freitag, den 27.07.2012, 10:14 +0200 schrieb Petter Reinholdtsen:

> I try to validate my docbook file before processing it, but after
> adding xrefs the document is rejected, even if the dblatex processor
> seem to handle the XML just fine, and the XML formatting is correct as
> far as I can see.  This is a simple XML example to demonstrate the
> problem:
> 
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.2//EN"
[snip]

xref had been introduced with DocBook XML 4.3. So xmllint is correct.
You content is invalid. You can either adjust the DocBook version or
remove the xref elements or follow the advice xmlto gave you.

I'm closing both of your reports.

Regards, Daniel

--- End Message ---

Reply via email to