OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] … vs xmllint


Ah that explains it !

&amp; is special. One has to repeat the <!DOCTYPE declaration within
each file. the xi:include is not exactly working as I thought.

$ cat section.xml
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 "docbookV4.5/docbookx.dtd">
<section>
  <title/>
  <para>&amp; is ok</para>
  <para>&hellip; is ok now</para>
</section>


On Thu, Feb 25, 2010 at 12:44 PM, Dominic Weiss <d.weiss@com4cure.de> wrote:
> Hi,
> maybe this will help you:
>
> http://infohost.nmt.edu/tcc/help/pubs/docbook43/special-chars.html
>
> and take a look there, too:
>
> http://www.web-source.net/symbols.htm
>
> Maybe I´m wrong, I'm still new in docbook-dev :-)
>
> Greetings
> Dominic
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Mathieu Malaterre [mailto:mathieu.malaterre@gmail.com]
> Gesendet: Donnerstag, 25. Februar 2010 12:32
> An: DocBook Apps
> Betreff: [docbook-apps] &hellip; vs xmllint
>
> hi there,
>
>  I have written a couple of Makefile rules to check my docbook XML is
> valid. for this task I used xmllint. It used to work pretty nicely up
> to now. Could someone please let me know what is the issue with the
> following:
>
> $ cat test.xml
> <?xml version='1.0' encoding='UTF-8'?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
> "docbookV4.5/docbookx.dtd">
> <article>
>  <section>
>    <title/>
>      <para>&hellip; is ok here</para>
>  </section>
>  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="section.xml"/>
> </article>
> $ cat section.xml
> <?xml version='1.0' encoding='UTF-8'?>
>  <section>
>    <title/>
>      <para>&amp; is ok</para>
>      <para>&hellip; is not ok</para>
>  </section>
>
> $ xmllint --xinclude --postvalid --noout --nonet test.xml
> section.xml:5: parser error : Entity 'hellip' not defined
>      <para>&hellip; is not ok</para>
>                    ^
> test.xml:8: element include: XInclude error : could not load
> section.xml, and no fallback was found
> test.xml:3: element article: validity error : Element article content
> does not follow the DTD, expecting ((title , subtitle? ,
> titleabbrev?)? , articleinfo? , tocchap? , lot* , (((calloutlist |
> glosslist | bibliolist | itemizedlist | orderedlist | segmentedlist |
> simplelist | variablelist | caution | important | note | tip | warning
> | literallayout | programlisting | programlistingco | screen |
> screenco | screenshot | synopsis | cmdsynopsis | funcsynopsis |
> classsynopsis | fieldsynopsis | constructorsynopsis |
> destructorsynopsis | methodsynopsis | formalpara | para | simpara |
> address | blockquote | graphic | graphicco | mediaobject |
> mediaobjectco | informalequation | informalexample | informalfigure |
> informaltable | equation | example | figure | table | msgset |
> procedure | sidebar | qandaset | task | anchor | bridgehead | remark |
> highlights | abstract | authorblurb | epigraph | indexterm |
> beginpage)+ , (sect1* | refentry* | simplesect* | section*)) | sect1+
> | refentry+ | simplesect+ | section+) , (toc | lot | index | glossary
> | bibliography | appendix | colophon | ackno)*), got (section
> xi:include )
> test.xml:8: element include: validity error : No declaration for element include
> test.xml:8: element include: validity error : No declaration for
> attribute href of element include
> test.xml:8: element include: validity error : No declaration for
> attribute xmlns:xi of element include
> Document test.xml does not validate
>
>
> Thanks a bunch !
> --
> Mathieu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>
>
>



-- 
Mathieu


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]