cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anna Afonchenko" <a...@ubaccess.com>
Subject Problems removing meta tag from the html output in Cocoon
Date Wed, 01 Jan 2003 08:19:47 GMT
Hi all.
Happy New 2003 Year to everyone!
Here is my first question this year :-)

I have a small xsl stylesheet that takes in xml and outputs html.
Since the output method is html, xsl puts in the output the following meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
thus making the whole output file invalid xml!

I want to remove this line from the output.
I found a saxon extension thing that does it, if put into the xsl:output element:
<xsl:output method="html" indent="yes" saxon:omit-meta-tag="yes" />

Now here is my problem:
If I execute this xsl through the batch file using saxon, everything is fine, the meta tag
is absent.
But when I try to use it through Cocoon, the meta tag is still there.
I thought that maybe Cocoon couldn't recognise the saxon extension, but when I added inside
my template call to saxon:path() extension, Cocoon executed it as it should.
Here is my pipeline:
<map:match pattern="testURL">
    <map:generate src="test.html" type="html"/>
    <map:transform type="xslt-saxon" src="test.xsl"/>
    <map:serialize type="html"/>
</map:match>

Here is saxon xslt transformer:

<map:transformer name="xslt-saxon" pool-grow="2" pool-max="32" pool-min="8" src="org.apache.cocoon.transformation.TraxTransformer">
<use-request-parameters>false</use-request-parameters>
<use-browser-capabilities-db>false</use-browser-capabilities-db>
<xslt-processor-role>org.apache.cocoon.components.xslt.XSLTProcessor/Saxon</xslt-processor-role>
</map:transformer>

So I don't understand why Cocoon does not recognise the saxon:omit-meta-tag extension.
I am getting invalid XML because of this and it really bothers me.

Somebody encountered such aproblem with Cocoon?
  
Thank you very much for help.

Anna
 

Mime
View raw message