Subject: Re: [xsl] key() now has 3 arguments ... right From: Michael Kay <mike@xxxxxxxxxxxx> Date: Wed, 25 Apr 2012 14:22:59 +0100 |
You can use the three argument form there, but that is not semantically equivalent. It matches _every_ element if the key returns a node, and matches no element otherwise. To match nodes if they are returned by the key you need an expression using ancestor-or-self as I gave before or perhaps more directly:I would tend to write this as:
<xsl:template match="*[some $k in key('maindoc','Sal',$doc2) satisfies (. is $k)]"
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] key() now has 3 arguments, David Carlisle | Thread | Re: [xsl] key() now has 3 arguments, ihe onwuka |
Re: [xsl] key() now has 3 arguments, David Carlisle | Date | Re: [xsl] key() now has 3 arguments, ihe onwuka |
Month |