Re: [xsl] Reference to variable cannot be resolved.

Subject: Re: [xsl] Reference to variable cannot be resolved.
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 13 Feb 2003 14:13:39 -0500
Imrran,

Bind the lookup node set to its variable globally, i.e. outside any templates. Then it will be in scope for any template.

It also means that the expensive document('lookup.xml') call will happen once, not every time a given template is hit. Not all processors optimize this.

Cheers,
Wendell

At 01:19 PM 2/13/2003, you wrote:
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."


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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



Current Thread