cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cindy Ballreich <>
Subject more text/plain output
Date Mon, 12 Mar 2001 22:08:03 GMT

A couple of days ago Jonathan Fuerth suggested using XSP to change the
Content-Disposition header so that MSIE will accept text/plain output from
an XML source. I wrote an XSP file that does this and it appears to work -
at least with small amounts of XML. Using the XSP with my full XML file
(which isn't really all *that* big) gives the following error...

java.lang.ClassFormatError: Code of a method longer than 65535 bytes

I expect that I'm going about this all wrong. All I really want to do is
call response.setHeader and then copy the XML with new PIs pointing it to
the proper  XSL file. This is the XSP that I've written...

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
  <xsl:template match="/">
    <xsp:page xmlns:xsp="">
          response.setHeader("Content-Disposition", "inline;
  <xsl:template match="@*|*|text">
    <xsl:copy-of select="."/>

I'd really appreciate any pointers that would get me heading in the right


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message