| 1 | <!-- |
| 2 | Copyright (c) 2000-2015 Ericsson Telecom AB |
| 3 | |
| 4 | All rights reserved. This program and the accompanying materials |
| 5 | are made available under the terms of the Eclipse Public License v1.0 |
| 6 | which accompanies this distribution, and is available at |
| 7 | http://www.eclipse.org/legal/epl-v10.html |
| 8 | --> |
| 9 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 10 | xmlns:ns12="www.XmlTest.org/string_withFixedLength" |
| 11 | targetNamespace="www.XmlTest.org/string_withFixedLength" > |
| 12 | <xsd:annotation> |
| 13 | <xsd:documentation xml:lang="en"> |
| 14 | "This documentum tests based on |
| 15 | XML Schema Part 0: Primer Second Edition, |
| 16 | 2.3 Simple Types and |
| 17 | Appendix B" |
| 18 | </xsd:documentation> |
| 19 | </xsd:annotation> |
| 20 | |
| 21 | <xsd:simpleType name='string_withFixedLenth'> |
| 22 | <xsd:restriction base='xsd:string'> |
| 23 | <xsd:length value='5' fixed="true"/> |
| 24 | </xsd:restriction> |
| 25 | </xsd:simpleType> |
| 26 | |
| 27 | |
| 28 | <!--According to |
| 29 | XML Schema Part 2: Datatypes Second Edition, |
| 30 | 4.3.1.1 The length Schema Component |
| 31 | this shall be incorrect type def--> |
| 32 | |
| 33 | <xsd:simpleType name='childString'> |
| 34 | <xsd:restriction base='ns:string_withFixedLenth'> |
| 35 | <xsd:length value='4'/> |
| 36 | </xsd:restriction> |
| 37 | </xsd:simpleType> |
| 38 | |
| 39 | </xsd:schema> |