cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <tcu...@dff.st>
Subject Re: changing PI at runtime
Date Wed, 26 Jul 2000 18:51:25 GMT
> > Ok, I got back to the docs and tried the
> > following:
> > 
> > <?xml version="1.0"?>
> > <xsl:stylesheet version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> >> 
> > <xsp:pi target="xml-stylesheet">
> > href="../order1.xsl/html.xsl"
> > type="text/xsl"
> > </xsp:pi>
> > 
> > <xsl:template match="*|@*|text()">
> > ...
> > </xsl:template>
> > 
> > <xsl:template match="page">
> > <xsl:processing-instruction name="cocoon-process">
> > type="xsp"</xsl:processing-instruction>
> > <xsl:processing-instruction name="cocoon-process">
> > type="xslt"</xsl:processing-instruction>
> > 
> >>> HERE I REMOVED THE xsl:proc.. <<
> > 
> > <xsp:page language="java"
> xmlns:xsp="http://www.apache.org/1999/XSP/Core">
> > ...
> > 
> > But all I get is:
> > 
> > no matching stylesheet for: explorer
> > 
> > So I guess Cocoon detected I was viewing the page
> > with an IE and tried to find a stylesheet for that?
> > 
> > How can I control even this in my XSP?
> 
> If I've understood correctly, the order should be:
> 
> > <xsp:page language="java"
> xmlns:xsp="http://www.apache.org/1999/XSP/Core">
> 
> > <xsp:pi target="xml-stylesheet">
> > href="../order1.xsl/html.xsl"
> > type="text/xsl"
> > </xsp:pi>
> 
> But, I'm not sure. It is an xsp page/xsl styleshit, a tag-lib ???

It's an ordinary XSP pages 'called' from the processing
instruction within the XML file.

If I place within the xsp:page tag I have two roots
and get an error!
--
Torsten

Mime
View raw message