cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brown III, Robert" <RBro...@concord.com>
Subject RE: There appears to be an XML-to- HTML formatting problem on my server...
Date Mon, 26 Mar 2001 21:51:44 GMT

>If cocoon can not find a cocoon-format PI; <?cocoon-format
>type="xxx/yyy"?>
>where xxx/yyy is a formatter in cocoon.properties; it is using the
>default formatter as specified in cocoon.properties:
>
>formatter.default = text/html

A couple of things:

(1) I have no problem with Cocoon using the default formatter. The problem
here is that, in the cocoon.properties file, the declaration for the header
that should be put in for text/html is copied below:

# HTML 4.0 (strict)
formatter.text/html.doctype-public = -//W3C//DTD HTML 4.0//EN
formatter.text/html.doctype-system =
http://www.w3.org/TR/REC-html40/strict.dtd

but what is actually being put into the header is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" 
     "http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd">

which is clearly different from the header that is declared for the default
formatter! Unless there is something I am missing? If Cocoon is going to
insist on using the default formatter, why isn't it pulling in the correct
DTD???

(2) Please note that the XML file did, indeed, have a Cocoon formatting
processing instruction in it (as explained in my original message):

<?cocoon-format type="text/html/loose"?>

which is intended to make Cocoon use the following from the
cocoon.properties file:

# HTML 4.0 (transitional)
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
formatter.text/html/loose.preserve-space = true
formatter.text/html/loose.encoding = UTF-8
formatter.text/html/loose.indent = 1
formatter.text/html/loose.line-width = 120
formatter.text/html/loose.MIME-type = text/html

Note that, in addition, I added the following to my .XSL file, as indicated
by the FAQ:

	<xsl:template match="cocoon-format()">
		<xsl:copy-of select="."/>
	</xsl:template>

My processing- instruction is still being ignored, the default is still
being used -- and the default is still not even going to the correct DTD.

This is looking more and more like a Cocoon bug. Am I correct, or am I
missing something?

(3) What I am trying to do is output XML. What I am *really* doing is trying
to get an Xalan servlet example to work on a system that happens to have
Cocoon on it. I am finding some weird interactions between servlets that use
Xalan and Cocoon. This info, however, is FYI; the problems I am having can
be solved if Cocoon wouldn't keep putting in that reference to a nonexistent
DTD, so that is the thing I am trying to fix.

-----Original Message-----
From: Sebastien Koechlin [mailto:skoechlin@ivision.fr]
Sent: Friday, March 23, 2001 6:48 AM
To: cocoon-users@xml.apache.org
Subject: Re: There appears to be an XML-to- HTML formatting problem on
my server...


"Brown III, Robert" wrote:
> 
>    Unfortunately, for XML files that are processed as XML files (in other
> words, files that I want to use different processing or no processesing
for)
> Cocoon adds the following tag:

What are you trying to do? Output XML? Cocoon does always process XML
and nothing else. HTML is an org.apache.cocoon.formatter question.



-- 
S├ębastien Koechlin - IVision - skoechlin@ivision.fr

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
the latest virus scan software available for the presence of computer viruses.

**********************************************************************

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message