Closed Bug 332812 Opened 18 years ago Closed 18 years ago

Inline schema derivation problems?

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: allan, Assigned: doronr)

References

()

Details

Attachments

(1 file)

2.27 KB, application/xhtml+xml
Details
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?
Attached file Testcase
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
Closed: 18 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: