Subject: [xsl] RE: Search Engine From: Bryan Tulloch <b.tulloch@xxxxxxxxxxxxx> Date: Tue, 17 Sep 2002 07:43:24 +0100 |
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[1]"/> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RE: sorting on data reference, Dimitre Novatchev | Thread | Re: [xsl] RE: Search Engine, David Carlisle |
[xsl] Re: sorting on data reference, Dimitre Novatchev | Date | Re: [xsl] fill empty fo:cell with w, Siarhei Baidun |
Month |