[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?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|