Subject: Re: [xsl] logical and in selection expression possible? From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Sat, 20 Jul 2002 02:15:51 +0200 |
<xsl:template name="foo"> <!-- default value: empty node set --> <xsl:param name="bar" select="/.."/> ... </xsl:template>
Ok, I've run into a bit of a snag.
When I am passing the union of the nodesets to the applied template, it appears that the template is being activated twice. I was hoping to be able to access both nodesets at the same time.... unless they are the children of the same parent, is this impossible?
Thanks,
Alex
From: David Carlisle <davidc@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] logical and in selection expression possible? Date: Thu, 18 Jul 2002 17:17:29 +0100
<xsl:apply-templates select="key('key', rulekey1') and key('key', 'rulekey2') "/>
you want | there not and and is a boolean operator so this expression will evaluate to true or false. but a select expression needs a node set.
<xsl:template match="rule and rule2">
ditto.
David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] logical and in selection , Alex Reuter | Thread | RE: [xsl] logical and in selection , Michael Kay |
RE: [xsl] Can I read information fr, Zoe Peng | Date | [xsl] namespace required in transfo, midnite |
Month |