[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: Search Engine

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.