【发布时间】:2011-02-14 18:53:32
【问题描述】:
有没有办法使用某种“控件”将 xsl 代码块添加到 xsl 文件中。
例子:
我经常打这三行代码:
<xsl:comment> some custom attributes and values here </xsl:comment>
<xsl:comment>#include virtual="[filepath]" </xsl:comment>
<xsl:comment> end custom tags </xsl:comment>
我可以把这个块变成某种类型的控制,我可以通过属性访问包含的属性和文件路径吗?
【问题讨论】:
-
你想输出不同的
[filepath]吗?您从哪里获得这些信息、输入源、参数? -
你想在哪里使用这个“控件”?你会如何使用它?
-
@Alejandro 文件路径将是一个 palin html 文件或 .inc,通常用于全局导航。我使用了 Visual Studio sn-ps,这不是我想要的,但可以节省时间和击键。
标签: c# visual-studio-2010 controls xslt-tools