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: Simple search help



> 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


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