Tony,
 Don't forget to add the XSL-FO jar package to your servlet container
configuration. Copy the package into the lib directory and add the relative
path to this package in the CLASSPATH.

Regards,
Jeremy

Jeremy Whiting - Interactive Developer
[EMAIL PROTECTED] 111 5294


-----Original Message-----
From: Tony Southworth [mailto:[EMAIL PROTECTED]]
Sent: 08 April 2002 12:32
To: [EMAIL PROTECTED]
Cc: North Mailbox
Subject: Help desperately needed


Hi all.

Can anyone help me with the following problem...

I have an XML document that I apply an XSL stylesheet to.
This generates a .FO file which I then pass to FOP to be processed into a
PDF file.
Pretty straight forward stuff.

I have managed to get the whole process working without too much trouble
using the command
line interfaces of both Xalan and FOP just as a proof of concept.

However, when I try to do the whole process using a servlet, it fails
miserably.
The problem seems to be that Xalan will not apply the XSL to the XML
document.
Xalan reports the following message:

javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
The prefix "fo" for element "fo:list-block" is not bound.

The line that generates an error is within a "<xsl:choose>" block.
Whatever line I put after the <xsl:choose> causes an error.

However, as I said earlier, the same XLS and XML documents through the
command line work perfectly.

Can anyone give me an idea of what I am doing wrong ?

Thanks in advance.

Tony.

            ---------------------------------------------------
The information contained in or attached to this email is intended only for
the  use  of  the  individual  or  entity  to which it is addressed. It may
contain   information  which  is  confidential  and/or  covered  by  legal,
professional  or  other  privilege (or other similar rules or laws). If you
are  not  the intended recipient, or a person responsible for delivering it
to the intended recipient, you are not authorised to and must not disclose,
copy,  distribute, or retain this message or any part of it. Nor should you
take any action with reference to it.

If  you  have  received this email in error please notify us immediately by
forwarding the email to [EMAIL PROTECTED]


**********************************************************************
Information in this email is confidential and may be privileged. 
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system. 
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone. 
Thank you for your co-operation.
**********************************************************************

Reply via email to