XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
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: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" <mike@saxonica.com>
>To: "'Pete Cordell'" <petexmldev@tech-know-ware.com>,"'Sudheshna Iyer'" 
><sudheshnaiyer@hotmail.com>,<xml-dev@lists.xml.org>
>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



[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