Inline schema derivation problems?

RESOLVED INVALID

Status

Core Graveyard
XForms
RESOLVED INVALID
13 years ago
2 years ago

People

(Reporter: Allan Beaufour, Assigned: Doron Rosenberg (IBM))

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

2.27 KB, application/xhtml+xml
Details
(Reporter)

Description

13 years ago
The following fails for me:
    <schema targetNamespace=""
            xmlns="http://www.w3.org/2001/XMLSchema">
      <simpleType name="d1">
        <restriction base="string">
          <maxLength value="10"/>
        </restriction>
      </simpleType>
      <simpleType name="d2">
        <restriction base="d1">
          <pattern value="^([a-zA-Z])*$"/>
        </restriction>
      </simpleType>
    </schema>
I'm no schema master, but should that not be valid?
(Reporter)

Comment 1

13 years ago
Created attachment 217282 [details]
Testcase
(Reporter)

Comment 2

13 years ago
Doron gave me a schema lesson... the schema processor was (correctly) looking for "d1" in the xsd namespace.

Correct version:
    <schema targetNamespace="http://beaufour.dk/2006/angrilu"
            xmlns="http://www.w3.org/2001/XMLSchema">
      <simpleType name="d1">
        <restriction base="xsd:string">
          <maxLength value="10"/>
        </restriction>
      </simpleType>
      <simpleType name="d2">
        <restriction base="my:d1">
          <pattern value="^([a-zA-Z])*$"/>
        </restriction>
      </simpleType>
    </schema>
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.