Re: [xsl] Selection help

Subject: Re: [xsl] Selection help
From: "Syd Bauman s.bauman@xxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Nov 2015 22:38:01 -0000
> > Ack! Sorry, I changed the wrong equality operator. Change
> >   select="column[@name eq current()/constraint[@type='FOREIGN']/childKey/@name]"
> > to
> >   select="column[@name = current()/constraint[@type eq 'FOREIGN']/childKey/@name]"
> but 'FOREIGN' is a singleton and @type is a sequence of at most 1,
> so it makes no difference here does it?

Yup, the comparison of "@type" to "'FOREIGN'" can be done with either
'eq or '='. It is the comparison of "@name" to ".../childKey/@name"
that has to be '=', because (I'm presuming) there may be more than
one ../constraint/childKey that has an @name.

Current Thread