Pascal,

I'm sorry, bud I didn't read your first message carefully enough.

The second one explains all. Process function or RunProcessor method 
can't be called as in your first message. Of course the message reported 
should be a bit more friendly.

Structure of API is as follows:

First three parameters are URIs of processed and returned data. Fifth 
parameter is optional and is used only if you want to use arg:/ scheme 
in 1. 2. parameter. This array paramter allows to pass "verbose" data 
into processor. It makes no sence to pass another URI as the value of 
some "arg" argument. If you want to use files, use file: scheme in 1. or 
2. paramterer. The first example from replied message is correct, the 
second one makes is nonsens.

To your second question. Could you tell me, what exactly do you mean. 
I've found just several paragraphs in INSTALL and README files saying, 
that you need sablotron and expat installed on your system.

P

pascal barbedor wrote:

> Having templates in l:/xsl/corresp_secteur.xls and data in
> l:/cgi/resultat.xml  (which are well formed)
> 
> i tried this :
> 
> use XML::Sablotron qw(:all) ;
> $sab=new XML::Sablotron();
> 
> $sab->RunProcessor(
> "file://l:/xsl/corresp_secteur.xsl",
> "file://l:/cgi/resultat.xml,
> "arg:/result",
> undef,undef);
> $c=$sab->GetResultArg("result");
> print $c ;
> 
> which prints all perfectly correct
> 
> arg:/ i suppose applies when data are in variables in the perl program (not
> very clear from the doc).
> 
> 
> With Run Processor I had another pop up window when tried this (which is bad
> syntax of course but the doc is difficult) :
> 
> 
> $sab->RunProcessor(
> "arg:/template","arg:/data","arg:/result",
> undef,
> ["template","file://l:/xsl/corresp_secteur.xsl",
> "data","file://l:/cgi/resultat.xml",
> result],
> );
> 
> the pop up says memory can't be read.
> 
> 
> Another question :
> the doc says you do not need to dowload expat or any other package to run
> xml::sablotron package (just sablot installed) but then makefile.pl looks
> for expat.lib  when installing. so I don't understand if it needs or not
> expat installed.
> 
> 
> pascal
> 
> 
> 
> 
> 
> 
> 
> ----- Original Message -----
> From: "Pavel Hlavnicka" <[EMAIL PROTECTED]>
> To: "Sablotron Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, May 11, 2001 5:27 PM
> Subject: Re: [Sab] problem xml::sablotron
> 
> 
> 
>>The Process function is user rarely. There may be a new bug introduced.
>>Please, use the object approach as described in documentation and let me
>>know the result.
>>
>>Pavel
>>
>>pascal barbedor wrote:
>>
>>
>>>Hi
>>>
>>>
>>>
>>>I've just installed xml::sablotron 0.52 under winnt 4
>>>
>>>
>>>
>>>nmake test said all tests succesfull in installation process makefile.pl
>>>/ nmake / nmake test / nmake install
>>>
>>>
>>>
>>>
>>>
>>>*but then using it *
>>>
>>>(example below)
>>>
>>>
>>>
>>>use XML::Sablotron qw(:all);
>>>
>>>
>>>
>>>Process(
>>>"arg:/template","arg:/data","arg:/result",
>>>undef,
>>>["template","file://l:/xsl/corresp_secteur.xsl",
>>>"data","file://l:/cgi/r�sultat.xml"],
>>>$result) ;
>>>
>>>
>>>
>>>I have a pop up window (nothing less) that says  (perl.exe) :
>>>
>>>instruction at 0x01c61106 is using address 0x00000021. memory can't be
>>>written.
>>>
>>>
>>>
>>>and then perl says "process ended quit code -1073741819"
>>>
>>>
>>>
>>>is this related with expat ?
>>>
>>>
>>>
>>>*because about expat 1.95.1:*
>>>
>>>
>>>
>>>prebuild release contains an expat.dll and expat.h but no expat.lib
>>>which is required to install some perl packages like xml::sablotron or
>>>xml::parser 2.30
>>>
>>>
>>>
>>>source package does not build thorougly under nt4 with vc6.
>>>
>>>
>>>
>>>I had to (blindly) apply two patches found on sourceforge bug faq
>>>(which i can cite if necessary)
>>>
>>>
>>>
>>>then build produces the expat.dll and expat.lib seemingly responsible
>>>for pop up messages...
>>>
>>>(i had other pop up like entry point XLM_GetspecifiedAttributeCount not
>>>found in expat.dll)
>>>
>>>
>>>
>>>
>>>
>>>Pascal
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>--
>>Pavel Hlavnicka
>>Ginger Alliance
>>www.gingerall.com
>>
>>


-- 
Pavel Hlavnicka
Ginger Alliance
www.gingerall.com

Reply via email to