[xsl] Reference to variable cannot be resolved.

Subject: [xsl] Reference to variable cannot be resolved.
From: Imrran Wahid <devguy2003@xxxxxxxxx>
Date: Thu, 13 Feb 2003 10:19:01 -0800 (PST)
I get the following error when attempting to transform
an xml using IE 6.

"A reference to variable or parameter 'ItemAStruct'
cannot be resolved. The variable or parameter may not
be defined, or it may not be in scope."

Here's a snippet from my xsl:
<xsl:template match="/">
   <body bgcolor="#B0C4DE">
    <xsl:variable name="ItemAStruct"
    <xsl:apply-templates select="//Content/ItemAs" /> 

<xsl:template match="ItemAs">
  <xsl:variable name="ItemAs" select="."/>
  <!-- process each ItemA element from lookup.xml -->
  <xsl:for-each select="$ItemAStruct">
    <xsl:variable name="ItemName"
    <xsl:if test="count($ItemAs/*[name(.)=$ItemName])
&gt; 0">
      <th><xsl:value-of select="$ItemName"/></th>

Can anyone spot the culprit?

Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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

Current Thread