[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: RE: How can I add the <xsl:eval> within another tag?
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Tue, 11 Apr 2000 14:49:17 -0700
xsl if xsl eval
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@xxxxxxxxx]
> Sent: Monday, April 10, 2000 4:32 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.