This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Selection Criteria in XSL using a variable - help please
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Selection Criteria in XSL using a variable - help please
- From: James J Nampalam <jjam at sonata-software dot com>
- Date: Fri, 23 Mar 2001 16:21:16 +0530
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@iclway.co.uk]
> Sent: Friday, March 23, 2001 1:10 PM
> To: xsl-list@lists.mulberrytech.com
> 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