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 : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Envoyé : lundi 21 janvier 2002 16:17 > À : [EMAIL PROTECTED] > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>