build node-set variable from result tree fragment using

后端 未结 2 1834

Is it possible to create a node-set variable from an rtf using xsl:choose (for use in MSXML engine)?

I have the following construct:

<         


        
2条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 05:01

    Just for the record, I add the final solution below. It is slightly different from what Michael proposed, adding a copy of the RTF to a variable before applying the template.
    This is because otherwise MSXML still errors during xsl parsing (apparently it checks the apply-templates select value and concludes it is not correct when it is an RTF instead of a node-set. And, as Michael said, xsl:variable select attribute does just that: converting an RTF to a node-set.

    
            
            
        
        
            
            
        
    
    
    
    
                    tr.testid {
                    color:;
                    }
    
    

提交回复
热议问题