org.eclipse.cosmos/tests/resource-modeling/org.eclipse.cosmos.rm.validation.tests/src/test-resources/base64/Base64DTDInvalidXML.xml
Parent Directory
|
Revision Log
Revision 1.3 -
(download)
(as text)
(annotate)
Tue Jan 27 14:08:20 2009 UTC (12 months, 1 week ago) by dwhiteman
Branch: MAIN
Changes since 1.2: +31 -7 lines
Tue Jan 27 14:08:20 2009 UTC (12 months, 1 week ago) by dwhiteman
Branch: MAIN
Changes since 1.2: +31 -7 lines
NEW - bug 258673: [sml val] Test case updates based on SML wg comments https://bugs.eclipse.org/bugs/show_bug.cgi?id=258673
<?xml version="1.0" encoding="utf-8"?> <!-- /******************************************************************************* * Copyright (c) 2008, 2009 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> <name>Base64DTDInvalidXML</name> <baseURI> http://interop.serviceml.org </baseURI> <description> The encoded document is an XML document with DTD definition. The XML structure is invalid according to the DTD, but since DTD validation is not done by the SML/SML-IF validator, the SML validator should report success. A schema for the root element is provided, since noSchemaBinding is absent, in order to pass schema validity assessment (which is strict, since a schema containing the built-in components can be constructed). The test case avoids using noSchemaBinding, since the latter is optional, in order to be testable against all implementations. </description> </identity> <definitions> <document> <data> <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="BOOK"> <xs:complexType> <xs:sequence> <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </data> </document> </definitions> <instances> <document> <!-- success; the content of the base64Data element is in Base64 format --> <base64Data> PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8IURPQ1RZUEUgQk9PSyBbICAgICAgICAgICAgICAgICAg DQogICAgPCFFTEVNRU5UIEJPT0sxIChQKik+DQogICAgPCFFTEVNRU5UIFAgKCNQQ0RBVEEpPg0K ICAgIDwhRU5USVRZIGF1dGhvciAiSEwiPg0KICAgIDwhRU5USVRZIGNvcHlyaWdodCAiSUJNIj4N Cl0+DQoNCjxCT09LPg0KICAgIDxQPmNoYXB0ZXIgMSAtIEludHJvPC9QPg0KICAgIDxQPmNoYXB0 ZXIgMiAtIENvbmNsdXNpb248L1A+DQogICAgPFA+JmF1dGhvcjsmY29weXJpZ2h0OzwvUD4NCiAg ICA8UD5JbmRleDwvUD4NCjwvQk9PSz4= </base64Data> </document> </instances> </model>
| help@eclipse.org | ViewVC Help |
| Powered by ViewVC 1.0.3 |
