cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From remo strotkamp <r...@ccrl.nj.nec.com>
Subject Re: Apparent XSLT passthrough
Date Fri, 21 Jan 2000 16:34:30 GMT
Hi there,

I had the same behaviour once and somebody pointed out ( thanx again)
that I should add the following line to the .xml file:

<?cocoon-process type="xslt"?>

Maybe this helps in your case too...

best regards

remo


>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
>                       "http://www.w3.org/TR/REC-html40/strict.dtd">
> <?xml-stylesheet href="hello.xsl" type="text/xsl"?>
> <!-- Written by Stefano Mazzocchi "stefano@apache.org" -->
> <page>
>  <title>Hello</title>
>  <content>
>   <paragraph>This is my first XML/XSL file!</paragraph>
>  </content>
> </page>
>
> <!-- This page was served in 220 milliseconds by Cocoon 1.6 -->
>
> My error log is clean.  Apparently, Cocoon is attempting to translate the
> document to MIME text/html (hence the xml header is replaced with doctype
> html).  However, it seems to be passing through the XSLT engine without
> modification.  Any ideas?  I am using Xerces 1.0.1 and Xalan 0.19.2.
>
> -Ed
>
> ---------------------------------------------------------------------
> 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