[tei-council] xsi:location
Conal Tuohy
conal.tuohy at vuw.ac.nz
Tue Oct 23 21:00:43 EDT 2007
On Wed, 2007-10-24 at 00:59 +0100, James Cummings wrote:
> Sebastian Rahtz wrote:
> > I have successfully added the xsi:schemaLocation thing to DTDs;
> > however, when I add it to the RELAX NG schema, and thence to
> > the XSD generated by trang, it is illegal:
> >
> > P5/Test/x.xsd:5:40: error: no-xsi: The {target namespace} of an
> > attribute declaration must not match
> > 'http://www.w3.org/2001/XMLSchema-instance'.
> >
> > So it is built into XSD processors that they recognize the
> > attribute, but it is illegal if you actually declare it. Words
> > fail me, really.
Yes it is a bit ridiculous.
> > So unless someone has a good idea how to get around this,
> > I can only do it for DTDs.
>
> If we can't do it for all, I'd say we shouldn't do it at all.
>
> > Note that the conversion from RNG to XSD is a black box
> > (trang) which we cannot easily touch.
I suppose we could preprocess the RNG XML as as a special-case stage in
the XSD-generating pipeline?
> Ask Mr Clark what he'd suggest? Why is he trapping that as an error?
Good point.
--
Conal Tuohy
New Zealand Electronic Text Centre
www.nzetc.org
More information about the tei-council
mailing list