DOCTYPE in stylesheets

From: Peter Heinrich <resin@xxx.com>
Date: Sat Dec 08 2001 - 18:40:02 PST

I realize this subject has been done to death, but I need a sanity check.
I'm getting the (very interesting) exception below, but everything I've
found on the mailing list says it should work with no problems. Am I
missing something basic?

Thanks!
peter

----------------------------------------------------------------------
500 Servlet Exception
test.xsl:9: com.caucho.xpath.XPathParseException: unexpected character
at ``x'' in pattern `DOCTYPE xsl:stylesheet [!ENTITY frac14 "&#188;">]>

xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  xsl:output method="text/html"/>
  xsl:template match="/">
    xsl:text>before &frac14; after/xsl:text>
  /xsl:template>
/xsl:stylesheet>'

Resin 2.0.4 (built Thu Nov 15 17:56:24 PST 2001)
----------------------------------------------------------------------

Here are the files which generate the exception:

test.xsl
================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY frac14 "&#188;">]>

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="text/html"/>
  <xsl:template match="/">
    <xsl:text>before &frac14; after</xsl:text>
  </xsl:template>
</xsl:stylesheet>

index.jsp
================
<jsp:directive.page contentType="x-application/xsl"/>
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="test.xsl" type="text/xsl"?>
<home/>
Received on Sat 08 Dec 2001 18:40:02 -0800

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:52 PDT