Subject: Re: [xsl] Getting Unexpected Results from .//* = $set-of-elements From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 24 Feb 2018 00:39:11 -0000 |
> On 24 Feb 2018, at 00:18, G. Ken Holman g.ken.holman@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Ignore that second expression ... I wrote it too hastily and I'm now back at my desk to think about it. > > This would work I think: > > <xsl:value-of select="some $this in .//* satisfies > some $that in $elements-to-keep > satisfies $this is $that"/> > I think that's equivalent to saying that the intersection of the two sets is non empty: select="exists(.//* intersect $elements-to-keep)" Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting Unexpected Result, G. Ken Holman g.ken. | Thread | Re: [xsl] Getting Unexpected Result, Eliot Kimber ekimber |
Re: [xsl] Getting Unexpected Result, G. Ken Holman g.ken. | Date | Re: [xsl] Getting Unexpected Result, Eliot Kimber ekimber |
Month |