This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Selection Criteria in XSL using a variable - help please


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]