You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Marek Peca <ma...@ktf.cuni.cz> on 2000/10/15 12:20:58 UTC
Is it possible to use server-side scripts with Cocoon?
Hello.
<li> Is it possible to pass CGI-like script produced XML code to Cocoon
XSLT mechanism? For example, to XSL transform an output of Perl prog?
<li> Is it possible to do this with PHP output? I know PHP has some XSLT
support, but it would be great to use Cocoon features.
<li> Can I leave XML files untouched (not XSLTed) for certain user-agents,
such as XML-capable browsers and XML indexing robots?
<li> Is it possible to explicitly request wanted XSLT style from an
user-agent side? E.g. if the default style for newer JavaScripted graphic
browsers is rich designed one, but user prefers to view textual-only page.
Thank you
Marek Peca.
Re: Is it possible to use server-side scripts with Cocoon?
Posted by Sam Ruby <ru...@nc.rr.com>.
Marek Peca wrote:
> <li> Is it possible to pass CGI-like script produced XML code to Cocoon
> XSLT mechanism? For example, to XSL transform an output of Perl prog?
If the language is callable from Java, it should be possible to write a
generator to do this. One of the building blocks could be the Bean
Scripting Framework
(http://oss.software.ibm.com/developerworks/opensource/bsf/).
> <li> Is it possible to do this with PHP output? I know PHP has some XSLT
> support, but it would be great to use Cocoon features.
I did write a generator to do this with Cocoon 2, but that code base has
been undergoing rapid development. Now that it appears to be quieting down,
I need to go back and ensure that this still works.
> <li> Can I leave XML files untouched (not XSLTed) for certain user-agents,
> such as XML-capable browsers and XML indexing robots?
Depends on the browser. See http://www.xslt.com/resources_browsers.htm for
more details.
> <li> Is it possible to explicitly request wanted XSLT style from an
> user-agent side? E.g. if the default style for newer JavaScripted graphic
> browsers is rich designed one, but user prefers to view textual-only page.
I'm not sure, but I think that this would depend on the particular server
application.
By the way, I think a better place to ask these questions might be one of
the cocoon mailing lists.