cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Cain" <>
Subject RE: XSP/XSL
Date Thu, 06 Jul 2000 05:16:39 GMT
Rogerio Lacerda,

> How can I make a XSP file, where the XSL file is dynamic ???

This is done by dynamically creating PIs:

<xsp:pi target="cocoon-process">type="xslt"</xsp:pi>
<xsp:pi target="xml-stylesheet">

You will have to have the PIs inside your root document element or else you
won't be able to dynamically set your stylesheetName variable. It would look
something like this:

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>

<xsp:page ...>
            ...determine stylesheet here...

        ...include stylesheet PIs here... of document...

Jay Cain
Lead Developer
eNetSouth, LLC

View raw message