- From: Sebastian <ungemach@et-inf.fho-emden.de>
- Date: Tue, 26 Aug 2003 12:28:55 +0200
- To: www-smil@w3.org
hello,
i am currently developing a xml-schema, in which i would like to use functionalities
provided bei SMIL2.0 modules.
so i tried to <import> smil module-schemas into my own schema like this:
[snip]
<?xml version="1.0" encoding="iso-8859-1" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.foobar.tv/2003/foo"
xmlns:smil20bame="http://www.w3.org/2001/SMIL20/BasicMedia"
targetNamespace="http://www.foobar.tv/2003/foo"
elementFormDefault="qualified">
<xsd:import namespace="http://www.w3.org/2001/SMIL20/BasicMedia"
schemaLocation="http://www.w3.org/2001/SMIL20/smil20-BasicMedia.xsd" />
[snap]
then i should be able to reference types, groups, elements, etc. defined in the smil-
schema by
[snip]
<xsd:sequence>
<xsd:element ref="smil20bame:video" />
</xsd:sequence>
[snap]
so far is everything okay, the schema validates. but if i try to validate an xml-instance
document against my schema, the validator reports errors within the smil-schema,
mainly something like this:
http://www.w3.org/2001/SMIL20/smil20-BasicMedia.xsd:27:5: Invalid per cvc-
attribute.1.2: attribute type check failed for {None}:type: smil20lang:mediaType
is qualified by an unimported non-local namespace:
http://www.w3.org/2001/SMIL20/Language
(this is from the schema validator http://www.w3.org/2001/03/webdata/xsv on
the w3-homepage, but i also tried xalan-based)
when i then import the smil20-language.xsd and smil20.xsd schemas too, other errors
are found, e.g. "Attribute minOccurs is not allowed in element choice in smil20-
language.xsd"
is tis a problem with the validator, or am i doing something basically wrong in
importing the smil-module-schemas?
thanks in advance
kind regards, sebastian ungemach
Received on Tuesday, 26 August 2003 06:28:58 UTC