cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael French <mfre...@zycor.lgc.com>
Subject RE: One XML -> 2 XSLs
Date Wed, 22 Mar 2000 16:18:49 GMT

You should be able to do this in XSP:

  <xsp:pi name="xml-stylesheet">
    type="text/xsl"
    href="<xsp:expr>request.getParameter("xsl")</xsp:expr>"
  </xsp:pi>

But at the moment this is not supported.
See my other response RE: 2 xslt transformations

Mike


> -----Original Message-----
> From: Henning von Bargen [mailto:H.vonBargen@Triestram-Partner.de]
> Sent: Wednesday, March 22, 2000 9:59 AM
> To: cocoon-users@xml.apache.org
> Subject: AW: One XML -> 2 XSLs
> 
> 
> Automatic style sheet selection based on the user agent only
> is an unnecessary restriction in my opinion.
> It would be much better to implement the processor in such a way that
> Sven's proposal works. (in my opinion)
> What do you think?
> 
> > -----Ursprüngliche Nachricht-----
> > Von:	Curro, Joseph [SMTP:Joseph.Curro@time0.com]
> > Gesendet am:	Mittwoch, 22. März 2000 16:42
> > An:	'cocoon-users@xml.apache.org'
> > Betreff:	RE: One XML -> 2 XSLs
> > 
> > Associate the file with multiple stylesheets based on user agent in
> > processing instructions at the top of your XML document.  
> You can then
> pass
> > user-Agent as a query-string parameter.  So, for example, 
> if you go to the
> > samples that ship with Cocoon and enter the following:
> > 
> > 	
> >
> http://localhost/samples/wap/example-portfolio.xml?user-Agent=
Nokia-WAP-Tool
> kit
> 
> you can force the WAP version of the page to be returned.
> 
> Cheers.
> 
> Joe
> 
> -----Original Message-----
> From: Sven Kuenzler [mailto:svenk@tzi.de]
> Sent: Wednesday, March 22, 2000 10:04 AM
> To: cocoon-users@xml.apache.org
> Subject: One XML -> 2 XSLs
> 
> 
> Hello,
> 
> is it possible to attach a XSL file "loosely" to a XML document in order
> to create different views of that XML source? It would be nice if I
> could specify the XSL viva url, e.g. http:foo.com/todo.xml?xsl=...
> 
>    Sven.....
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

---------------------------------------------------------------------
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