cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Blake <p...@tcp.net.au>
Subject map:select - understanding
Date Tue, 16 Oct 2001 02:13:42 GMT
Hi again,

The following is supposed to set a parameter based on the browser. It 
doesn't do what I would like it to do :)

ie. when the transformer uses $css-doc its value is always null (or an 
empty string).

Can anyone see why the following wouldn't work?

Sitemap snippet:
      <map:select type="browser">
       <map:when test="netscape">
         <map:parameter name="css-doc" value="net.css"/>
       </map:when>
       <map:otherwise>
         <map:parameter name="css-doc" value="ie.css"/>
       </map:otherwise>
     </map:select>


XSL snippet (where the parameter is read and the error occurs)
<xsl:param name="css-doc"/>
<link rel="styleSheet" type="text/css"><xsl:attribute 
name="HREF"><xsl:value-of select="$css-doc"/></xsl:attribute></link>


Thanks for your help,

Phil

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