cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@simba.pwr.ch>
Subject Re: xsp:pi to dynamically create a style sheet name
Date Sun, 04 Jun 2000 12:06:46 GMT
On Sun, Jun 04, 2000 at 01:10:16PM +0200, ernst.nusterer@eunet.at wrote:
> 
> My source code looks like this:
> 
> 
> !***********    page.xml       ******************
> 
> 
> <?xml version="1.0"?>
> 
> <!-- Author: Stefano Mazzocchi "stefano@apache.org" -->
> <!-- Version: $Id: page.xml,v 1.5 2000/01/08 07:19:41 ricardo Exp $ -->
> 
> <?cocoon-process type="xsp"?>
> <?cocoon-process type="xslt"?>
> 
> <!-- **** THIS DOES NOT WOK **** -->
> 
> <xsp:pi name="xml-stylesheet">
> 
>       href="<xsp:expr>request.getQueryString()</xsp:expr>"
>       type="text/xsl"
> 
> </xsp:pi>

I thought it should be:

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

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch


Mime
View raw message