Subject: Re: [xsl] Selection help From: "Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 30 Nov 2015 22:30:42 -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]" > > (To oversimplify, the "eq" operator compares singletons; the "=" > operator compares sequences.) Hi Syd, Yeah the original template was me typing manually , sorry about that. The thing is, I cannot get around storing all the column names ($columns ) as I run the sequence through some string operations, I am not sure if I can refactor the usage without duplicating efforts through different facilities. Assuming I must build $columns, then iterate through it (I would have code that used the value explicitly and other code that ran the value through a xsl:choose, how can I select the first matching <constraint> element by searching through to a childKey whose @name was equivalent to the string value of the for-each's "."? Thanks a lot for the help, jlc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Selection help, Joseph L. Casale jca | Thread | Re: [xsl] Selection help, David Carlisle d.p.c |
Re: [xsl] Selection help, David Carlisle d.p.c | Date | Re: [xsl] Selection help, David Carlisle d.p.c |
Month |