This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XalanTransformer help needed ASAP
- From: AXRAMAKR at UP dot COM
- To: "XSL-List (xsl-list at lists dot mulberrytech dot com)" <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 23 May 2002 11:03:07 -0500
- Subject: [xsl] XalanTransformer help needed ASAP
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi all,
I am using C++ XalanTransformer with a DOM Input and this is the code
segment.
long CEOMsgEvntCurrCycle::processXSLOutput(const DOM_Document doc)
{
//Apply style sheet and put it in a flat file
// Set up a XercesParserLiaison and use it to wrap the DOM_Document
// in a XalanDocument.
// Initialise
XMLPlatformUtils::Initialize();
XalanTransformer::initialize();
XalanTransformer theXalanTransformer;
XercesDOMSupport theDOMSupport;
XercesParserLiaison theParserLiaison(theDOMSupport);
XalanDocument* theDoc = theParserLiaison.createDocument(doc);
// Use the XalanDocument to create an XSLTInputSource object, which
// you can then use in a transformation.
XSLTInputSource theInputSource(theDoc);
......
the rest of the code
}
I am getting this error. Any thoughts would be appreciated. I looked at the
XSLTINput and it has a constructor that takes in a XalanNode* . Why is it
an error?
Error 226: "CEOMsgEvntCurrCycle.C", line 393 # No appropriate function
found for call of
'XSLTInputSource::XSLTInputSource'. Last viable candidate was
"XSLTInputSource::XSLTInputSource(const unsigned short *)"
["/upapps/ceo/xml-xalan/c/src/XSLT/XSLTInputSource.hpp", line 110].
Argument of type
'XalanDocument *' could not be converted to 'const unsigned short *'.
XSLTInputSource theInputSource(theDoc);
^^^^^^^^^^^^^^
Thanks,
Akila Ramakrishnan
(314) 768 5809
axramakr@up.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list