xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: Problem using attributes with <xsl:value-of select=""/>
Date Tue, 24 Nov 2009 20:50:10 GMT
On 24.11.2009 03:28, Glen Mazza wrote:
>            Fop fop2 = fopFactory.newFop(MimeConstants.MIME_PDF, outStream2);
>            Result res2 = new SAXResult(fop2.getDefaultHandler());
>            t.transform(rptSource2, res2);

Hmm, Transformers can't be reused, perhaps you should get a new
instance here?

Another possible problem:
> atts.addAttribute("", "", "reportId", "", "123");

The method declaration is:
  addAttribute(String uri, String localName, String qName, String type,
    String value)

You are setting the local name to "", which may  cause hiccups.
Try any of the following:
  atts.addAttribute("", "reportId", "reportId", "", "123");
  atts.addAttribute(null, "reportId", "reportId", "", "123");
(Actually, I have no idea which one should work, may even be
implementation dependent).

HTH
J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message