小编riz*_*ari的帖子

需要命名空间管理器或XsltContext.此查询具有前缀,变量或用户定义的函数

由于这个错误,我试图SelectNodeXmlDocument课堂打电话和麻烦:

需要命名空间管理器或XsltContext.此查询具有前缀,变量或用户定义的函数.

我的代码:

   public void Add(ref XmlDocument xmlFormat, String strName)
   {
        XmlDocument dom;
        XSLTemplate xsl = null;
        String strPath = "";
        XmlNodeList nl;
        XmlAttribute na;
        int n;

        nl = (XmlNodeList)xmlFormat.SelectNodes("//xsl:import/@href",nsm);
    }
Run Code Online (Sandbox Code Playgroud)

和xsl:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:import href="stylesheets/r_adresetiket.xsl" />
    <xsl:template match="/">
        <xsl:call-template name="retouradres">
            <xsl:with-param name="_retouradres" select="data/adresetiket/_retouradres" />
            <xsl:with-param name="minofdir" select="data/adresetiket/afzendgegevens/afzendgegevens" />
            <xsl:with-param name="checked" select="data/adresetiket/LB" />
        </xsl:call-template>
    </xsl:template>
</xsl:stylesheet>
Run Code Online (Sandbox Code Playgroud)

c# xml xmldocument xml-namespaces

48
推荐指数
3
解决办法
4万
查看次数

标签 统计

c# ×1

xml ×1

xml-namespaces ×1

xmldocument ×1