/lib/xmerl/test/xmerl_xsd_SUITE_data/sis/MyBsModel_1.xsd

https://github.com/elaufis/otp · XML Schema · 502 lines · 497 code · 5 blank · 0 comment · 0 complexity · a0fae44ecb329fd13926402c0db7c5b7 MD5 · raw file

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ericsson.com/is/isco/MyBsModel_1" xmlns="http://www.ericsson.com/is/isco/MyBsModel_1" xmlns:nc="http://www.ericsson.com/is/isco/nc" xmlns:IsTypes="http://www.ericsson.com/is/isco/IsTypes">
  3. <xsd:annotation>
  4. <xsd:appinfo>
  5. <mim file="myTest_mim.xml" version="/main/R2A/10"/>
  6. <mim file="other_mim.xml" version=""/>
  7. </xsd:appinfo>
  8. </xsd:annotation>
  9. <xsd:import schemaLocation="nc.xsd" namespace="http://www.ericsson.com/is/isco/nc"/>
  10. <xsd:import schemaLocation="IsTypes.xsd" namespace="http://www.ericsson.com/is/isco/IsTypes"/>
  11. <xsd:complexType name="uselessStruct">
  12. <xsd:sequence>
  13. <xsd:element name="field1">
  14. <xsd:complexType>
  15. <xsd:simpleContent>
  16. <xsd:extension base="ccsHelperType4">
  17. <xsd:attribute ref="nc:operation"/>
  18. </xsd:extension>
  19. </xsd:simpleContent>
  20. </xsd:complexType>
  21. </xsd:element>
  22. <xsd:element name="field2" type="myInteger"/>
  23. </xsd:sequence>
  24. <xsd:attribute ref="nc:operation"/>
  25. </xsd:complexType>
  26. <xsd:complexType name="myNamedStruct">
  27. <xsd:annotation>
  28. <xsd:documentation>
  29. Struct description
  30. </xsd:documentation>
  31. </xsd:annotation>
  32. <xsd:sequence>
  33. <xsd:element name="counter">
  34. <xsd:complexType>
  35. <xsd:simpleContent>
  36. <xsd:extension base="ccsHelperType5">
  37. <xsd:attribute ref="nc:operation"/>
  38. </xsd:extension>
  39. </xsd:simpleContent>
  40. </xsd:complexType>
  41. </xsd:element>
  42. <xsd:element name="state" type="stateType"/>
  43. <xsd:element name="dummyStructRef" type="uselessStruct"/>
  44. <xsd:element name="dummySequence">
  45. <xsd:complexType>
  46. <xsd:sequence>
  47. <xsd:element name="item" type="uselessStruct" minOccurs="3" maxOccurs="unbounded"/>
  48. </xsd:sequence>
  49. <xsd:attribute ref="nc:operation"/>
  50. </xsd:complexType>
  51. </xsd:element>
  52. <xsd:element name="inlineStruct">
  53. <xsd:complexType>
  54. <xsd:sequence>
  55. <xsd:element name="a" type="InternalImport"/>
  56. <xsd:element name="b">
  57. <xsd:complexType>
  58. <xsd:simpleContent>
  59. <xsd:extension base="ccsHelperType6">
  60. <xsd:attribute ref="nc:operation"/>
  61. </xsd:extension>
  62. </xsd:simpleContent>
  63. </xsd:complexType>
  64. </xsd:element>
  65. <xsd:element name="c">
  66. <xsd:complexType>
  67. <xsd:simpleContent>
  68. <xsd:extension base="ccsHelperType7">
  69. <xsd:attribute ref="nc:operation"/>
  70. </xsd:extension>
  71. </xsd:simpleContent>
  72. </xsd:complexType>
  73. </xsd:element>
  74. </xsd:sequence>
  75. <xsd:attribute ref="nc:operation"/>
  76. </xsd:complexType>
  77. </xsd:element>
  78. </xsd:sequence>
  79. <xsd:attribute ref="nc:operation"/>
  80. </xsd:complexType>
  81. <xsd:complexType name="myInteger">
  82. <xsd:simpleContent>
  83. <xsd:extension base="ccsHelperType8">
  84. <xsd:attribute ref="nc:operation"/>
  85. </xsd:extension>
  86. </xsd:simpleContent>
  87. </xsd:complexType>
  88. <xsd:complexType name="namedMoRefType">
  89. <xsd:annotation>
  90. <xsd:documentation>
  91. A named type which is an MO Reference pointing to
  92. * MyClass
  93. </xsd:documentation>
  94. </xsd:annotation>
  95. <xsd:simpleContent>
  96. <xsd:extension base="ccsHelperType9">
  97. <xsd:attribute ref="nc:operation"/>
  98. </xsd:extension>
  99. </xsd:simpleContent>
  100. </xsd:complexType>
  101. <xsd:complexType name="stateType">
  102. <xsd:simpleContent>
  103. <xsd:extension base="ccsHelperType10">
  104. <xsd:attribute ref="nc:operation"/>
  105. </xsd:extension>
  106. </xsd:simpleContent>
  107. </xsd:complexType>
  108. <xsd:complexType name="blippName">
  109. <xsd:simpleContent>
  110. <xsd:extension base="ccsHelperType11">
  111. <xsd:attribute ref="nc:operation"/>
  112. </xsd:extension>
  113. </xsd:simpleContent>
  114. </xsd:complexType>
  115. <xsd:complexType name="yesNoEnum">
  116. <xsd:annotation>
  117. <xsd:documentation>
  118. Enum which can be yes or no
  119. </xsd:documentation>
  120. </xsd:annotation>
  121. <xsd:simpleContent>
  122. <xsd:extension base="ccsHelperType12">
  123. <xsd:attribute ref="nc:operation"/>
  124. </xsd:extension>
  125. </xsd:simpleContent>
  126. </xsd:complexType>
  127. <xsd:complexType name="uselessEnum">
  128. <xsd:simpleContent>
  129. <xsd:extension base="ccsHelperType13">
  130. <xsd:attribute ref="nc:operation"/>
  131. </xsd:extension>
  132. </xsd:simpleContent>
  133. </xsd:complexType>
  134. <xsd:complexType name="InternalImport">
  135. <xsd:simpleContent>
  136. <xsd:extension base="xsd:integer">
  137. <xsd:attribute ref="nc:operation"/>
  138. </xsd:extension>
  139. </xsd:simpleContent>
  140. </xsd:complexType>
  141. <xsd:complexType name="MyClass_SeqType3">
  142. <xsd:sequence>
  143. <xsd:element name="item" type="MyClass_InternalType" minOccurs="0" maxOccurs="unbounded"/>
  144. </xsd:sequence>
  145. <xsd:attribute ref="nc:operation"/>
  146. </xsd:complexType>
  147. <xsd:complexType name="MyClass_myDateAndTimeType">
  148. <xsd:simpleContent>
  149. <xsd:extension base="ccsHelperType0">
  150. <xsd:attribute ref="nc:operation"/>
  151. </xsd:extension>
  152. </xsd:simpleContent>
  153. </xsd:complexType>
  154. <xsd:complexType name="MyClass_SeqType2">
  155. <xsd:sequence>
  156. <xsd:element name="item" type="uselessStruct" minOccurs="0" maxOccurs="unbounded"/>
  157. </xsd:sequence>
  158. <xsd:attribute ref="nc:operation"/>
  159. </xsd:complexType>
  160. <xsd:complexType name="MyClass_InternalType">
  161. <xsd:simpleContent>
  162. <xsd:extension base="ccsHelperType1">
  163. <xsd:attribute ref="nc:operation"/>
  164. </xsd:extension>
  165. </xsd:simpleContent>
  166. </xsd:complexType>
  167. <xsd:complexType name="MyClass_classInternalEnum">
  168. <xsd:simpleContent>
  169. <xsd:extension base="ccsHelperType2">
  170. <xsd:attribute ref="nc:operation"/>
  171. </xsd:extension>
  172. </xsd:simpleContent>
  173. </xsd:complexType>
  174. <xsd:complexType name="MyClass_SeqType1">
  175. <xsd:sequence>
  176. <xsd:element name="item" minOccurs="3" maxOccurs="3">
  177. <xsd:complexType>
  178. <xsd:simpleContent>
  179. <xsd:extension base="ccsHelperType3">
  180. <xsd:attribute ref="nc:operation"/>
  181. </xsd:extension>
  182. </xsd:simpleContent>
  183. </xsd:complexType>
  184. </xsd:element>
  185. </xsd:sequence>
  186. <xsd:attribute ref="nc:operation"/>
  187. </xsd:complexType>
  188. <xsd:element name="model">
  189. <xsd:complexType>
  190. <xsd:sequence>
  191. <xsd:element name="Blipp" minOccurs="0" maxOccurs="2">
  192. <xsd:annotation>
  193. <xsd:documentation>
  194. This is a class which can be assigned as an attribute of ChildClass.
  195. Key attribute is 'id'.
  196. Key attributes: [id]
  197. </xsd:documentation>
  198. </xsd:annotation>
  199. <xsd:complexType>
  200. <xsd:sequence>
  201. <xsd:element name="id" type="blippName"/>
  202. <xsd:element minOccurs="0" name="truefalse" type="uselessEnum"/>
  203. <xsd:element minOccurs="0" name="ipAddress" type="IsTypes:IpAddress"/>
  204. <xsd:element minOccurs="0" name="macAddress" type="IsTypes:MacAddress"/>
  205. <xsd:element minOccurs="0" name="moAttributeDeep">
  206. <xsd:complexType>
  207. <xsd:simpleContent>
  208. <xsd:extension base="ccsHelperType14">
  209. <xsd:attribute ref="nc:operation"/>
  210. </xsd:extension>
  211. </xsd:simpleContent>
  212. </xsd:complexType>
  213. </xsd:element>
  214. </xsd:sequence>
  215. <xsd:attribute ref="nc:operation"/>
  216. </xsd:complexType>
  217. </xsd:element>
  218. <xsd:element name="MyClass" minOccurs="0" maxOccurs="unbounded">
  219. <xsd:annotation>
  220. <xsd:documentation>
  221. My Test Class
  222. The class hierarky looks like this:
  223. +==========+
  224. |MountPoint|
  225. +==========+
  226. / \
  227. / \
  228. +=======+ +=======+
  229. | Blipp | |MyClass|
  230. +=======+ +=======+
  231. |
  232. |
  233. +==========+
  234. |ChildClass|
  235. +==========+
  236. Key attributes: [id1,id2]
  237. Possible children:
  238. ChildClass:
  239. Definition of children under MyClass
  240. </xsd:documentation>
  241. </xsd:annotation>
  242. <xsd:complexType>
  243. <xsd:sequence>
  244. <xsd:element name="id1">
  245. <xsd:annotation>
  246. <xsd:documentation>
  247. Test class identifyer - part1
  248. </xsd:documentation>
  249. </xsd:annotation>
  250. <xsd:complexType>
  251. <xsd:simpleContent>
  252. <xsd:extension base="ccsHelperType15">
  253. <xsd:attribute ref="nc:operation"/>
  254. </xsd:extension>
  255. </xsd:simpleContent>
  256. </xsd:complexType>
  257. </xsd:element>
  258. <xsd:element name="id2">
  259. <xsd:annotation>
  260. <xsd:documentation>
  261. Test class identifyer - part2
  262. </xsd:documentation>
  263. </xsd:annotation>
  264. <xsd:complexType>
  265. <xsd:simpleContent>
  266. <xsd:extension base="ccsHelperType16">
  267. <xsd:attribute ref="nc:operation"/>
  268. </xsd:extension>
  269. </xsd:simpleContent>
  270. </xsd:complexType>
  271. </xsd:element>
  272. <xsd:element minOccurs="0" name="date">
  273. <xsd:annotation>
  274. <xsd:documentation>
  275. Date
  276. </xsd:documentation>
  277. </xsd:annotation>
  278. <xsd:complexType>
  279. <xsd:simpleContent>
  280. <xsd:extension base="ccsHelperType17">
  281. <xsd:attribute ref="nc:operation"/>
  282. </xsd:extension>
  283. </xsd:simpleContent>
  284. </xsd:complexType>
  285. </xsd:element>
  286. <xsd:element minOccurs="0" name="date2" type="MyClass_myDateAndTimeType">
  287. <xsd:annotation>
  288. <xsd:documentation>
  289. Date2 - named type
  290. </xsd:documentation>
  291. </xsd:annotation>
  292. </xsd:element>
  293. <xsd:element minOccurs="0" name="list">
  294. <xsd:complexType>
  295. <xsd:sequence>
  296. <xsd:element name="item" minOccurs="3" maxOccurs="3">
  297. <xsd:complexType>
  298. <xsd:simpleContent>
  299. <xsd:extension base="ccsHelperType3">
  300. <xsd:attribute ref="nc:operation"/>
  301. </xsd:extension>
  302. </xsd:simpleContent>
  303. </xsd:complexType>
  304. </xsd:element>
  305. </xsd:sequence>
  306. <xsd:attribute ref="nc:operation"/>
  307. </xsd:complexType>
  308. </xsd:element>
  309. <xsd:element minOccurs="0" name="list2" type="MyClass_SeqType2"/>
  310. <xsd:element minOccurs="0" name="list3" type="MyClass_SeqType3"/>
  311. <xsd:element minOccurs="0" name="yesNo" type="yesNoEnum"/>
  312. <xsd:element minOccurs="0" name="commonStruct" type="myNamedStruct">
  313. <xsd:annotation>
  314. <xsd:documentation>
  315. Attribute description.
  316. </xsd:documentation>
  317. </xsd:annotation>
  318. </xsd:element>
  319. <xsd:element minOccurs="0" name="dummyInternal" type="MyClass_InternalType"/>
  320. <xsd:element minOccurs="0" name="trueOrFalse">
  321. <xsd:complexType>
  322. <xsd:simpleContent>
  323. <xsd:extension base="ccsHelperType7">
  324. <xsd:attribute ref="nc:operation"/>
  325. </xsd:extension>
  326. </xsd:simpleContent>
  327. </xsd:complexType>
  328. </xsd:element>
  329. <xsd:element name="ChildClass" minOccurs="0" maxOccurs="2">
  330. <xsd:annotation>
  331. <xsd:documentation>
  332. Child of MyClass
  333. Key attributes: [id]
  334. </xsd:documentation>
  335. </xsd:annotation>
  336. <xsd:complexType>
  337. <xsd:sequence>
  338. <xsd:element name="id">
  339. <xsd:complexType>
  340. <xsd:simpleContent>
  341. <xsd:extension base="ccsHelperType18">
  342. <xsd:attribute ref="nc:operation"/>
  343. </xsd:extension>
  344. </xsd:simpleContent>
  345. </xsd:complexType>
  346. </xsd:element>
  347. <xsd:element minOccurs="0" name="moAttribute">
  348. <xsd:complexType>
  349. <xsd:simpleContent>
  350. <xsd:extension base="ccsHelperType19">
  351. <xsd:attribute ref="nc:operation"/>
  352. </xsd:extension>
  353. </xsd:simpleContent>
  354. </xsd:complexType>
  355. </xsd:element>
  356. <xsd:element minOccurs="0" name="moAttributeNamed" type="namedMoRefType"/>
  357. </xsd:sequence>
  358. <xsd:attribute ref="nc:operation"/>
  359. </xsd:complexType>
  360. </xsd:element>
  361. </xsd:sequence>
  362. <xsd:attribute ref="nc:operation"/>
  363. </xsd:complexType>
  364. </xsd:element>
  365. </xsd:sequence>
  366. <xsd:attribute ref="nc:operation"/>
  367. </xsd:complexType>
  368. </xsd:element>
  369. <xsd:simpleType name="ccsHelperType19">
  370. <xsd:restriction base="xsd:normalizedString">
  371. <xsd:whiteSpace value="collapse"/>
  372. <xsd:pattern value="((/IntegratedSite:model/)|((\.\./)+)|((\./)(\.\./)*)|())((([A-Z][a-zA-Z0-9]+:model)|([A-Z][a-zA-Z0-9]+(\[[a-z][a-zA-Z0-9]*='[^\]]+'\])*))/)*Blipp\[id='[^\]]+'\]"/>
  373. </xsd:restriction>
  374. </xsd:simpleType>
  375. <xsd:simpleType name="ccsHelperType18">
  376. <xsd:restriction base="xsd:normalizedString">
  377. <xsd:whiteSpace value="collapse"/>
  378. <xsd:minLength value="1"/>
  379. <xsd:maxLength value="20"/>
  380. </xsd:restriction>
  381. </xsd:simpleType>
  382. <xsd:simpleType name="ccsHelperType17">
  383. <xsd:restriction base="xsd:dateTime">
  384. <xsd:whiteSpace value="collapse"/>
  385. <xsd:minInclusive value="2006-03-08T00:00:00.567Z"/>
  386. <xsd:maxInclusive value="2006-03-08T23:59:59Z"/>
  387. </xsd:restriction>
  388. </xsd:simpleType>
  389. <xsd:simpleType name="ccsHelperType16">
  390. <xsd:restriction base="xsd:integer">
  391. <xsd:minInclusive value="1"/>
  392. </xsd:restriction>
  393. </xsd:simpleType>
  394. <xsd:simpleType name="ccsHelperType15">
  395. <xsd:restriction base="xsd:normalizedString">
  396. <xsd:whiteSpace value="collapse"/>
  397. <xsd:enumeration value="Obj"/>
  398. <xsd:enumeration value="MO"/>
  399. </xsd:restriction>
  400. </xsd:simpleType>
  401. <xsd:simpleType name="ccsHelperType14">
  402. <xsd:restriction base="xsd:normalizedString">
  403. <xsd:whiteSpace value="collapse"/>
  404. <xsd:pattern value="((/IntegratedSite:model/)|((\.\./)+)|((\./)(\.\./)*)|())((([A-Z][a-zA-Z0-9]+:model)|([A-Z][a-zA-Z0-9]+(\[[a-z][a-zA-Z0-9]*='[^\]]+'\])*))/)*ChildClass\[id='[^\]]+'\]"/>
  405. </xsd:restriction>
  406. </xsd:simpleType>
  407. <xsd:simpleType name="ccsHelperType13">
  408. <xsd:restriction base="xsd:normalizedString">
  409. <xsd:whiteSpace value="collapse"/>
  410. <xsd:enumeration value="true"/>
  411. <xsd:enumeration value="false"/>
  412. </xsd:restriction>
  413. </xsd:simpleType>
  414. <xsd:simpleType name="ccsHelperType12">
  415. <xsd:restriction base="xsd:normalizedString">
  416. <xsd:whiteSpace value="collapse"/>
  417. <xsd:enumeration value="yes"/>
  418. <xsd:enumeration value="no"/>
  419. </xsd:restriction>
  420. </xsd:simpleType>
  421. <xsd:simpleType name="ccsHelperType11">
  422. <xsd:restriction base="xsd:normalizedString">
  423. <xsd:whiteSpace value="collapse"/>
  424. <xsd:enumeration value="name1"/>
  425. <xsd:enumeration value="name2"/>
  426. </xsd:restriction>
  427. </xsd:simpleType>
  428. <xsd:simpleType name="ccsHelperType10">
  429. <xsd:restriction base="xsd:normalizedString">
  430. <xsd:whiteSpace value="collapse"/>
  431. <xsd:enumeration value="locked"/>
  432. <xsd:enumeration value="active"/>
  433. <xsd:enumeration value="idle"/>
  434. </xsd:restriction>
  435. </xsd:simpleType>
  436. <xsd:simpleType name="ccsHelperType9">
  437. <xsd:restriction base="xsd:normalizedString">
  438. <xsd:whiteSpace value="collapse"/>
  439. <xsd:pattern value="((/IntegratedSite:model/)|((\.\./)+)|((\./)(\.\./)*)|())((([A-Z][a-zA-Z0-9]+:model)|([A-Z][a-zA-Z0-9]+(\[[a-z][a-zA-Z0-9]*='[^\]]+'\])*))/)*MyClass\[id1='[^\]]+'\]\[id2='[^\]]+'\]"/>
  440. </xsd:restriction>
  441. </xsd:simpleType>
  442. <xsd:simpleType name="ccsHelperType8">
  443. <xsd:restriction base="xsd:integer">
  444. <xsd:minInclusive value="1"/>
  445. <xsd:maxInclusive value="100"/>
  446. </xsd:restriction>
  447. </xsd:simpleType>
  448. <xsd:simpleType name="ccsHelperType7">
  449. <xsd:restriction base="xsd:boolean">
  450. <xsd:pattern value="(true|false)"/>
  451. </xsd:restriction>
  452. </xsd:simpleType>
  453. <xsd:simpleType name="ccsHelperType6">
  454. <xsd:restriction base="xsd:float">
  455. <xsd:minInclusive value="0.00"/>
  456. <xsd:maxInclusive value="1.00"/>
  457. </xsd:restriction>
  458. </xsd:simpleType>
  459. <xsd:simpleType name="ccsHelperType5">
  460. <xsd:restriction base="xsd:integer">
  461. <xsd:minInclusive value="0"/>
  462. </xsd:restriction>
  463. </xsd:simpleType>
  464. <xsd:simpleType name="ccsHelperType4">
  465. <xsd:restriction base="xsd:normalizedString">
  466. <xsd:whiteSpace value="collapse"/>
  467. <xsd:maxLength value="20"/>
  468. </xsd:restriction>
  469. </xsd:simpleType>
  470. <xsd:simpleType name="ccsHelperType3">
  471. <xsd:restriction base="xsd:integer">
  472. <xsd:minInclusive value="0"/>
  473. <xsd:maxInclusive value="3"/>
  474. </xsd:restriction>
  475. </xsd:simpleType>
  476. <xsd:simpleType name="ccsHelperType2">
  477. <xsd:restriction base="xsd:normalizedString">
  478. <xsd:whiteSpace value="collapse"/>
  479. <xsd:enumeration value="a"/>
  480. <xsd:enumeration value="b"/>
  481. </xsd:restriction>
  482. </xsd:simpleType>
  483. <xsd:simpleType name="ccsHelperType1">
  484. <xsd:restriction base="xsd:normalizedString">
  485. <xsd:whiteSpace value="collapse"/>
  486. <xsd:enumeration value="hei"/>
  487. <xsd:enumeration value="hopp"/>
  488. </xsd:restriction>
  489. </xsd:simpleType>
  490. <xsd:simpleType name="ccsHelperType0">
  491. <xsd:restriction base="xsd:dateTime">
  492. <xsd:whiteSpace value="collapse"/>
  493. <xsd:minInclusive value="2006-03-15T00:00:00.567Z"/>
  494. <xsd:maxInclusive value="2006-03-15T23:59:59Z"/>
  495. </xsd:restriction>
  496. </xsd:simpleType>
  497. </xsd:schema>