This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


<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@xs4all.nl>
Reply-To: xsl-list@lists.mulberrytech.com
To: xsl-list@lists.mulberrytech.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]