Subject: [xsl] Selection Criteria in XSL using a variable - help please From: James J Nampalam <jjam@xxxxxxxxxxxxxxxxxxx> Date: Fri, 23 Mar 2001 16:21:16 +0530 |
Yeah, but is there any way where I can access a variable through javaScript in XSL. What I want is to select some elements from the XML file based on some criteria. The criteria is given at runtime. I need to capture this value and select the elements in XML file. Is it possible to use JS variables in XSL??? Any help on this regard.... James > -----Original Message----- > From: Michael Kay [SMTP:mhkay@xxxxxxxxxxxx] > Sent: Friday, March 23, 2001 1:10 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] Selection Criteria in XSL > > > > > I tried using xsl:variable and xsl:script like... > > > > <xsl:variable name="test"> > > <xsl:eval>test1()</xsl:eval> > > </xsl:variable> > > <xsl:script><![CDATA[function test1(){return > > document.all.fieldname.value}]]></xsl:script> > > > xsl:variable is available only in XSLT, xsl:eval is available only in > Microsoft's WD-xsl. These are different languages and can't be mixed. See > www.netcrucible.com. > > Mike Kay > Software AG > > > 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: [xsl] XSL variable declaration, cutlass | Thread | [xsl] Is it possible to select only, Denis Kranjcec |
Re: [xsl] Is this a rule of using x, David Carlisle | Date | [xsl] Is it possible to select only, Denis Kranjcec |
Month |