jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Kost <s.k...@webmacher.de>
Subject FO Tag Library
Date Wed, 12 Dec 2001 15:43:54 GMT
Hi,

I have now written a FO taglibray and it sort of works. You can write
things like :
<%@ page session="false" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/fo-1.0" prefix="fop"%>
<fop:process style="pdf">
  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    ...
  </fo:root>
</fop:process>

and you'll get a pdf beamed right into your browser.
Next I've tried things like :
<%@ page session="false" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/fo-1.0" prefix="fop"%>
<fop:process style="pdf">
  <xsl:apply xsl="/fop/index.xsl">
    <page>
      <title>
        pdf-test
      </title>
      <content>
        Hallo
      </content>
    </page>
  </xsl:apply>
</fop:process>

but all I get is :
javax.servlet.ServletException: TransformerException
	at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
	at
fop._0002ffop_0002findex_0002ejspindex_jsp_5._jspService(_0002ffop_0002findex_0002ejspindex_jsp_5.java:145)

...

Root cause:

javax.servlet.jsp.JspException: TransformerException
	at org.apache.taglibs.xsl.ApplyTag.doEndTag(ApplyTag.java:360)
	at
fop._0002ffop_0002findex_0002ejspindex_jsp_5._jspService(_0002ffop_0002findex_0002ejspindex_jsp_5.java:116)


The funny thing is, when I just comment out the fop-tag, the xsl works
fine and I get the fo-xml as the page result.
Any ideas ? 

Stefan
-- 

 < W E B M A C H E R > 
EDV+INTERNETSERVICE GMBH

POST: August Bebel Str. 69
      04275 Leipzig

FON:  +49 341 30 34 832
FAX:  +49 341 30 34 840
WEB:  www.webmacher.de


--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message