XML is new internal format (in CVS version)

Wytze van der Raay wytze at nlnet.nl
Wed Mar 21 09:28:26 CET 2001


Egon Willighagen wrote:

> > 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.
>
> Is this the XML code that gives the error? Or have you already removed the
> problematic code? What was it? This coded should be ok.

The short piece of code I quoted comes after 948 lines of valid XML.
The xalan processing complains about the fact that at line 949 a new
<?xml version="1.0"?>... header is popping up. By deleting lines 949
and further (i.e. the short quoted piece), the complaints from xalan
go away.


> What Xerces/Xalan versions did you use?

xalan-j_2_0_0.tar.gz, downloaded from the Apache XML site.
It includes a xerces.jar as well in the bin subdirectory.

-- 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