OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] Performance Vs Size of XSD + Extension of restriction

Thank you Mike.

Pete, I didn't get what you are saying.

I want my 'ChildType' to inherit the restrictions 'minLength' and 
'whiteSpace' from 'OrigType' and
has its own 'maxLength'. So will the following info solve the requirements 
relating to both syntax and semantics?

<xs:simpleType name="OrigType">
	<xs:restriction base="xs:string">
		<xs:minLength value="1"/>
		<xs:maxLength value="20"/>
		<xs:whiteSpace value="collapse"/>

<xs:simpleType name="ChildType">
	<xs:restriction base="OrigType">
		<xs:maxLength value="40"/>

Thank you.


>From: "Michael Kay" <mike@saxonica.com>
>To: "'Pete Cordell'" <petexmldev@tech-know-ware.com>,"'Sudheshna Iyer'" 
>Subject: RE: [xml-dev] Performance Vs Size of XSD + Extension of 
>Date: Mon, 5 Feb 2007 18:00:38 -0000
> > Given that OrigType has <xs:maxLength value="20"/>, wouldn't
> > this 'restriction' be illegal?  (I'm looking at of
> > XSD part 2.)
>Yes: I was only looking at the syntax of doing the restriction, not the
>Michael Kay

Turn searches into helpful donations. Make your search count. 

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS