[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to put a value-of select into a variable.

Subject: RE: How to put a value-of select into a variable.
From: John Dunn <johnd@xxxxxxxxxxxxx>
Date: Thu, 20 May 1999 17:29:54 -0600
select into
I was able to accomplish that with the following code:
  <xsl:template match="/Item">
      <xsl:eval>hextodec(attributes.getNamedItem( 'id' ).text)</xsl:eval>
    function hextodec(item)
      return parseInt( item, 16 );

when I have the following XML object
<Item id='0x23' />
I am pretty sure that <xsl:eval> is Microsoft Parser Specific, and probably
would choke any other parser. If anyone has a better method than this, let
me know - this was done using the time-honored 'guess and check' method of
John Dunn
Peak Audio, Inc.
http://www.peakaudio.com <http://www.peakaudio.com/> 

-----Original Message-----
From: Cote, Stephane [mailto:scote@xxxxxxxxxxxxxxxxxxx]
Sent: Thursday, May 20, 1999 3:50 PM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: How to put a value-of select into a variable.


   I was hopping someone knows how to put a   
  <xsl:value-of select="@name"/> into a variable so that I can pass 
the information to a JavaScript function defined in the XSL style sheet. 


                       ,,               Stephane DeCoeli Cote 
                  `    >                InterPro Expense System 
  |||                 ~              |||     w (925) 730-3717 
  |||          \  / || \  /         |||   
                 \/  ||  \/          
                     / \ 
                   ~  ~             

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.