Re: [xsl] RE: Search Engine

Subject: Re: [xsl] RE: Search Engine
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 17 Sep 2002 11:19:33 +0100
> 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


Current Thread