about vc++ and xml and xsl problem,please come in
my friends,
i use vc++ to develop xml and xsl program,use xsl to transform xml ,then get the transformed result.if you know xsl,you can know that xsl can set parameter into it.porgram look like this:
var xslt = new ActiveXObject("Msxml2.XSLTemplate.4.0");
var xslDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument.4.0");
var xslProc;
xslDoc.async = false;
xslDoc.load("sample.xsl");
xslt.stylesheet = xslDoc;
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");
xmlDoc.async = false;
xmlDoc.load("books.xml");
xslProc = xslt.createProcessor();
xslProc.input = xmlDoc;
xslProc.addParameter("param1", "Hello");
xslProc.transform();
alert(xslProc.output);
this is script .you can note "xslProc.addParameter("param1", "Hello");",it can add parameter to xsl.when i use vc++ write this code ,it success.that is ,i can add parameter to it.but parameter only string ,ms help like this:
Microsoft XML Core Services (MSXML) 4.0 - DOM Reference
[C/C++]
C/C++ Syntax
HRESULT addParameter (BSTR baseName, VARIANT parameter, BSTR
namespaceURI);
Parameters
baseName [in]
The name that will be used inside the style sheet to identify the parameter context.
parameter [in]
A number, Boolean, string, node list, or node. Passing in a single node will produce a node list that contains one node (shortcut). To remove a parameter previously added to the processor, you can pass a value of VT_EMPTY, VT_NULL, or a NULL IDispatch or IUnknown instead. This acts as a signal to the processor to remove any previously added parameter of the same name.
namespaceURI [in, optional]
An optional namespace.
you can note :it can add A number, Boolean, string, node list, or node,but i do not know how to add nodelist to it.i need you help,thanks a lot.if you know ,let me know too. my email:[email protected] again.