Subject: Re: [xsl] compare two node sets From: "Wolfhart Totschnig wolfhart.totschnig@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 19 Jan 2020 21:21:17 -0000 |
On Sun, 2020-01-19 at 20:37 +0000, Wolfhart Totschnig wolfhart.totschnig@xxxxxxxxxxx wrote:Hello,Why?
I have an XSL/XPath problem to which I cannot find the solution. I have an xml file with data about films, in the following form (simplified):
[..] . By contrast, in the following example the test should return <false>:
<film> <title>M</title> <director> <first>Fritz</first> <last>Lang</last> </director> <author> <first>Thea von</first> <last>Harbou</last> </author> <author> <first>Fritz</first> <last>Lang</last> </author> </film>
As stated, <xsl:mode on-no-match="shallow-copy" />
<xsl:template match="/"> <xsl:apply-templates select="/films/film[ some $a in author satisfies ( ($a/first = director/first) and ($a/last = director/last) ) ]"/> </xsl:template>
Liam
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] compare two node sets, Liam R. E. Quin liam | Thread | Re: [xsl] compare two node sets, Martin Honnen martin |
Re: [xsl] compare two node sets, Liam R. E. Quin liam | Date | Re: [xsl] compare two node sets, Martin Honnen martin |
Month |