[Xml-compile] schema namespace `<none>' not (yet) supported
Anthony Wood
bessington at gmail.com
Tue Aug 28 04:42:39 GMT 2012
Sorry Mark, I'm not really following your gist. The doco for
XML::Compile::Schema::addSchemas() suggest to use importDefinitions(), so i
now tried :
my $xsd =3D '/cygdrive/h/tony.wood/xml/xsd/mets.xsd';
my $schema =3D XML::Compile::Cache->new($xsd);
$schema->addSchemaDirs('/cygdrive/h/tony.wood/xml/xsd');
$schema->importDefinitions('xlink.xsd',
target_namespace =3D> "http://www.w3.org/1999/xl=
ink"
);
but is still get "error: schema namespace `<none>' not (yet) supported"
Presumably i need to specify a different XMLDATA parameter as arg 1 to
importDefinitions() ?
Sincere thanks for your help so far !
Tony Wood
On Mon, Aug 27, 2012 at 5:57 PM, Mark Overmeer <mark at overmeer.net> wrote:
> * Anthony Wood (bessington at gmail.com) [120827 03:32]:
> > $schema->addSchemaDirs('/cygdrive/h/tony.wood/xml/xsd');
> not needed.
>
> > $schema->importDefinitions('xlink.xsd');
> > schema namespace `<none>' not (yet) supported
> >
> > sure enough, xlink.xsd doesn't have an xmlsn tag (is that the right
> > terminlology ?) so presumably no namespaces defined. Is there anything i
> > can do to work around this issue ?
>
> Correct. The error message is a bit fague: it complains that the
> "schema" itself is not in a name-space and therefore does not know
> how to interpret is.
>
> When I download the file from the indicated location, the default
> xmlns seems to be repaired. It now does work.
>
> Some of the schema parameters can be overruled. I need this every once
> in a while, because many schemas are broken in some way or another.
> See XML::Compile::Schema::addSchemas() However, a missing top-level
> namespace is really bad.
> --
> Regards,
>
> MarkOv
>
> ------------------------------------------------------------------------
> Mark Overmeer MSc MARKOV Solutions
> Mark at Overmeer.net solutions at overmeer.net
> http://Mark.Overmeer.net http://solutions.overmeer.net
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20120828/41=
3da590/attachment-0001.htm
More information about the Xml-compile
mailing list