c# - What is the usage of XsltArgumentList.AddParam's namespaceUri argument? -


xsltargumentlist.addparam demonstrated this:

xslarg = new xsltargumentlist(); xslarg.addparam("param-name", string.empty, "param-value"); 

does have example of xsl relevant specify other empty string namespaceuri (the second argument)?

the namespaceuri argument described in documentation: "the namespace uri associate parameter. use default namespace, specify empty string."

that parameter namespacing own parameters. example, might define xslt this:

<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns="urn:my-output-namespace"                 xmlns:xsl="http://www.w3.org/1999/xsl/transform"                 xmlns:input="urn:my-input-variables"                 version="1.0" >      <xsl:param name="input:myvariable" />      ...  </xsl:stylesheet> 

in code, in order pass parameter myvariable, have add namespace uri xsltargumentlist.addparam call.

var args = new xsltargumentlist(); args.addparam("myvariable", "urn:my-input-variables", "foo"); 

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -