This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Simple search help
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 19 Dec 2001 15:15:55 -0000
- Subject: RE: [xsl] Simple search help
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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