I hope this is the right list to ask user questions about Xalan. Or is
there anything like xalan-user already?
My problem:
Passing parameters to XalanC 1.1 does not work for me.
I have written a JNI adapter for XalanC to enable my Java application to
use it. Everything is working fine except the parameters. I have built a
wrapper class around the XalanC API that uses XSLTEngineImpl's
setStylesheetParam() method to set parameters:
void XmlTransformer::setParameter( const char* paramName,
const char* paramValue )
{
const XalanDOMString paramNameXDS( paramName );
const XalanDOMString paramValueXDS( paramValue );
processor->setStylesheetParam( paramNameXDS, paramValueXDS );
}
All support objects are initialized in the class constructor as shown in
the Getting Started Guide. The JNI stuff is definitely not the problem.
I have verified that. The strings get through into my setParameter()
code and the calls seem to work just fine but I can't see any parameter
values in the XML output.
I have used surrounding ticks (') as the documentation says they should
be used for strings but that didn't make it better.
A look at samples/UseStylesheetParam did not give me any clue what could
be wrong. I've done everything exactly as I found it there except that I
use pointers and store all support objects as member variables.
Any hints are welcome!
Thanks,
Christoph
--
Christoph Schoenfeld <[EMAIL PROTECTED]>
Software Developer
http://www.alcedis.de