XML is new internal format (in CVS version)

Wytze van der Raay wytze at nlnet.nl
Tue Mar 20 18:23:25 CET 2001


Egon Willighagen wrote:

> Today in the CVS version the internal format was changed to XML.
> This might give some errors, so submit bugs you encounter with the
> current CVS version...

Does that include the interim release (20010320) which Joost uploaded,
or just the CVS version?
I attempted to use the XML support in the 20010320 tarball, following
the instructions from the README:

-----
* DocBook XML, PDF, and other formats

If you have DocBook XML installed on your machine it is interesting to know
that lire is able to generate DocBook XML output. To generate DocBook XML
reports you need an XSLT processor; you need to generate the output in
raw LogReport XML format first.

For example:

lr_run lr_log2report -x www apache common < apache.log > apache.xml

With the LogReport docbook.xsl this XML document can be converted to a
DocBook XML document by means of the XSLT processor. One could, for example,
use Apache's Xalan processor (written in Java/C++, http://xml.apache.org/):

in case of Xalan-Java:

java -classpath xerxec.jar:xalan.jar org.apache.xalan.xslt.Process \
  -IN apache.xml -XSL <prefix>/lib/xml/stylesheet/xsl/logreport/docbook.xsl \
  > apache.dbx
-----

and encountered the following problems:

1. The call to lr_log2report is missing the 'errorfile' argument.

2. The "xerxec.jar" is a misspelling, it should be "xerces.jar"
   (prefixed of course with whatever path you've installed it).

3. The xalan translation fails with:
   XSLT Error (javax.xml.transform.TransformerException): The XML declaration
may only appear at the very beginning of the document.
   This seems to be caused by an extra piece of xml code at the end of
   the apache.xml file:

<?xml version="1.0"?>
<!DOCTYPE report SYSTEM
"/village/wytze/logreport/software/lib/xml/dtd/logreport.dtd" []>
<report date="Tue Mar 20 18:19:56 CET 2001">
  <!-- generated by lr_dlf2xml(1) -->
  <subreport superservice="www">
    </table>
  </subreport>
  <subreport superservice="www">
    </table>
  </subreport>
  <subreport superservice="www">
    </table>
  </subreport>
</report>

   After deleting that piece of code, xalan processing appears to succeed.

-- wytze




-- 
To UNSUBSCRIBE, email to development-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
development-request at logreport.org



More information about the Development mailing list