Re: XQuery question
From: Bob Foster <bobkfoster_at_attbi.com>
Date: Tue, 13 May 2003 21:09:40 GMT
Message-ID: <oadwa.828283$3D1.473365_at_sccrnsc01>
Date: Tue, 13 May 2003 21:09:40 GMT
Message-ID: <oadwa.828283$3D1.473365_at_sccrnsc01>
"Costin Cozianu" <c_cozianu_at_hotmail.com> wrote in message
news:b9r0ob$lsfb5$1_at_ID-152540.news.dfncis.de...
> Give me the XML query that will give me the trnasitive closure for this
one:
>
> <node id=1 />
> <node id=2 parent_id=1 >
> <!-- ... and so on ... -->
(: transitive closure over $nodes of node with id 23 :)
transitive-closure($nodes, "id", "parent", $nodes[id=23])
The definition of transitive-closure is really none of your business.
Bob Received on Tue May 13 2003 - 23:09:40 CEST