[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Error xsl:param may not be used here

Subject: Re: Error xsl:param may not be used here
From: "Ryan Beesley" <RBeesley@xxxxxxxxxxxx>
Date: Mon, 14 Oct 2002 09:37:24 -0500
ryan beesley
----- Original Message -----
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, October 14, 2002 4:26 AM
Subject: RE:  Error xsl:param may not be used here


>
> ><xsl:when test="not(string-length($graph/@type) = 0)">
>
> Here you are treating the variable $graph as a nodeset, when it is only
> a string.
>
>
>  <xsl:template name="drawGraph">
>   <xsl:variable name="graph" select="." />
>   <xsl:param name="type">
>    <xsl:choose>
>     <xsl:when test="not(string-length($graph/@type) = 0)">
>      <xsl:value-of select="$graph/@type" />
>     </xsl:when>
>     <xsl:otherwise>x-y</xsl:otherwise>
>    </xsl:choose>
>   </xsl:param>
>   <type>
>    <xsl:value-of select="$type"/>
>   </type>
>  </xsl:template>
>
> You can just drop $graph here and use @type on its own, as the current
> node will always be '.'

This is true, but I designed it to allow the graph element to be nested
inside some other elements.  I think your right about it being unessicary,
but this way I know exactly what structure I'm looking at... it is something
I'll take into consideration.

Ryan Beesley
Rbeesley@xxxxxxxxxxxx
Founder, Atum Innovations



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.