473,382 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Can XSD simple types be derived from complex types?

Looks like a silly question? I'm in doubt!

- the Recommendation does it (anyType / anySimple type)

- it's possible to restrict away all optional elements and attributes
from a mixed complex type. If doing that on a type where all elements
and attributes are optional, does that leave one with the equivalent of
anySimpleType, then?

Soren
Nov 30 '05 #1
2 1151
Soren Kuula wrote:
Looks like a silly question? I'm in doubt!

- the Recommendation does it (anyType / anySimple type)

- it's possible to restrict away all optional elements and attributes
from a mixed complex type. If doing that on a type where all elements
and attributes are optional, does that leave one with the equivalent of
anySimpleType, then?

Soren


-- or is the answer: It's possible enough in the way I said, but XSD
doesn't provide for it syntactically?

Soren
Nov 30 '05 #2
Soren Kuula writes:
Looks like a silly question? I'm in doubt!

- the Recommendation does it (anyType / anySimple type)
That's special-cased.
- it's possible to restrict away all optional elements and attributes
from a mixed complex type. If doing that on a type where all elements
and attributes are optional, does that leave one with the equivalent
of anySimpleType, then?


Not really -- such a type defn would have untyped content, not quite
the same as anySimpleType -- _but_ you can derive a complex type defn
with simple content, e.g. xs:date, from an emptiable mixed complex
type defn.

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Dec 1 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Patchwork | last post by:
Hi Everyone, Please take a look at the following (simple and fun) program: //////////////////////////////////////////////////////////////////////////// ///////////// // Monster Munch, example...
0
by: mjcsfo | last post by:
I can't seem to find a reference nor any helpful threads on this topic. I've gotten the following error in two circumstances: 1. A complex type has nested within it another complex type, in the...
4
by: scorpion | last post by:
I have a simple type like this: <xs:simpleType name="SizeType"> <xs:restriction base="xs:token"> <xs:enumeration value="small"/> <xs:enumeration value="medium"/> <xs:enumeration...
1
by: Volker Zink | last post by:
I am writing my first schema and have 3 complex types which represent "top level objects": <complex type name="A1"> .... </complex type> <complex type name="A2"> .... </complex type>
8
by: Mark | last post by:
Hi, I'm looking for some ideas on how to build a very simple Event processing framework in my C++ app. Here is a quick background ... I'm building a multithreaded app in C++ (on Linux) that...
16
by: v4vijayakumar | last post by:
Whats wrong with the code in line no. 7?! #cat test3.c #include <stdio.h> int main(int argc, char *argv) { int ia1 = {0, 1, 2}; int ia2; ia2 = ia1;
0
by: Suppi | last post by:
Hi all, we're doing a lot of xml/java (de)serialization and thus have defined a bigger type hierarchy in xml-schema. It starts with basic complex type as base classes. These are extended via...
0
by: blaine | last post by:
Hey everyone, I was hoping to see some people out on the python list that are familiar with MDP (Modular Toolkit for Data Processing - http://mdp-toolkit.sourceforge.net/)? I am wanting to...
2
by: SimonDotException | last post by:
I am trying to use reflection in a property of a base type to inspect the properties of an instance of a type which is derived from that base type, when the properties can themselves be instances of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.