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="" type="html"/>
<map:transform
type="xslt-saxon" src=""/>
<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="">
<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
|
- Re: Problems removing meta tag from the html output in C... Anna Afonchenko
- Re: Problems removing meta tag from the html output... Joerg Pietschmann
- Re: Problems removing meta tag from the html ou... Joerg Heinicke
- Re: Problems removing meta tag from the htm... Joerg Pietschmann
- Re: Problems removing meta tag from the html output... Joerg Heinicke
- Re: Problems removing meta tag from the html ou... Joerg Pietschmann