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]

RE: RE: Search Engine


I will return with more detail...

-----Original Message-----
From: David Carlisle [mailto:davidc@nag.co.uk]
Sent: Tuesday, September 17, 2002 11:20 AM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] RE: Search Engine



> Can this be done?

As a matter of principle anything can be done, it's just a question of
how convenient it is. Here though I don't think it is clear what "this"
is.

<elemA>
    <elemB>
        <elemC>House</elemC>
           <elemE>
            <elemF>Green</elemF>
          </elemE>
        <elemD>Door</elemD>
        <elemD>Door</elemD>
        etc...
   </elemB>

That's confusing as the indentation indicates a different hierarchy than
the XML structure. elemE is indented as a child of elemC but it is in
fact a sibling.

Originally you said you wanted to search for strings in elemC then
changed that to children of elemB.

Can the children have mixed content or multiple descendent text nodes?

  <elemB>
        <elemC>House <b>like</b> this</elemC>
        <foo>
           <elemC><or>House</or><or>this</or></elemC>
        </foo>
etc.

does your search string have to cross eleemnt boundaries, ie would a
search for "house like this" find the first child above?

once you've found something do you want to reurn
the first child of elemB including all its descendents?
the string value of teh first child of elemB
the first elemC descendent of elemB whatever it snetsting
....


as you see the problem appears to be rather underspecified....

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]