This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How can I add the <xsl:eval> within another tag?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]