RE: Search Engine
David, Thanks for your reply. My question, however, was not very well phrased! What I need is something to check the text contents of all of the child nodes of <elemB>,however many there may be, for whole or partial occurrences of the searchstring. So, in the structure below, I might want to search for all occurrences of 'Door' in elemC, elemD and any other child nodes of elemB (and in any child nodes of elemC etc.). I also want the search to ignore case sensitivity, and to look for partial as well as exact matches of the searchstring eg 'hou' will pick up 'House'. <elemA> <elemB> <elemC>House</elemC> <elemD>Door</elemD> etc... </elemB> <elemB> <elemC>Flat</elemC> <elemD>Door</elemD> etc... </elemB> etc... </elemA> I may not know in advance what the child nodes are called or how numerous they are, and they may contain multiple levels of nesting. Is there a straightforward method of processing the various child nodes of each <elemB>? Bryan -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Monday, September 16, 2002 4:43 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: > I want to be able to search all of > the <elemC> nodes for the occurrence of a searchstring do you mean the text of elemC contains the string or equals it (I'll assume the latter below) <xsl:copy-of select="/elemA/elemB[elemC=$string]/elemC"/> David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list Solicitec has been nominated for 4 awards in the 2002 LOTIES (In Brief magazine's legal office technology innovation awards) for Best legal office technology supplier, Best legal office technology newcomer (for Visualfiles), Best fee-earner support system (for SolCase), Best legal office automation system (for SolCase). Your vote counts! So please, <a href="http://www.inbrief.co.uk/nomination.asp">click here</a> and vote for us. Email Disclaimer This Mail has been scanned for Viruses using the most up to date McAfee Virus Definitions. The information in this email is confidential and is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any use, disclosure, copying, distribution or retention of any part of it is prohibited and may be unlawful. If you have received this communication in error please notify us by email or by telephone 0113 2262000 and then delete the email and any copies of it. The contents of this message may contain personal views that are not the views of Solicitec, unless specifically stated. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format