Re: [xsl] <xsl:for-each select="$myvar">

Subject: Re: [xsl] <xsl:for-each select="$myvar">
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Wed, 19 Jun 2002 14:53:52 +0000
<xsl:param name="myvar"/>

If you had declared a param , then the condition changes to
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="/">
<xsl:param name="myvar"/>
<!--This is the place of change "manufacturer = $myvar" below -->
<xsl:for-each select="/collection/item[manufacturer = $myvar]"> <xsl:value-of select="model"/>
<br></br>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>



From: "William S." <wstan@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] <xsl:for-each select="$myvar">
Date: Wed, 19 Jun 2002 16:43:30 +0200

<xsl:param name="myvar"/>

Am I making an obvious blunder?

On Wed, Jun 19, 2002 at 03:26:46PM +0100, David Carlisle wrote:
>
> > The value of the variable is "item"
>
> read literally I'd take that to mean the variable was the string
> item. I dont think you meant that, but that would account for the error
> message you quoted, so perhaps you did.
>
> How did you declare the variable?
>
> You showed the input doc, but that's not much help as teh error appears
> to be in the stylesheet.
>
>

--
Bill
Amsterdam, NL

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




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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



Current Thread