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]

Simple search help




Hi all, please only read on if you have patience...


In my quest to learn XSLT I am trying to implement my own multiple source
XML document search.  If I can pass in a filename and a name-value pair into
a stylesheet I will be very happy, then hopefully repeatedly pass in
different filenames to search through a whole bunch of XML files.

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]"

where they are all params.


I think a node-set is required, and $tagName is merely a string so it fails.
I cant seem to use param names in template calls.

If you have done something like this before, please let me know.  If you
remember my earlier thread, please dont associate the two - that was only a
theoretical question :)

cheers

andrew


 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]