Hahn Kurt (CHA) wrote:
> I'm trying to produce PDF-documents, and I'm really desperate. For a while,
> I tried to apply some minor changes to a previously working XSL, and all I
> get since then is the Acrobat message "The file is damaged and could not be
> repaired". However, if I choose xml as ouput instead, everything looks fine
> to me, I get a well-formed document. Is there a way I can validate such a
> document? I mean something similar to a compiler, that tells me at least
> WHERE in the document the error occurred?

Does "if I choose xml as ouput instead, everything looks fine" mean you
get a well-formed FO document? If so, save it to disk and run it through
the commandline FOP application. This won't catch all problems due to
bugs in FOP, but you'll get error messages for most.
There has been various attempts at providing a DTD and a XSchema for
an FO file containing only features understood by FOP, search the
fop-dev archive at http://marc.theaimsgroup.com/?l=fop-dev&r=1&w=2#
which you can use for additional validation (insert a DOCTYPE into
the FO file and feed it to a Xerces sample program, for example the
word counter).

J.Pietschmann



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to