[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Simple search help

Subject: Simple search help
From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Dec 2001 12:59:02 -0000
searchval

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.