Make sure you're stylesheet has both XSLT and FO namespaces. I know I
fought with this one for a day or two:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>

...

If that doesn't work, you might try attaching the xsl and xml files to
this list.

-Matt




> TJ Smith wrote:
> 
> Hello
> My application requires servlet generated pdf from input xsl and xml
> files.  In fact, the application seems to be exactly what is described
> in the document http://xml.apache.org/fop/embedding.html as
> 
> http://blah.blah.blah/fop/servlet/FopServlet?xml=/home/path/to/xmlfile.xml&xsl=/home/path/to/xslfile.xsl
> 
> I am using fop 20.3 and cannot get the FopServlet included with that
> release  to create the pdf via the url as above.  I constanly get a
> massive error trace listing containing the error:
> 
> java.lang.reflect.InvocationTargetException:
> org.apache.fop.apps.FOPException: stylesheet requires attribute:
> version
> my style sheet DOES have a version - so I'm a bit lost as to what is
> going on here!
> 
> I should add that FopServlet works fine when invoked with the url:
> http://blah.blah.blah/fop/servlet/FopServlet?fo=blah.fo
> 
> Any suggestions would be appreciated!
> 
> TJ

Reply via email to