Internally Sablotron supports just two schemes: arg and file.
URIs from the arg schemes point to buffers passed into sablotron calling 
Process etc., files are files :)

If you want to use another scheme, you have to register scheme handler. 
See documentaion (perldoc XML::Sablotron) and the test script (test.pl) 
for more details.

In the case you'll find it to complicated, feel free ask more specific 
questions.

Pavel

Paul Groves wrote:

> I'm not sure if this is a stupid question or not (I'm a bit of newbie to
> Sablotron), but is http supported as an (input) URI scheme for
> XML::Sablotron? If not, is it possible to reference local files using the
> Perl API? If so, what's the syntax? i.e. what do you use instead
> of: "arg:/data"?
> 
> Basically, I want to supply an XSL stylesheet created dynamically by Perl
> as the template argument (this seems to work) and an XML file (held on the
> same server) as the data argument. I've tried supplying a reference to the
> latter as an http URL, but I get the following error (in the Apache log)
> 
> Error [code:237]
>       unsupported URI scheme 'http'
> 
> and I'm not sure of the syntax for just referencing local files.
> 
> thnaks
> 
> Paul
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    Paul Groves                          Email: [EMAIL PROTECTED]
>    HCDT Project Officer                 Tel: +44 (0)1865 273 290
>    Humanities Computing Development Team
>    Humanities Computing Unit            
>    Oxford University Computing Services 
>    13 Banbury Road                         
>    Oxford, England. OX2 6NN         
>    
>    Web: http://www.oucs.ox.ac.uk/hcdt/staff.html#paul
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-- 
Pavel Hlavnicka
Ginger Alliance Ltd.
Prague; Czech Republic

Reply via email to