RE: Comparing content

Subject: RE: Comparing content
From: Peter-Paul Koch <ppk@xxxxxxxxxx>
Date: Mon, 13 Sep 1999 18:13:08 +0200
>Try something like:
><xsl:if test="DOCUMENT[TAG1 = TAG2]">
>	<!-- do something -->
></xsl:if>
>
>or
>
><xsl:if test="DOCUMENT[TAG1 = TAG3/TAG4]">
>	<!-- do something -->
></xsl:if>

This is exactly what I've tried for days now, it just won't work. As soon
as you put a string behind the '=' everything works fine, but I want a
dynamic comparision.

Cuurently I try in the <xsl:template select="role">:

<xsl:apply-templates select="/JDF/project/role[@id = ./supervisor]" />

where the basic XML is

<role id="pm">
	<blah...>
</role>

<task>
	<supervisor>pm</supervisor>
	<blah...>
</task>

Nothing happens...

Provisional version: http://www.netlinq.nl/interest/xml/interest.xml

ppk


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread