cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cindy Ballreich <ci...@ballreich.net>
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"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<xsl:output method="text" encoding="us-ascii"/>
	
	<xsl:template match="catalog">
		<xsl:processing-instruction
name="cocoon-format">type="text/plain"</xsl:processing-instruction>
		<xsl:value-of select="@name"/>
	</xsl:template>
</xsl:stylesheet>


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?

Cindy

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message