You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by TIMO HARMO <ha...@valt.helsinki.fi> on 2002/08/13 16:49:17 UTC
passing parameters /delphi
I have problems passing parameters to xalan (1.3) using the dll.
>From command-line
xalan -p x 'xxx' in.xml style.xsl
works ok but when I try - using Delphi
XalanInitialize;
xh := CreateXalanTransformer;
XalanSetStylesheetParam(pname,pvali,xh);
retcode:=XalanTransformTodata(fin, fxsl, outputpc, xh);
the parameter does not go to the stylesheet (otherwise the call works).
I have declared
procedure XalanSetStylesheetParam(const key,expression: PChar;
theXalanHandle: XalanHandle); cdecl;
external 'c:\xalan\XalanTransformer.dll';
Can someone see something obvious mistakes here? I can make a
complete minimal example someone is interested and understands Delphi.
-Timo