[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: logical and in selection expression possible?
Templates are applied for every root element in the node set returned by
the key(). If a key('key', 'rulekey1') returns more than one node, "the
template is being activated twice". With the union operator | you merge
two node sets, i.e. a node that is member of both node sets is only once
contained in the unioned node set.
But this seems more or less uninteresting in your case. I assume you want to do something completely different. You only want to "collect" the nodes and operate with them in one template? Then <xsl:call-template> could be the choice while passing the keys to the template via a parameter: <xsl:call-template name="foo"> <xsl:with-param name="bar" select="key('key', 'rulekey1') | key('key', rulekey2')"/> </xsl:call-template>
But a more concrete explanation of your problem can help. Regards, Joerg Alex Reuter wrote: Ok, I've run into a bit of a snag. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|