cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Norvelle" <e...@norvelle.net>
Subject RE: Embedding XML output of XSP into another XML page?
Date Thu, 16 Mar 2000 08:34:23 GMT
To Stefano &/or other Cocoon project leads:

If I wanted to contribute something to the documentation, who would I get in
touch with.  I wouldn't mind writing bits and pieces regarding the
problems/solutions I have come up with...

-Erik Norvelle

> -----Original Message-----
> From: Stefano Mazzocchi [mailto:stefano@apache.org]
> Sent: Wednesday, March 15, 2000 3:35 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Embedding XML output of XSP into another XML page?
>
>
> Erik Norvelle wrote:
> >
> > Folks:
> >
> > I have solved this problem...  It turns out I have to insert
> > <xsl:processing-instruction
> >
> name="cocoon-format">type="text/xml"</xsl:processing-instruction> into the
> > XSL sheet for step #1.  This tag apparently goes inside the
> <xsl:template
> > match="/"> tagset, although it may be able to be put elsewhere.
> >
> > As a note to any writers of documentation, it would be a good idea to
> > include a section in the cocoon spec that lists the processing
> instructions
> > that can be sent to Cocoon via the <xsl:processing-instruction>
> tag.  I only
> > found this one by hunting around in the sample files for several hours.
> >
> > Also, there seems to be a problem that this introduces with the
> XSLT spec.
> > It's my impression that use of the <xsl:output method="xml"/> is the
> > recommended way to indicate output preference.  And indeed,
> Xalan appears to
> > honor this tag.  However, Cocoon, when it sends the processed
> file out to
> > the client, prepends a <!DOCTYPE HTML PUBLIC> declaration to
> the top of the
> > file, ignoring the output type that the xsl file requested.  It
> seems to me
> > that Cocoon should honor the output type that Xalan produces,
> marking it as
> > HTML iff (if and only if) the xsl sheet has specified html via the
> > <xsl:output> tag.
> >
> > For what it's worth...
>
> xsl:output is a hack, exactly like ?cocoon-format? so we should get rid
> of both of them starting from Cocoon2.
>
> About the docs, any help to improve them will be greatly appreciated :)
>
> --
> Stefano Mazzocchi      One must still have chaos in oneself to be
>                           able to give birth to a dancing star.
> <stefano@apache.org>                             Friedrich Nietzsche
> --------------------------------------------------------------------
>  Come to the first official Apache Software Foundation Conference!
> ------------------------- http://ApacheCon.Com ---------------------
>
>
>
> ---------------------------------------------------------------------
> 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