xsi:schemaLocation is ignored

Bug #867349 reported by Daniel Turcanu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Cezar Andrei

Bug Description

Some xml files contain the attribute xsi:schemaLocation specifying the location of the schemas used in the xml.
But this attribute is ignored at validate{ } and I have to explicitly specify the import schema namespace.
See the xml examples in Geo stuff schemas.

Revision history for this message
Cezar Andrei (cezar-andrei) wrote :

This is per spec, the in-scope schema definitions contain predifined + imported schema definitions.

#

[Definition: In-scope schema definitions. This is a generic term for all the element declarations, attribute declarations, and schema type definitions that are in scope during processing of an expression.] It includes the following three parts:

    *

      [Definition: In-scope schema types. Each schema type definition is identified either by an expanded QName (for a named type) or by an implementation-dependent type identifier (for an anonymous type). The in-scope schema types include the predefined schema types described in 2.5.1 Predefined Schema Types. If the Schema Import Feature is supported, in-scope schema types also include all type definitions found in imported schemas. ]
    *

      [Definition: In-scope element declarations. Each element declaration is identified either by an expanded QName (for a top-level element declaration) or by an implementation-dependent element identifier (for a local element declaration). If the Schema Import Feature is supported, in-scope element declarations include all element declarations found in imported schemas. ] An element declaration includes information about the element's substitution group affiliation.

      [Definition: Substitution groups are defined in [XML Schema] Part 1, Section 2.2.2.2. Informally, the substitution group headed by a given element (called the head element) consists of the set of elements that can be substituted for the head element without affecting the outcome of schema validation.]
    *

      [Definition: In-scope attribute declarations. Each attribute declaration is identified either by an expanded QName (for a top-level attribute declaration) or by an implementation-dependent attribute identifier (for a local attribute declaration). If the Schema Import Feature is supported, in-scope attribute declarations include all attribute declarations found in imported schemas.]

Revision history for this message
Daniel Turcanu (danielturcanu) wrote :

Ok, I move it to feature requests.

Changed in zorba:
milestone: none → 2.7
Changed in zorba:
milestone: 2.7 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.