Passing parameters to XSLT Stylesheet via .NET

后端 未结 2 2029
不知归路
不知归路 2020-11-29 04:48

I\'m trying to pass a parameter to an XSLT stylesheet, but all i\'m getting is an empty xml document when the document is transformed using XSlCompiledTransform.

Thi

2条回答
  •  天命终不由人
    2020-11-29 05:07

    you probably need to define the param at the top of the XSLT:

    
    
     //rest of the XSLT
    
    

    See this link

    http://projects.ischool.washington.edu/tabrooks/545/2004Autumn/ContentManagement/PassingParameters.htm

    Not a great example but the best I could find with a quick google.

提交回复
热议问题