Passing a URL variable into xsl

前端 未结 2 1096
春和景丽
春和景丽 2021-01-19 01:25

Is it possible to pass a URL variable into xsl.

EG. http:www.somedomain.com/index.aspx?myVar=test&myVar2=anotherTest

I\'d like to be able to use t

2条回答
  •  遥遥无期
    2021-01-19 01:52

    Here is a more generic transformation that obtains any number of query string parameters from a given URL:

    
     
     
    
     
    
     
         
     
    
     
      
    
          
    
          
    
           
             
           
    
        
    
        
           
             
           
        
     
    
    

    when this transformation is applied on any XML document (not used), the wanted, correct result is produced:

    test
    anotherTest
    yetAnotherTest
    

提交回复
热议问题