RE: [xsl] Simple search help

Subject: RE: [xsl] Simple search help
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 19 Dec 2001 15:15:55 -0000
> This works:
>
> select="document($file)//aTag[.=$searchVal]"
>
> where aTag is a real tag, and the others params
>
> and this doesnt
>
> select="document($file)$tagName[.=$searchVal]"

You need select="document($file)//*[name()=$tagName][.=$searchVal]"

You can only use variables in places where you can write values, not in
places where you write names.

Be prepared for this query to take some time!

Mike Kay


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


Current Thread