sto cercando di chiamare SelectNode
da XmlDocument
classe e guai a causa di questo errore:Namespace Manager o XsltContext necessari. Questa query ha un prefisso, una variabile o funzione definita dall'utente
Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.
Il mio codice:
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);
}
e 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>
Grazie Ria suo lavoro –
Grazie! Perfetto esempio per me, tutto funziona bene ora. – Andrew