You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ed Knutson <ed...@webcombo.net> on 2000/01/21 00:51:56 UTC
Apparent XSLT passthrough
Hello....
I am interested in using Cocoon to make my company's website more
manageable.
I installed Apache 1.3.9 on Windows 98 with Jserv 1.1b3. I then added
Cocoon and placed the example files in my htdocs path. When I try to
retrieve hello.xml with Netscape 4.7, I get a blank screen with the
following source:
<!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
Re: Apparent XSLT passthrough
Posted by remo strotkamp <re...@ccrl.nj.nec.com>.
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