Re: String variable as stylesheet parameter

2007-01-18 Thread Harry Liljeström
std::string localProfile("'"); localProfile += profileName; localProfile += "'"; Note that there is an overload of setStylesheetParam() that accepts const char*, so you do not necessarily need to create XalanDOMString instances to set the params: std::string keyActive("active"); xalanTransfo

Re: String variable as stylesheet parameter

2007-01-18 Thread David Bertoni
Harry Liljeström wrote: Hi, I have following method: ... The "active" parameter never gets proper value! Well, I guess that depends on what you want the proper value to be. I'm wondering how the const XalanDOMString valActive(profileName.c_str()); should be initialized? If I change

String variable as stylesheet parameter

2007-01-18 Thread Harry Liljeström
Hi, I have following method: int Transformer::doTransform(const std::string& profileName) { XALAN_USING_STD(cerr) XALAN_USING_STD(endl) XALAN_USING_XALAN(XalanTransformer) XALAN_USING_XALAN(XalanDOMString) int result = -1; initialize(); // Try to open the output file.