xsl-list
[Top] [All Lists]

Re: Can I use variables in location paths?

2003-05-27 06:27:27

You should use:

<xsl:variable name="Scenario">BASECASE</xsl:variable>
<xsl:variable name="Date">20030408</xsl:variable>

<xsl:for-each select="PositionFactorLevels/Scenario[ @Name=$Scenario
]/Factor/Data[ @Date= $Date ]">
     <xsl:value-of select="../@Name" /> = <xsl:value-of select="." />
<br></br>
</xsl:for-each>

Success!

Greetings René
   {@   @}
        ^
      \_/

"You don't need eyes to see, you need vision!"

TJIP PCL
Steenovenweg 3
5708 HN  Helmond
tel: +31(0) 492 502 222
fax: +31(0) 492 502 299
e-mail: R(_dot_)deVries(_at_)tjip(_dot_)com
internet: www.tjip.com

***************************DISCLAIMER********************************
Deze e-mail is uitsluitend bestemd voor de geadresseerde(n).
Verstrekking aan en gebruik door anderen is niet toegestaan.
TJIP PCL sluit iedere aansprakelijkheid uit die voortvloeit uit
elektronische verzending.

This e-mail is intended exclusively for the addressee(s), and may
not be passed on to, or made available for use by any person
other than the addressee(s). TJIP PCL rules out any and every liability
resulting from any electronic transmission.


                                                                                
                                                        
                    "Chris Ward"                                                
                                                        
                    <cward(_at_)horizon-asset(_dot_)co(_dot_)uk>        To:     
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>                              
          
                    Sent by:                           cc:                      
                                                        
                    owner-xsl-list(_at_)lists(_dot_)mulber        Subject:     
[xsl] Can I use variables in location paths?                        
                    rytech.com                                                  
                                                        
                                                                                
                                                        
                                                                                
                                                        
                    27-05-2003 15:09                                            
                                                        
                    Please respond to xsl-list                                  
                                                        
                                                                                
                                                        
                                                                                
                                                        




                     <xsl:variable name="Scenario">BASECASE</xsl:variable>
                     <xsl:variable name="Date">20030408</xsl:variable>

                     <xsl:for-each select="PositionFactorLevels/Scenario[
@Name='${Scenario}' ]/Factor/Data[ @Date= '${Date}' ]">
                                          <xsl:value-of select="../@Name"
/> = <xsl:value-of select="." /> <br></br>
                     </xsl:for-each>





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



<Prev in Thread] Current Thread [Next in Thread>