This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How can I add the <xsl:eval> within another tag?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: How can I add the <xsl:eval> within another tag?
- From: Jonathan Marsh <jmarsh at microsoft dot com>
- Date: Tue, 11 Apr 2000 14:49:17 -0700
- Reply-To: xsl-list at mulberrytech dot com
In MSXML3 you can do this:
<msxsl:script language="VBScript" implements-prefix="user">
function dummy()
dummy="Dallas"
end function
</msxsl:script>
<xsl:if test="@city = user:dummy()">
<xsl:value-of select="@state"/>
</xsl:if>
In the IE5 namepace this is a bit nastier:
<xsl:script language="VBScript">
function dummy()
dummy="Dallas"
end function
</xsl:script>
<xsl:if expr="this.selectSingleNode('@city').nodeValue = dummy()">
<xsl:value-of select="@state"/>
</xsl:if>
- Jonathan Marsh
Microsoft
> -----Original Message-----
> From: Moazzam Ahmed [mailto:moazzam@ahmed.net]
> Sent: Monday, April 10, 2000 4:32 PM
> To: xsl-list@mulberrytech.com
> Subject: How can I add the <xsl:eval> within another tag?
>
>
>
>
> hi
>
> I wanted to do this
>
> <xsl:script>
>
> ...
>
> function dummy()
> dummy="Dallas"
> end function
>
> </xsl:script>
>
> <xsl:if test="@city=[.'<xsl:eval>dummy()</xsl:eval>']">
> <xsl:value-of select="@state">
> </xsl:if>
>
> so i need to find the State of the city. Can I embed eval
> within if?
>
> Moazzam
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list