cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Subject Re: Basic how-to
Date Sun, 10 Sep 2000 13:13:57 GMT
"Steve Lane" <> wrote:
>this should be a simple question, from someone new to both XML and Cocoon:
>I've figured out the basics of associating XML docs and stylesheets. My
>problem is that I want to tie a stylesheet to a dynamic XML source. I have 
>URL that, based on the exact parameters I feed it, will hand me back an XML
>stream based on the contents of a database.
>How do I tie this dynamic XML source to a stylesheet using cocoon? I've 
>the various user guides without finding an answer.

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="yourstylesheet.xsl" type="text/xsl"?>

<xsp:page language="java" xmlns:xsp=""
    <util:include-uri href=""/>

Note that, instead of getting just the XML page returned from that URI, you 
will get the XML page with a <page> tag wrapped around it, so you may need 
to change your stylesheet slightly to account for that. This is unavoidable 
if you use XSP.

Get Your Private, Free E-mail from MSN Hotmail at

Share information about yourself, create your own public profile at

View raw message