docbook: DocBook XML HOWTOs in the LDP collection


Previous by date: 22 May 2001 05:20:29 -0000 DocBook XML HOWTOs in the LDP collection, Dan Scott
Next by date: 22 May 2001 05:20:29 -0000 Re: DocBook XML HOWTOs in the LDP collection, Greg Ferguson
Previous in thread: 22 May 2001 05:20:29 -0000 DocBook XML HOWTOs in the LDP collection, Dan Scott
Next in thread: 22 May 2001 05:20:29 -0000 Re: DocBook XML HOWTOs in the LDP collection, Greg Ferguson

Subject: Re: DocBook XML HOWTOs in the LDP collection
From: Gregory Leblanc ####@####.####
Date: 22 May 2001 05:20:29 -0000
Message-Id: <990508642.7580.1.camel@peecee.linuxweasel.com>

On 21 May 2001 15:48:41 -0400, Dan Scott wrote:
> Hmm, I decided to expand my DocBook XML processing with Xalan experiments
> to include the other HOWTOs in the LDP collection that use DocBook XML
> (the XML-RPC HOWTO and the JavaStation HOWTO).
> 
> It turns out that both of those HOWTOs are missing the system identifier;
> that is, they both declare:
> 
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
> [ ... entities ... ]>
> 
> rather than:
> 
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
>           "http://docbook.org/xml/4.1.2/docbookx.dtd"
> [ ... entities ... ]>

Ugh, yes, the system identifier is required.  You may find that
processing is faster if you keep a copy of the DTD locally, although it
makes that system identifier not sure to work elsewhere...

> This causes the Xalan XSLT processor to die a quick death.
> 
> Fixing the documents to be XML-compliant isn't quite as easy as adding
> the system identifier, though. The XML-RPC HOWTO appears to contain some
> funky parameter entity stuff that Xalan again barfs on:
> 
> <!ENTITY % GoodStyleSheets "IGNORE">
> <![%GoodStyleSheets;[
> <!ENTITY legal.notice "
>     <legalnotice id='xmlrpc-howto-legal'>&license;</legalnotice>
>     ">
> <!ENTITY legal.section "">
> ]]>

If I remember correctly, including marked sections as entities in XML is
a no-no.  Checking with my friendly XML Guru (Either Daniel Veillard or
Liam Quin, depends on who's awake)...

> (Xalan barfs on the second line, above. I'm not fluent enough in XML to
> know the exact ins and outs of entity declarations within the DOCTYPE
> declaration, so I'm not sure if that's a limitation of the tool or a
> no-no in XML)
> 
> The JavaStation HOWTO, in turn declares an external entity that is
> not included in its gzip archive:
> 
> <!ENTITY gfdl SYSTEM "gfdl.xml">
> 
> When it actually attempts to use this entity elsewhere in the document,
> Xalan again dies (because I don't happen to have a copy of gfdl.xml
> hanging around). This appears to be a case where the doc needs its own
> directory in CVS so it can include multiple files, yes?

Possibly.  I strongly suspect that this file is the GNU Free
Documentation License, marked up in Docbook XML.  If this is so, perhaps
there's a way to keep a single copy in CVS, and include it in relavent
docs.  Then again, maybe not.

> The reason I bring this up is because I was going to volunteer the LDP
> set of DocBook XML docs as representative examples for a gentleman's
> parser experiments on comp.text.xml, but thought I should test them out
> first. I didn't end up volunteering our documents because only the
> DB2-HOWTO works without any editing.
> 
> What this suggests to me is one or both of the following:
> 
> a. the Jade XML transform is a little too lenient, allowing SGML
>    syntax that shouldn't be allowed in XML

Jade is JAmes DSSSL Engine.  It's based on top of SP, which is "SGML
Parser".  It doesn't actually contain a parser specific to XML, instead,
it works with XML by providing a specific SGML declaration (xml.dcl, or
something similar).  Since XML is a strict sub-set of SGML, it works,
mostly.  

> b. the Xalan XML transform is buggy, and doesn't allow some XML
>    syntax that does comply with the XML 1.0 specs

Well, that's -probably- the case as well, but the above errors aren't
bugs in Xalan.  If you're playing with XSLT engines, have you tried
libxslt?  Apparently, it's even faster than Microsoft's, and as such,
should completely blow Xalan out of the water.  It works here, when I
provide it a valid DTD.  :)  http://www.xmlsoft.org/  

> Anyone more knowledgeable out there care to speculate?

Perhaps, see above.  No confirmation on the marked sections, but I'll
probably mail again when one of those two responds in about 30 seconds.
:)
	Greg


Previous by date: 22 May 2001 05:20:29 -0000 DocBook XML HOWTOs in the LDP collection, Dan Scott
Next by date: 22 May 2001 05:20:29 -0000 Re: DocBook XML HOWTOs in the LDP collection, Greg Ferguson
Previous in thread: 22 May 2001 05:20:29 -0000 DocBook XML HOWTOs in the LDP collection, Dan Scott
Next in thread: 22 May 2001 05:20:29 -0000 Re: DocBook XML HOWTOs in the LDP collection, Greg Ferguson


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.