You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by David Geary <sa...@tri-lakesonline.net> on 2000/12/15 04:55:36 UTC
JSP Expressions That Are Not Well-formed?
I'm trying to process an XML file with Xalan to produce a JSP file. My
XSL file looks like this:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
...
<font size='5'>
Inventory as of <%= new java.util.Date() %>
</font><p>
...
When I try to process the XML file, I get the following error:
========= Parsing file:F:/books/jsp/src/xml/inventory_jsp.xsl ==========
file:F:/books/jsp/src/xml/inventory_jsp.xsl; Line 11; Column 65
XSL Error: Could not parse file:F:/books/jsp/src/xml/inventory_jsp.xsl
document!
XSL Error: processStylesheet not successful!
XSLT: The content of elements must consist of well-formed character data
or mark up.
Xalan: was not successful.
XSLProcessor: done
The problem, of course, is that the JSP expression <%= java.util.Date %>
is not well formed.
How can I force that expression to be copied to the result tree? I tried
storing it in a variable, and I also tried specifying it with <xsl:text
disable-output-escaping="true">, but neither worked.
Thanks,
david