cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Scott <>
Subject Re: Dynamically choosing XSL
Date Wed, 18 Oct 2000 13:08:24 GMT

Matthew Cordes wrote:
> Oops. I'm missing a ".  That should be
> <xsp:pi target="xml-stylesheet">href="<xsp:expr>request.getParameter(
> "stylesheet")</xsp:expr>" type="text/xsl"</xsp:pi>

When I put this in my XML file (and delete the explicit xml-stylesheet PI) I get
the following exception:

      org.apache.cocoon.processor.ProcessorException: Could not associate
stylesheet to document:  no matching stylesheet for: netscape

The actual code I'm using is

<xsp:pi target="xml-stylesheet">

And my request URL is ...headlines2.xml?rows=10&style=headlines.xsl

Is there something I need to set in to make this work?


View raw message