Re: [xsl] resolving query expressions

Subject: Re: [xsl] resolving query expressions
From: Robert Sösemann <robert.soesemann@xxxxxx>
Date: Tue, 26 Feb 2002 18:48:36 +0100
You are right. But the problem is that the attributes/elements like author
don't have to be in the same hierarchy level of an XML doc.
Maybe on part (=term) of my query is located in a totally other place anmd
hierachy level of the tree. How could I then get a sensible
result extract of the original XML DB.
Allways keep in mind the person who submits the query does not know how the
query is mapped. This will be handled by an extra XML-form meta description.

description + user query (() AND () OR ( () OR ())) => XSLT
stylesheet(source database in XML)  => result XML parts of DB

You would be right if I just wanted to check wether a doc contains words
like normal search engines.
But this should fit all kinds of BIG XML DBs.

So I still need answers ;-)
Robert


----- Original Message -----
From: "David Carlisle" <davidc@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, February 26, 2002 4:39 PM
Subject: Re: [xsl] resolving query expressions


>
>    <!--  resolve OR terms by seperate xsl:copy-of  //-->
>
> why not just use the xpath and and or?
>
> both of your examples
>
>
> ((author='Knuth' OR title='Algorithms') AND releaseDate >= 1999) or
another
> one
> ((title='Windows XP' AND doctype='manual') OR (doctype='manpage' ANDNOT
> title='Linux' ))
>
>
>
> would be legal XPath as written if you use and instead of AND and or
> instead of OR and  and  not(   ) instead of ANDNOT.
>
> 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
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread