-
August 27th, 2003, 12:53 PM
#1
About XLT & IXMLDOM ...
I have irresistable problem when I am trying to work with *.xlt file as XML document. May be somebody met some problem like that:
CComPtr<IXMLDOMDocument> tempXML;
IXMLDOMNode* iXMLRoot;
.... initial actions
IXMLDOMElement* INewParam;
hr = tempXML->createElement(L"xsl:param",&INewParam);
VARIANT vLang;
vLang.vt=VT_BSTR;
vLang.bstrVal = L"Lang";
hr = INewParam->setAttribute(L"name", vLang);
.... hr = OK!!!!
VARIANT vLangTest;
hr = INewParam->getAttribute(L"name", &vLang);
Problem is vLangTest is equal VT_BSTR ""!!!
It means that "setAttribute" doesn't put information about attribute "name".
XLT-document which I load is :
<?xml version="1.0" encoding="windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="windows-1251"/>
<xsl:param select="'English'" name="Lang"/>
<xsl:include href="Quest.xsl"/>
</xsl:stylesheet>
May be I can't work with xlt-documents like I work with XML-documents?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|