You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by James Scott <js...@hnt.com> on 2000/10/18 16:25:22 UTC

Re: Dynamically choosing XSL - problem solved

Okay, I had the xsp:pi tags outside my single top-level "root" tag (which I
called regions in this case). Putting them inside that tag fixed the problem.

/me turns red.

JLS

James Scott wrote:
> 
> Robin Green wrote:
> >
> > No. Try this:
> 
> Unfortunately, that didn't work either. Somehow the results of the xsp:pi
> directives are not getting copied to the output. When I comment out the XSLT
> cocoon-process directive, I don't see the xml-stylesheet directive. However,
> when I use an explicit xml-stylesheet directive, it gets copied to the XSP
> output.
> 
> Here's the actual code I'm working with (plus or minus a few comments):
> 
> <?xml version="1.0"?>
> <!-- <?xml-stylesheet href="headlines.xsl" type="text/xsl"?> -->
> <?cocoon-process type="xsp"?>
> <?cocoon-process type="xslt"?>
> <xsp:page language="java"
>           xmlns:sql="http://www.apache.org/1999/SQL"
>           xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> >
> <!-- <xsp:pi target="cocoon-process"><xsp:text>type="xslt"</xsp:text></xsp:pi>
> -->
> <xsp:pi target="xml-stylesheet">
> <xsp:text>
>   href="headlines.xsl"
>   type="text/xsl"
> </xsp:text>
> </xsp:pi>
> [...]
> 
> Note that I am using the SQL taglib. Could that be consuming my xsp:pi tags? Is
> there any way I can get it to copy the PIs to the output, or should I use ESQL?
> 
> JLS
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org