org.eclipse.cosmos/tests/resource-modeling/org.eclipse.cosmos.rm.validation.tests/src/test-resources/base64/Base64DTDEntity.xml

Parent Directory Parent Directory | Revision Log 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: +33 -9 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>Base64DTDEntity</name>
	<baseURI>
		http://interop.serviceml.org
	</baseURI>
    <description>
    This test verifies that the code returns success when a document
    that is a child of the base64Data element is encoded
    in Base64 format.   The encoded document is an XML document with DTD definition.
    The DTD has entity definitions that are used in the XML.
    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
DQogICAgPCFFTEVNRU5UIEJPT0sgKFAqKT4NCiAgICA8IUVMRU1FTlQgUCAoI1BDREFUQSk+DQog
ICAgPCFFTlRJVFkgYXV0aG9yICJITCI+DQogICAgPCFFTlRJVFkgY29weXJpZ2h0ICJJQk0iPg0K
XT4NCg0KPEJPT0s+DQogICAgPFA+Y2hhcHRlciAxIC0gSW50cm88L1A+DQogICAgPFA+Y2hhcHRl
ciAyIC0gQ29uY2x1c2lvbjwvUD4NCiAgICA8UD4mYXV0aG9yOyZjb3B5cmlnaHQ7PC9QPg0KICAg
IDxQPkluZGV4PC9QPg0KPC9CT09LPg==
      </base64Data>
    </document>
  </instances>
</model>