Subject: RE: general purpose filter stylesheet
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 18 Mar 2002 12:21:06 -0000
|
> you wrote:
> [I don't know what the intended semantics of your expression
> are. Perhaps
> it's equivalent to the XPath expression
>
> ((//author='Date' or //title='Database Systems') and //number='1')
>
> in which case doing the translation into XPath might not be
> too difficult.]
>
> That right that thios would not be to hard, BUT what would
> XSLT return.
> I could only specify one node type in my match attribute: a
> parent of number
> which is issue.
>
> But then I would get the whole issue subtree with ALL
> articles, EVEN those
> whose author is NOT 'Date' and the title is NOT 'Database
> Systems'. But I
> want my query ONLY to return this part of my XML that make
> sense to the query.
Precisely. Defining the syntax and semantics of a new query language is not
easy, so I suggest you use the one we've already got, namely XPath.
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|