Dear serna developers,

a user of the Debian package has issues with the xincludes support in
Serna:

Am Dienstag, den 13.04.2010, 14:35 +0200 schrieb Mathieu Malaterre:
> Serna does not implement validation when using XInclude. See attached
> demo*.xml files.
> 
> Using xmllint no error is reported:
> 
> $ /usr/bin/xmllint --xinclude --postvalid --noout --nonet demo.xml
> 
> However serna fails to validate the demo.xml docbook article.

For your convenience, the example files are:

==> demo1.xml <==
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
<section>
  <title>demo1 title</title>
  <para><link linkend="demo2">my link</link> 
</para>
</section>

==> demo2.xml <==
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
<section id="demo2">
  <title>demo2 title</title>
  <para>
</para>
</section>

==> demo.xml <==
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
<article>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="demo1.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="demo2.xml"/>
</article>

You can download them from
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577652#10


Serna’s error messages are:
        (demo1.xml) Required ID 'demo2' not found [section/para/link]
        (demo1.xml) Attribute 'linkend' is not valid [section/para/link]
so it seems Serna is having problems with linking across different
XInclude’d parts of the document.


Thanks,
Joachim
-- 
Joachim "nomeata" Breitner
Debian Developer
  [email protected] | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: [email protected] | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to