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 #682950,
regarding xmlto refuses valid xref xrefstyle content
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.)
--
682950: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682950
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xmlto
Version: 0.0.23-2
I use xmlto to process a docbook file to HTML, and dblatex to process
it to PDF (because the dblatex look nicer and work better in my case).
But I have discovered a problem with xmlto. It is unable to process
xref with xrefstyle values. 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 xmlto, I get this
error:
% xmlto html valid-xref-xrefstyle.xml
xmlto: valid-xref-xrefstyle.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option
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 xmlto unable
to recognize correct docbook XML in this case? xmllint also fail to
validate this XML (reported as BTS #682944), but as far as I can find
on the web and docbook documentation, this is valid use of xref.
--
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 ---