CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 23:32:43 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 17:44:51 GMT
cache-control: max-age=2592000, public
expires: Sun, 09 Nov 2025 19:38:11 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98c8939fbb53b5b3
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: HIT
age: 42734
set-cookie: __cf_bm=983hRe7_wtWHWJxUd.Gs5OuuQQTbZ88MW995OZbYvpg-1760225563-1.0.1.1-NONmu8tf07BLW_G7fjcY.4RCghP5q3o7E5Dq.HdPBu9lyLy.kMRrbZzFEGVqORoGbts7NwXtqCII3599ENf4mCgksCzN8Vt4N3XYXZwUhA8; path=/; expires=Sun, 12-Oct-25 00:02:43 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98d2288e1e4bc464-BLR
alt-svc: h3=":443"; ma=86400
SimpleTypes derived by restriction from Ray Waldin on 2000-04-26 (www-xml-schema-comments@w3.org from April to June 2000)
SimpleTypes derived by restriction
- From: Ray Waldin <rwaldin@pacbell.net>
- Date: Wed, 26 Apr 2000 03:45:10 -0700
- To: <www-xml-schema-comments@w3.org>
- Message-ID: <000501bfaf6c$7fa7dee0$bec90640@lexica.net>
Hello, I have some questions and a comment concerning SimpleTypes derived "by restriction". To illustrate: <simpleType name="firstType" base="decimal"> <minInclusive value="1"/> <maxInclusive value="10"/> </simpleType> <simpleType name="secondType" base="firstType"> <minInclusive="2"/> <maxInclusive="5"/> </simpleType> This seems perfectly acceptible as secondType is derived from firstType "by restricting its value space", by specifying "more restrictive" values for some facets. Here's a case that's not so obvious, using "less restrictive" values: <simpleType name="thirdType" base="firstType"> <minInclusive="0"/> <maxInclusive="11"/> </simpleType> My questions: Is this disallowed or just pointless? In other words, should a schema processor regard this type derivation as an error, or simply produce a thirdType which is no more restrictive than firstType? What does "more restrictive" mean for the period and duration facets? Can period and duration be re-specified in any meaningful way or is re-specifying either of these values disallowed? If a derived type re-specifies the pattern facet (as in the case of NCName and Name), are schema processors expected to: A) ensure that a derived type specifies a "more restrictive" pattern than its base type, or B) check all patterns in a type's derivation hierarchy when validating an instance of that type? My comment: The datatypes spec should elaborate on the expected behavior of schema processors when encountering derived types which re-specify values for each facet. -Ray
Received on Wednesday, 26 April 2000 06:42:26 UTC