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 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Name of an Attribute node., Jonathan Marsh | Thread | XSL and Adobe FDF, Jeff Hamilton |
RE: Conditional IE5 xsl, Jonathan Marsh | Date | RE: Name of an Attribute node., Jonathan Marsh |
Month |