xsl-list
[Top] [All Lists]

RE: Searching a group of xml documents

2003-07-14 09:24:36


-----Original Message-----
From: bmcleere(_at_)eircom(_dot_)net [mailto:bmcleere(_at_)eircom(_dot_)net]
Sent: 14 July 2003 14:11
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Searching a group of xml documents


Hi all,

I need to search a repository/directory of xml documents. I 
want to search each xml document for the contents of a tag 
called <identifier>.  The contents of the tag would be as follows:

<identifier>Perl for Beginners</identifier>

When a match is found I want to display the contents of the 
<location> tag in the selected document to the screen which 
would be a URL e.g.
<location>http://www.sometag.asp</location>

I know how to search one document and retrieve the data from 
it but need help with more than one.


something like transquery will do for you
http://www.bayes.co.uk/xml/index.xml?/xml/utils/transquery/transquery.xml

but really architecturally, this is not the way to do it.

you know that you can bring in external xml files using the xpath document() 
command, so you could use one xslt file to search a variety of documents.

take a peek over at www.dpawson.co.uk 

gl, jim fuller

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



<Prev in Thread] Current Thread [Next in Thread>