Tony -- It's hard to tell what's going wrong with your servlet since you haven't provided any code! Check to make sure that you're using a namespace-aware parser and that you've turned namespace awareness on. The examples on the web page (http://xml.apache.org/xalan-j/samples.html#servlet) should help.
Gary > -----Original Message----- > From: Tony Southworth [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 08, 2002 4:32 AM > 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] >
