Hi Tony,

at that level of detail your trouble is hard to shoot.
Far and away the most common explanation for this kind
of surprise, when moving your code into a servlet, is
that the support libraries you're using (particularly
the XML parser or servlet engine) are not the ones you
were using before you went to the servlet environment.
Most servlet engines have an XML parser in a server-wide
library directory, which may be used instead of the one
you supply in your web-app. Investigate your setup and
make sure the parser that IS used is namespace-aware
(e.g. Xerces) and has the feature

        http://xml.org/sax/features/namespaces

set to true. And isn't buggy! :)

Hope that gets you somewhere, cheers,

        - Gulli


            ---------------------------------------------------
The information contained  in this addendum is NOT intended  for the use of
the individual or entity  to which this email is addressed.  It is intended
for his company's legal department. And I hope it bugs them. It may contain
information which is  satirical and/or characterized by  legal but entirely
unprofessional mockery or general disrespect (or other similar misconduct).
If you are not the intended recipient of these abuses, or a person who will
enjoy inflicting them on the intended  recipient, you are not authorised to
and must not disclose, copy, distribute, or retain this message or any part
of it, in electronic form  or in your head. If you memorize  any portion of
this message,  legal action may be taken  against you, and your head may be
subpoenaed. You never know.  Nor should you take any  action with reference
to it, except perhaps to smile nostalgically and think of the past when you
weren't required to attach silly legalese to your email. :)



> -----Original Message-----
> From: Tony Southworth [mailto:[EMAIL PROTECTED]]
> Sent: 8. april 2002 11: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]
> 

Reply via email to