XSLT to generate html tags specified in XML

后端 未结 2 1277
栀梦
栀梦 2021-01-15 08:23

So this may be a strange request but I\'ll give it a go. I have an xml document



  Si         


        
2条回答
  •  清酒与你
    2021-01-15 08:41

    Use xsl:element to create an element node in the output document.

    
    
    
    

    Note: the curly braces in the name attribute may look strange, if you aren't familiar. It is an Attribute Value Template used to evaluate an XPATH expression inside of an attribute declaration.

    Applied to your stylesheet:

    
    
      
      
        
          
          
          
            
                
                    
                
            
          
        
      
    
    

提交回复
热议问题