cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Catalifaud" <alexandre.catalif...@ece.fr>
Subject RE: XSL and XSP
Date Tue, 22 Jan 2002 07:54:41 GMT
Please help me !

How can I use different XSL for one XML, depending on the URL parameter ? I
know it's possible !

Thanks !!
Alexandre


------------------------------------------------------
Webmaster de
	CalexO.com (www.calexo.com)
	Loufok (www.loufok.com)
	www.horoscopecanin.com
	www.monsponsorweb.com
	  (Service d'Hebergement gratuit,...)
      mbornes.calexo.com
        Jeu de Mille Bornes par mails
	CKoiDon? (www.ckoidon.com)
	Fideloo (www.fideloo.com) A Vendre
IRC : EFnet - #calexo
ICQ : UIN 21801602
Fax : 01 73 72 15 06
------------------------------------------------------

> -----Message d'origine-----
> De : alexandre.catalifaud@ece.fr [mailto:alexandre.catalifaud@ece.fr]
> Envoyé : lundi 21 janvier 2002 16:17
> À : cocoon-users@xml.apache.org
> Objet : XSL and XSP
>
>
> Hi !
>
> I have a problem
> I want to select my XSL Stylesheet with a parameter in the URL
> I use the code joined to that mail
>
> When the <?xml-stylesheet> is commented, i have that error :
> org.apache.cocoon.processor.ProcessorException: Could not
> associate stylesheet
> to document:  no matching stylesheet for: explorer
>
> when I uncomment it, it works, but with the XSL file specified,
> not the one
> given in the URL as a parameter (page.xml?style=pdf for example)
>
> Please help !!
>
> Thanks
>
>
> ---Code :------------------------------
>
> <?xml version="1.0"?>
>
> <?cocoon-process type="xsp" ?>
> <?cocoon-process type="xslt" ?>
>
> <!-- <?xml-stylesheet href="hello-page-html.xsl" type="text/xsl"?> -->
>
> <xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> xmlns:request="http://www.apache.org/1999/XSP/Request">
>         <xsp:processing-instruction target="xml-stylesheet">
>         href="hello-page-="<xsp:expr><request:get-parameter
> name="style"/></xsp:expr>.xsl" type="text/xsl"
>         </xsp:processing-instruction>
>         <page>
>          <title>Hello</title>
>          <content>
>           He oui ! Ca marche !
>          </content>
>          <comment>
>               Cocoon Crash rulez !!
>          </comment>
>         </page>
>
> </xsp:page>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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