This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook] Error processing FO output from docbook-xsl


P.S.

I wrote:
Robert Shields wrote:
 > Here is the docbook document I am using:
 >
 > <?xml version="1.0"?>
 > <?xmlspysps C:\Program
 > Files\Altova\AUTHENTIC2004\sps\Template\Publishing\DocBook.sps?>
 > <article id="article" xmlns="http://www.star.net.uk/";>
 >     <title>Article Title</title>
 >     <indexterm id="foo" class="startofrange">
 >         <primary>FOO</primary>
 >     </indexterm>
 >     <para>Some text.<footnote>
 >             <para>This is a footnote.</para>
 >         </footnote></para>
 >     <indexterm startref="foo" class="endofrange"/>
 > </article>

Check

xmllint --dtdvalid "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"; --noout -
-:2: warning: xmlParsePITarget: invalid name prefix 'xml'
<?xmlspysps C:\Program
^


and

http://www.w3.org/TR/REC-xml#sec-pi
"PITarget ::=  Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))"

Other than that the document seems to be valid DBX 4.2.

Oops, (my version of) xmllint doesn't flag it, but the document is *not* DocBook. All elements are in a namespace named "http://www.star.net.uk/"; which is not a Docbook namespace. DBX 4.2 documents and elements must be in the null namespace (except for SVG etc elements).


Tools which process DBX should not treat
  <article xmlns="http://www.star.net.uk/";>
as
  <article>
It's a different element.

Tobi

--
http://www.pinkjuice.com/


To unsubscribe from this list, send a post to docbook-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]