[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Performance Vs Size of XSD + Extension of restriction
- From: "Sudheshna Iyer" <sudheshnaiyer@hotmail.com>
- To: mike@saxonica.com, petexmldev@tech-know-ware.com, xml-dev@lists.xml.org
- Date: Mon, 05 Feb 2007 13:16:36 -0500
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]