- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 17 Jun 2003 16:34:30 +0100
- To: Jeni Tennison <jeni@jenitennison.com>
- Cc: "Neil Bradley" <Neil.Bradley@rubus.com>, xmlschema-dev@w3.org
Jeni Tennison <jeni@jenitennison.com> writes:
> Hi Neil,
>
> > The issue has been discussed before, but without a satisfactory
> > answer.
> >
> > <doc xmlns="DOC_NAMESPACE">
> > <X:fragment xmlns:X="FRAGMENT_NAMESPACE">
> > <unprefixed>???</unprefixed>
> > </X:fragment>
> > </doc>
> >
> > How does an XML Schema processor attempt to validate the
> > <unprefixed> element, as:
> > 1) a possible local element to the <fragment> element?
> > 2) a possible global element belonging to the default namespace?
> > 3) both (but if so, in what order)?
>
> Since the <unprefixed> element does not have a prefix, it is in the
> default namespace. The default namespace that is in-scope at the
> <unprefixed> element is the DOC_NAMESPACE. Therefore the schema
> validator should validate the <unprefixed> element against the element
> declaration for the {DOC_NAMESPACE}unprefixed element, which will be a
> top-level (global) declaration.
Or it will be a local element declaration with qualified="true" either
directly or by default.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Tuesday, 17 June 2003 11:34:32 UTC