RE: [xml-dev] Performance Vs Size of XSD + Extension of restriction

From
Sudheshna Iyer <>
To
, ,
Date
2007-02-05T18:16:36Z
ID
<>
Thread
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:restriction>
</xs:simpleType>

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

Thank you.

Sudheshna





>From: "Michael Kay" <>
>To: "'Pete Cordell'" <>,"'Sudheshna Iyer'" 
><>,<>
>Subject: RE: [xml-dev] Performance Vs Size of XSD + Extension of 
>restriction
>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 4.3.3.4 of
> > XSD part 2.)
>
>Yes: I was only looking at the syntax of doing the restriction, not the
>semantics!
>
>Michael Kay
>http://www.saxonica.com/
>

_________________________________________________________________
Turn searches into helpful donations. Make your search count. 
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donation&FORM=WLMTAG