?
=?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=
I need to get nodes in a xml file that match one out of two
parameters...but how can I create a or statemement with <xsl:if>?
E.G
---xml--
...
<movie>
<title>T2</title>
</movie>
<movie>
<title>Bone Collector</title>
</movie>
...
---xslt---
<xslarameter name="myPar1"/>
<xslarameter name="myPar2"/>
.....
<xsl:for-each select="topnode/movie">
<xsl:if test="(title = $myPar1) OR (title = $myPar2)"> <---------
--do something
</xsl:if>
</xsl:for-each>
------------------------------
I want something like the above, but it has to check ALL of the
parameters for every title in the xml file.
Any ideas?
Jørn T
parameters...but how can I create a or statemement with <xsl:if>?
E.G
---xml--
...
<movie>
<title>T2</title>
</movie>
<movie>
<title>Bone Collector</title>
</movie>
...
---xslt---
<xslarameter name="myPar1"/>
<xslarameter name="myPar2"/>
.....
<xsl:for-each select="topnode/movie">
<xsl:if test="(title = $myPar1) OR (title = $myPar2)"> <---------
--do something
</xsl:if>
</xsl:for-each>
------------------------------
I want something like the above, but it has to check ALL of the
parameters for every title in the xml file.
Any ideas?
Jørn T