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 Tue, 27 Mar 2001 00:35:47 GMT



>HTML would not be the correct DTD, because you are not outputting a
complete 
>HTML document. Right?

That isn't the point.

The point is that Cocoon clearly is not including the so- called "default"
DTD that is specified in the cocoon.properties file. It is including some
other DTD that not only doesn't exist, but isn't even specified anywhere in
the cocoon.properties file!

>That should be
>
><xsl:template match="processing-instruction()">
><xsl:copy-of select="."/>
></xsl:template>
>
Thank you. I have changed the XSL file accordingly.

>In future, I suggest you check your XSLT is conformant against the spec at 
>w3.org before assuming that there must be a Cocoon bug.
>
Again: you miss the point. The "bug" that I am seeing is that Cocoon is not
following the specifications made in the cocoon.properties file. According
to what little there is in the documentation describing it, the default
text/html formatter is supposed to include, in its output header, whatever
is specified for formatter.text/html.doctype-public and
formatter.text/html.doctype-system. Cocoon is not doing that when its
default kicks in. Correct me if I am wrong, but it sounds like a bug to me!

>Then why don't you use <?cocoon-format type="text/xml"?> ?

Again: the point is that it doesn't matter what instruction I give; Cocoon
ignores it and uses a "default" formatter that does not conform to what *I*
specified it should be. 

And besides: as far as Cocoon is concerned, yes, I want XML. Ultimately,
however, the output is supposed to be HTML -- which Cocoon is interfering
with. Furthermore, the third section of my message was just FYI. The problem
is one of Cocoon interacting with a servlet that is using Xalan -- something
outside the scope of these discussions (according to you). Consequently,
there is no need to get into this area. 

>Cocoon 1 is not _designed_ to interact with other servlets (and I stress
the 
>word designed). That doesn't mean it can't, in fact it works rather well
for 
>some people, it just means there are a number of problems, some of which
are 
>well-known and can be worked around. Cocoon 2 will be slightly better with 
>its content aggregation etc.

Again: My third section was FYI. In case you didn't know, the words FYI mean
"For Your Information". That is all that section was. There is nothing there
for you to address, and frankly since by your own admission you do not know
Xalan, there really isn't a lot of advise you can give me in that area --
and I wasn't asking for any.

I know precisely what is happening. Again *FYI*: the problem is in the Xalan
servlet example code and the way it accesses the XML file. It does so in a
way that causes Cocoon to kick in when it shouldn't. That particular problem
is an Xalan problem and should be addressed by the Xalan people.

The problem I am having with Cocoon is that when it does kick in it
references a nonesistant DTD that is not specified anywhere in the
cocoon.properties file. That is what I am asking about here. That is the
*only* problem I am asking advise on.

>Then use <?cocoon-format type="text/xml"?> That will remove the DTD 
>entirely.

No it will not. Because I changed it and it hasn't. Cocoon is still putting
in what it wants, ignoring the XSL changes made, the processing instruction,
and (more important) the cocoon.properties file.

-Robert





_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


**********************************************************************
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