cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhi <sudheen...@insage.com>
Subject Re: Preventing transformation
Date Fri, 29 Sep 2000 18:07:34 GMT
Hi,

here is a sample xsp page.if thats what ur looking for

--------------------------------------------
<?xml version="1.0" standalone="no"?>
<?cocoon-process type="xsp"?>

<xsp:page language="java"
xmlns:xsp="http://www.apache.org/1999/XSP/Core">
<PAGE>
<xsp:logic>
String file = "dynamic.en.xsl";
String param = null;
param = (String)request.getParameter("file");
if (param != null &amp;&amp; !param.equals("")){
        if ( param.equals("cn"))
                file = "dynamic.cn.xsl";
}
</xsp:logic>
<xsp:pi target="cocoon-process">type="xslt"</xsp:pi>
<xsp:pi target="xml-stylesheet">href="<xsp:expr>file</xsp:expr>"
type="text/xsl"</xsp:pi>

<NEWS>
<TITLE>test</TITLE>
</NEWS>
<FILE><xsp:expr>file</xsp:expr>:<xsp:expr>param</xsp:expr></FILE>
</PAGE>
</xsp:page>
--------------------------------------------

HTH
Sudhi



Christian NENTWICH wrote:
> 
> > If I am understanding correctly, u dont want to do XSLT process for some
> > request.
> > If that is the case, u can specify processing instructions at run time.
> > There were a couple of posts about this in this list.
> > Check the archives.
> 
> I would if there wasn't an internal server error on each of the archive
> pages... Thanks anyway.
> 
> Christian
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message