You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alessandro Marcellini <am...@tiscalinet.it> on 2001/05/09 16:34:34 UTC
Js problem with Cocoon & MacOS
Hi All,
I've a problem with Cocoon 1 with Tomcat321 and Apache on a Linux
Server.
This is the story:
I've a html page with some call to javascript function that are saved in
a proper file
and included in the html page with the proper syntax as sugested in the
faq
(<script language="Javascript" src="menu.js"></script>).
So, if I name this page page.html and try to visualize in IE on MacOS
there are no problems, but if I name the file page.xml (so Cocoon parse
it!) the javascript
works no more!
All this only for IE on MacOS, for ex. on Netscape on MacOS there are no
problems, as in IE or netscape in other platform.
So this is the question:
Writes Cocoon something that IE on MacOS may misundertand?
What adds Cocoon to a "simple" html page?
I see that Cocoon, before the <html> tag inserts a doctype declaration:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd">
May this generate some problem?
Have someone some suggetion to debug this problem?
Thank's in advance
Alessandro
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Omit the DOCTYPE declaration
Posted by Alessandro Marcellini <am...@tiscalinet.it>.
Hi all,
I use Cocoon 1.8.2 on Tomcat 321 on Apache on Linux
I need to produce Dynamic html pages without the DOCTYPE declaration, so the
question is:
There is a Way to omit the DOCTYPE declaration?
Thank's in Advance
Alessandro
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Js problem with Cocoon & MacOS
Posted by Alessandro Marcellini <am...@tiscalinet.it>.
Yes: the DOCTYPE Declaration is the problem:
I tried to write the DOCTYPE declaration generated from cocoon in the html
document and the Javascript was in error!
this is the declaration:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd">
Then I tried to change the declaration to Transitional using the PI
<?cocoon-format type="text/html/loose"?>
But the DOCTYPE declaration in the so generated document is the same as
above!
I controlled in the cocoon.properties file in WEB-INF dir. and I founded
this rows:
formatter.text/html/loose.doctype-public = -//W3C//DTD HTML 4.0
Transitional//EN
formatter.text/html/loose.doctype-system =
http://www.w3.org/TR/REC-html40/loose.dtd
So, what I've wrong?
Thank's
Alessandro
Lennart Olsson wrote:
> Alessandro,
>
> >So this is the question:
> >Writes Cocoon something that IE on MacOS may misundertand?
> >What adds Cocoon to a "simple" html page?
> >I see that Cocoon, before the <html> tag inserts a doctype declaration:
> ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
> >"http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd">
> >May this generate some problem?
> >Have someone some suggetion to debug this problem?
>
> I don't know the answer, but maybe you can get some debugging hints
> by reading http://developer.apple.com/internet/_html/doctype.html
>
> Check the section "DOCTYPE Switching". It describes when IE5/Mac
> switches between rendering modes depending on the DOCTYPE tag.
>
> /Lennart
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Js problem with Cocoon & MacOS
Posted by Lennart Olsson <le...@tim.se>.
Alessandro,
>So this is the question:
>Writes Cocoon something that IE on MacOS may misundertand?
>What adds Cocoon to a "simple" html page?
>I see that Cocoon, before the <html> tag inserts a doctype declaration:
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
>"http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd">
>May this generate some problem?
>Have someone some suggetion to debug this problem?
I don't know the answer, but maybe you can get some debugging hints
by reading http://developer.apple.com/internet/_html/doctype.html
Check the section "DOCTYPE Switching". It describes when IE5/Mac
switches between rendering modes depending on the DOCTYPE tag.
/Lennart
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>