cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cindy Ballreich <>
Subject text/plain output
Date Thu, 08 Mar 2001 20:17:27 GMT
I'm trying to create an XSL that will output plain text. Here is the XSL
that I've been testing with...

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	<xsl:output method="text" encoding="us-ascii"/>
	<xsl:template match="catalog">
		<xsl:value-of select="@name"/>

The only output I get is the following error...

org.apache.xalan.xslt.XSLProcessorException: Warning: can't output text
before document element!  Ignoring...

The value being selected is text and it does exist in the XML file. It
displays properly as XML, but text output doesn't seem to work. Am I
missing something important here?


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