Paul,

I think Sablotron does expand external entities since 0.42 or so. This
error looks as though there were a misplaced <?xml...?> PI inside one of
the external files. There probably isn't since you say Saxon processes
it fine, but still, could you send the whole set? Just to see what
exactly goes wrong.

Your master document also contains some parameter entities. I believe
one can't process these using expat 1.1 (which is what we used until
recently) but this may have changed in the new shared library version
(1.95 I guess). If so, some minor modifications to Sablotron's code
might still be necessary.

Tom Kaiser

Paul Groves wrote:

> ... But I'm now having other problems, I'm getting the error:
> 
> Error [code:2] [URI:arg:/template] [line:1]
>   XML parser error 17: xml processing instruction not at start of external
> entity
> 
> Is there a way of looking up what the error codes mean?
> 
> Does Sablotron expand  external entities, e.g. if I have a
> "master" xml document which acts as a container for external xml files,
> will it find the contents of file1.xml etc.? e.g.
> 
> <?xml version="1.0"?>
> <!DOCTYPE all SYSTEM "all.dtd"
> [
> <!ENTITY % ISOlat1 PUBLIC "ISO 8879-1986//ENTITIES Added Latin1//EN" "ISOlat1.e
> nt">
> %ISOlat1;
> <!ENTITY % Modlang SYSTEM "Modlang.ent">
> %Modlang;
> <!ENTITY file1 SYSTEM "file1.xml">
> <!ENTITY file2 SYSTEM "file2.xml">
> ]>
> <all>
> &file1;
> &file2;
> </all>
> 
> cheers
> 
> Paul
> 
> >
> > 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
> >
> >
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    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
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply via email to