org.eclipse.cosmos/tests/resource-modeling/org.eclipse.cosmos.rm.validation.tests/src/test-resources/others/InValidDuplicateAliases.xml
Parent Directory
|
Revision Log
Revision 1.8 -
(download)
(as text)
(annotate)
Mon Aug 18 17:18:49 2008 UTC (17 months, 3 weeks ago) by amehregani
Branch: MAIN
CVS Tags: COSMOS_1_0_0, v1_0_0_i13
Branch point for: COSMOS-1_0_0
Changes since 1.7: +8 -7 lines
Mon Aug 18 17:18:49 2008 UTC (17 months, 3 weeks ago) by amehregani
Branch: MAIN
CVS Tags: COSMOS_1_0_0, v1_0_0_i13
Branch point for: COSMOS-1_0_0
Changes since 1.7: +8 -7 lines
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237921
<?xml version="1.0" encoding="UTF-8"?> <!-- /******************************************************************************* * Copyright (c) 2008 IBM Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ --> <model xmlns="http://www.w3.org/2008/09/sml-if" schemaComplete="true"> <identity xml:base="http://interop.serviceml.org/samples"> <name>InValidDuplicateAliases</name> <baseURI> http://interop.serviceml.org/samples </baseURI> <description>This test verifies that the code returns an error when two aliases resolve to the same URI</description> </identity> <definitions> <document> <data> <xs:schema elementFormDefault="qualified" targetNamespace="urn:university" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:tns="urn:university" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="EnrolledCourse"/> <xs:element name="Student" type="tns:StudentType"/> <xs:element name="Course" type="tns:CourseType"/> <xs:element name="Courses"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="Course" type="tns:CourseType"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="CourseType"> <xs:sequence> <xs:element name="Name" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="StudentType"> <xs:sequence> <xs:element name="ID" type="xs:string"/> <xs:element minOccurs="0" name="EnrolledCourses"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tns:EnrolledCourse"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:schema> </data> </document> </definitions> <instances> <document> <docinfo> <aliases> <alias>http://interop.serviceml.org/Student1</alias> </aliases> </docinfo> <data> <Student xmlns="urn:university" xmlns:sml="http://www.w3.org/2008/09/sml"> <ID>1000</ID> </Student> </data> </document> <document> <docinfo> <aliases> <!-- Error; Should cause an error because the alias is used by another document --> <alias>http://interop.serviceml.org/Student1</alias> </aliases> </docinfo> <data> <Student xmlns="urn:university" xmlns:sml="http://www.w3.org/2008/09/sml"> <ID>10001</ID> </Student> </data> </document> </instances> </model>
| help@eclipse.org | ViewVC Help |
| Powered by ViewVC 1.0.3 |
