XSL文件被应用两次 [英] XSL file being applied twice

查看:65
本文介绍了XSL文件被应用两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我已经创建了一个扩展对象,它允许我调用一个方法来做一些额外的逻辑,我已经在这个扩展对象方法的顶部调用了一个我的样式表(< xsl:template match =" /">语句下的第一行)。

但是,如果我在扩展对象调用的C#代码中放置一个断点方法,断点被击中两次,这让我觉得XSL文件由于某种原因被处理了两次。当我有声明时,这是否可行...


<前lang = x-xml>< xsl:模板匹配=" /">


另外,我检查了C#页面,我只将XSL绑定到XML控件一次...


 //绑定数据以生成输出。 
XmlOutput.DataBind();


我试过调试这么多种方法,但仍然无法看到问题所在:-s


试试

解决方案

嘿,请你在这里复制xslt文件内容吗?


Hi all,

I have created an extension object which allows me to call into a method to do some additional logic, and I have placed a single call to this extension object method at the top of my stylesheet (first line under the <xsl:template match="/"> statement).

However, if I put a break point in my C# code where the Extension object invokes the method, the break point gets hit twice, which makes me think that the XSL file is being processed twice for some reason. Is this possible when I have the statement...

<xsl:template match="/">

Also, I have checked C# page and I only bind the XSL to the XML control once...

// Bind the data to generate output.
XmlOutput.DataBind();

i've tried debugging this numerous ways, but still cant see where the problem may be :-s


Tryst

解决方案

hey,would you please copy you xslt file content here?


这篇关于XSL文件被应用两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆