Removing unnecessary additional directory level.
git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@29 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
139
ixml/test/test_document.c
Normal file
139
ixml/test/test_document.c
Normal file
@@ -0,0 +1,139 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2006 R<>mi Turboult <r3mi@users.sourceforge.net>
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
// * Neither name of Intel Corporation nor the names of its contributors
|
||||
// may be used to endorse or promote products derived from this software
|
||||
// without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
|
||||
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "ixml.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
static const char*
|
||||
get_ixml_error_string (IXML_ERRORCODE code)
|
||||
{
|
||||
#define CASE(CODE) case IXML_ ## CODE: return #CODE
|
||||
|
||||
switch (code) {
|
||||
CASE(INDEX_SIZE_ERR);
|
||||
CASE(DOMSTRING_SIZE_ERR);
|
||||
CASE(HIERARCHY_REQUEST_ERR);
|
||||
CASE(WRONG_DOCUMENT_ERR);
|
||||
CASE(INVALID_CHARACTER_ERR);
|
||||
CASE(NO_DATA_ALLOWED_ERR);
|
||||
CASE(NO_MODIFICATION_ALLOWED_ERR);
|
||||
CASE(NOT_FOUND_ERR);
|
||||
CASE(NOT_SUPPORTED_ERR);
|
||||
CASE(INUSE_ATTRIBUTE_ERR);
|
||||
CASE(INVALID_STATE_ERR);
|
||||
CASE(SYNTAX_ERR);
|
||||
CASE(INVALID_MODIFICATION_ERR);
|
||||
CASE(NAMESPACE_ERR);
|
||||
CASE(INVALID_ACCESS_ERR);
|
||||
CASE(SUCCESS);
|
||||
CASE(NO_SUCH_FILE);
|
||||
CASE(INSUFFICIENT_MEMORY);
|
||||
CASE(FILE_DONE);
|
||||
CASE(INVALID_PARAMETER);
|
||||
CASE(FAILED);
|
||||
CASE(INVALID_ITEM_NUMBER);
|
||||
}
|
||||
return "** UNKNOWN EROR CODE !! **";
|
||||
|
||||
#undef CASE
|
||||
}
|
||||
|
||||
|
||||
|
||||
int
|
||||
main (int argc, char* argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
if (argc < 2) {
|
||||
fprintf (stderr, "Usage: %s [xml files to load]\n",
|
||||
argv[0]);
|
||||
exit (EXIT_FAILURE); // ---------->
|
||||
}
|
||||
|
||||
for (i = 1; i < argc; i++) {
|
||||
int rc;
|
||||
IXML_Document* doc = NULL;
|
||||
DOMString s;
|
||||
char* p;
|
||||
|
||||
printf ("Test \"%s\" \n", argv[i]);
|
||||
printf (" Loading ... ");
|
||||
fflush (stdout);
|
||||
|
||||
rc = ixmlLoadDocumentEx (argv[i], &doc);
|
||||
if (rc != IXML_SUCCESS) {
|
||||
fprintf (stderr,
|
||||
"** error : can't load document %s : "
|
||||
"error %d (%s)\n",
|
||||
argv[i], rc, get_ixml_error_string (rc));
|
||||
exit (EXIT_FAILURE); // ---------->
|
||||
}
|
||||
|
||||
printf ("OK\n");
|
||||
|
||||
printf (" Printing ... ");
|
||||
fflush (stdout);
|
||||
|
||||
s = ixmlPrintDocument (doc);
|
||||
if (s == NULL || s[0] == '\0') {
|
||||
fprintf (stderr,
|
||||
"** error : can't print loaded document %s\n",
|
||||
argv[i]);
|
||||
exit (EXIT_FAILURE); // ---------->
|
||||
}
|
||||
p = s + strlen(s)-1;
|
||||
while (isspace(*p) && p > s)
|
||||
p--;
|
||||
if (*s != '<' || *p != '>') {
|
||||
fprintf (stderr,
|
||||
"** error : malformed printed document '%s' :"
|
||||
"%s\n", argv[i], s);
|
||||
exit (EXIT_FAILURE); // ---------->
|
||||
}
|
||||
|
||||
printf ("OK\n");
|
||||
|
||||
ixmlFreeDOMString (s);
|
||||
ixmlDocument_free (doc);
|
||||
}
|
||||
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
4
ixml/test/test_document.sh
Normal file
4
ixml/test/test_document.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
./test_document `find $srcdir/test/testdata -name *.xml`
|
||||
|
||||
7
ixml/test/testdata/empty_attribute.xml
vendored
Normal file
7
ixml/test/testdata/empty_attribute.xml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<test>
|
||||
|
||||
<name>Empty XML Attribute</name>
|
||||
|
||||
<data attr=""/>
|
||||
27
ixml/test/testdata/p43pass1.xml
vendored
Normal file
27
ixml/test/testdata/p43pass1.xml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE elem
|
||||
|
||||
[
|
||||
|
||||
<!ELEMENT elem (#PCDATA|elem)*>
|
||||
|
||||
<!ENTITY ent "<elem>CharData</elem>">
|
||||
|
||||
]>
|
||||
|
||||
<elem>
|
||||
|
||||
CharData 
|
||||
|
||||
<!--comment-->
|
||||
|
||||
<![CDATA[
|
||||
|
||||
<elem>
|
||||
|
||||
CharData 
|
||||
|
||||
<!--comment-->
|
||||
|
||||
<?pi?>é"
|
||||
|
||||
CharData
|
||||
178
ixml/test/testdata/tvcontrolSCPD.xml
vendored
Normal file
178
ixml/test/testdata/tvcontrolSCPD.xml
vendored
Normal file
@@ -0,0 +1,178 @@
|
||||
<?xml version="1.0"?>
|
||||
<scpd xmlns="urn:schemas-upnp-org:service-1-0">
|
||||
|
||||
<specVersion>
|
||||
<major>1</major>
|
||||
<minor>0</minor>
|
||||
</specVersion>
|
||||
|
||||
|
||||
|
||||
<actionList>
|
||||
|
||||
<action>
|
||||
<name>PowerOn</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<retval />
|
||||
<name>Power</name>
|
||||
<relatedStateVariable>Power</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>PowerOff</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<retval />
|
||||
<name>Power</name>
|
||||
<relatedStateVariable>Power</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>SetChannel</name>
|
||||
<argumentList>
|
||||
|
||||
<argument>
|
||||
<name>NewChannel</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Channel</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
|
||||
<argument>
|
||||
<name>Channel</name>
|
||||
<relatedStateVariable>Channel</relatedStateVariable>
|
||||
<direction>in</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>IncreaseChannel</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>Channel</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Channel</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>DecreaseChannel</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>Channel</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Channel</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>SetVolume</name>
|
||||
<argumentList>
|
||||
|
||||
<argument>
|
||||
<name>NewVolume</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Volume</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
<argument>
|
||||
<name>Volume</name>
|
||||
<relatedStateVariable>Volume</relatedStateVariable>
|
||||
<direction>in</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>IncreaseVolume</name>
|
||||
<argumentList>
|
||||
|
||||
<argument>
|
||||
<name>Volume</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Volume</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>DecreaseVolume</name>
|
||||
<argumentList>
|
||||
|
||||
<argument>
|
||||
<name>Volume</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Volume</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
</actionList>
|
||||
|
||||
|
||||
|
||||
|
||||
<serviceStateTable>
|
||||
|
||||
<stateVariable sendEvents="yes">
|
||||
<name>Power</name>
|
||||
<dataType>Boolean</dataType>
|
||||
<defaultValue>0</defaultValue>
|
||||
</stateVariable>
|
||||
|
||||
<stateVariable sendEvents="yes">
|
||||
<name>Channel</name>
|
||||
<dataType>i4</dataType>
|
||||
<allowedValueRange>
|
||||
<minimum>1</minimum>
|
||||
<maximum>100</maximum>
|
||||
<step>1</step>
|
||||
</allowedValueRange>
|
||||
<defaultValue>1</defaultValue>
|
||||
</stateVariable>
|
||||
|
||||
<stateVariable sendEvents="yes">
|
||||
<name>Volume</name>
|
||||
<dataType>i4</dataType>
|
||||
<allowedValueRange>
|
||||
<minimum>0</minimum>
|
||||
<maximum>10</maximum>
|
||||
<step>1</step>
|
||||
</allowedValueRange>
|
||||
<defaultValue>5</defaultValue>
|
||||
</stateVariable>
|
||||
|
||||
</serviceStateTable>
|
||||
|
||||
</scpd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
37
ixml/test/testdata/tvdevicedesc.xml
vendored
Normal file
37
ixml/test/testdata/tvdevicedesc.xml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0"?>
|
||||
<root xmlns="urn:schemas-upnp-org:device-1-0">
|
||||
<specVersion>
|
||||
<major>1</major>
|
||||
<minor>0</minor>
|
||||
</specVersion>
|
||||
<device>
|
||||
<deviceType>urn:schemas-upnp-org:device:tvdevice:1</deviceType>
|
||||
<friendlyName>UPnP Television Emulator</friendlyName>
|
||||
<manufacturer>TV Manufacturer Name</manufacturer>
|
||||
<manufacturerURL>http://www.manufacturer.com</manufacturerURL>
|
||||
<modelDescription>UPnP Television Device Emulator 1.0</modelDescription>
|
||||
<modelName>TVEmulator</modelName>
|
||||
<modelNumber>1.0</modelNumber>
|
||||
<modelURL>http://www.manufacturer.com/TVEmulator/</modelURL>
|
||||
<serialNumber>123456789001</serialNumber>
|
||||
<UDN>uuid:Upnp-TVEmulator-1_0-1234567890001</UDN>
|
||||
<UPC>123456789</UPC>
|
||||
<serviceList>
|
||||
<service>
|
||||
<serviceType>urn:schemas-upnp-org:service:tvcontrol:1</serviceType>
|
||||
<serviceId>urn:upnp-org:serviceId:tvcontrol1</serviceId>
|
||||
<controlURL>/upnp/control/tvcontrol1</controlURL>
|
||||
<eventSubURL>/upnp/event/tvcontrol1</eventSubURL>
|
||||
<SCPDURL>/tvcontrolSCPD.xml</SCPDURL>
|
||||
</service>
|
||||
<service>
|
||||
<serviceType>urn:schemas-upnp-org:service:tvpicture:1</serviceType>
|
||||
<serviceId>urn:upnp-org:serviceId:tvpicture1</serviceId>
|
||||
<controlURL>/upnp/control/tvpicture1</controlURL>
|
||||
<eventSubURL>/upnp/event/tvpicture1</eventSubURL>
|
||||
<SCPDURL>/tvpictureSCPD.xml</SCPDURL>
|
||||
</service>
|
||||
</serviceList>
|
||||
<presentationURL>/tvdevicepres.html</presentationURL>
|
||||
</device>
|
||||
</root>
|
||||
251
ixml/test/testdata/tvpictureSCPD.xml
vendored
Normal file
251
ixml/test/testdata/tvpictureSCPD.xml
vendored
Normal file
@@ -0,0 +1,251 @@
|
||||
<?xml version="1.0"?>
|
||||
<scpd xmlns="urn:schemas-upnp-org:service-1-0">
|
||||
|
||||
<specVersion>
|
||||
<major>1</major>
|
||||
<minor>0</minor>
|
||||
</specVersion>
|
||||
|
||||
|
||||
<actionList>
|
||||
|
||||
<action>
|
||||
<name>SetColor</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>NewColor</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Color</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
|
||||
<argument>
|
||||
<name>Color</name>
|
||||
<relatedStateVariable>Color</relatedStateVariable>
|
||||
<direction>in</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>IncreaseColor</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>Color</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Color</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>DecreaseColor</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>Color</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Color</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>SetTint</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>NewTint</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Tint</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
|
||||
<argument>
|
||||
<name>Tint</name>
|
||||
<relatedStateVariable>Tint</relatedStateVariable>
|
||||
<direction>in</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>IncreaseTint</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>Tint</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Tint</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>DecreaseTint</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>Tint</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Tint</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>SetContrast</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>NewContrast</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Contrast</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
<argument>
|
||||
<name>Contrast</name>
|
||||
<relatedStateVariable>Contrast</relatedStateVariable>
|
||||
<direction>in</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>IncreaseContrast</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>Contrast</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Contrast</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>DecreaseContrast</name>
|
||||
<argumentList>
|
||||
<argument>
|
||||
<name>Contrast</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Contrast</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>SetBrightness</name>
|
||||
<argumentList>
|
||||
|
||||
<argument>
|
||||
<name>NewBrightness</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Brightness</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
|
||||
<argument>
|
||||
<name>Brightness</name>
|
||||
<relatedStateVariable>Brightness</relatedStateVariable>
|
||||
<direction>in</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>IncreaseBrightness</name>
|
||||
<argumentList>
|
||||
|
||||
<argument>
|
||||
<name>Brightness</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Brightness</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>DecreaseBrightness</name>
|
||||
<argumentList>
|
||||
|
||||
<argument>
|
||||
<name>Brightness</name>
|
||||
<retval />
|
||||
<relatedStateVariable>Brightness</relatedStateVariable>
|
||||
<direction>out</direction>
|
||||
</argument>
|
||||
</argumentList>
|
||||
</action>
|
||||
|
||||
</actionList>
|
||||
|
||||
|
||||
|
||||
<serviceStateTable>
|
||||
|
||||
<stateVariable sendEvents="yes">
|
||||
<name>Color</name>
|
||||
<dataType>i4</dataType>
|
||||
<allowedValueRange>
|
||||
<minimum>1</minimum>
|
||||
<maximum>10</maximum>
|
||||
<step>1</step>
|
||||
</allowedValueRange>
|
||||
<defaultValue>5</defaultValue>
|
||||
</stateVariable>
|
||||
|
||||
<stateVariable sendEvents="yes">
|
||||
<name>Tint</name>
|
||||
<dataType>i4</dataType>
|
||||
<allowedValueRange>
|
||||
<minimum>1</minimum>
|
||||
<maximum>10</maximum>
|
||||
<step>1</step>
|
||||
</allowedValueRange>
|
||||
<defaultValue>5</defaultValue>
|
||||
</stateVariable>
|
||||
|
||||
<stateVariable sendEvents="yes">
|
||||
<name>Contrast</name>
|
||||
<dataType>i4</dataType>
|
||||
<allowedValueRange>
|
||||
<minimum>1</minimum>
|
||||
<maximum>10</maximum>
|
||||
<step>1</step>
|
||||
</allowedValueRange>
|
||||
<defaultValue>5</defaultValue>
|
||||
</stateVariable>
|
||||
|
||||
<stateVariable sendEvents="yes">
|
||||
<name>Brightness</name>
|
||||
<dataType>i4</dataType>
|
||||
<allowedValueRange>
|
||||
<minimum>1</minimum>
|
||||
<maximum>10</maximum>
|
||||
<step>1</step>
|
||||
</allowedValueRange>
|
||||
<defaultValue>5</defaultValue>
|
||||
</stateVariable>
|
||||
|
||||
</serviceStateTable>
|
||||
|
||||
|
||||
</scpd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
85
ixml/test/testdata/xml.ascc.net/legal.html
vendored
Normal file
85
ixml/test/testdata/xml.ascc.net/legal.html
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-transitional.dtd"
|
||||
>
|
||||
<html xmlns="http://www.w3.org/Profiles/xhtml1-transitional">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;
|
||||
charset=iso-8859-1" />
|
||||
<meta name="GENERATOR" content="Microsoft FrontPage Express
|
||||
2.0" />
|
||||
<title>
|
||||
LEGAL NOTICES
|
||||
</title>
|
||||
<style type="text/css">
|
||||
P.c2 {text-align: center}
|
||||
H1.c1 {text-align: center}
|
||||
</style>
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" lang="en">
|
||||
<h1 class="c1">LEGAL NOTICES</h1>
|
||||
<p class="c2">Unless otherwise stated, pages hosted on the
|
||||
website<br />
|
||||
<em>Chinese XML Now!</em><br />
|
||||
are copyright (C) 1998 the designated authors and
|
||||
translators,<br />
|
||||
and the Computing Center, Academia Sinica.</p>
|
||||
<p class="c2">Unless otherwise stated, permission is granted to
|
||||
use, copy, link to,<br />
|
||||
translate and republish in any form, including for commercial
|
||||
use,<br />
|
||||
providing due acknowledgement of the copyright holder<br />
|
||||
and the <em>Chinese XML Now!</em> website is made.</p>
|
||||
<p class="c2">If you believe any pages here are subject to
|
||||
another copyright,<br />
|
||||
please email us (mailto: <a href=
|
||||
"mailto:ricko@gate.sinica.edu.tw">
|
||||
ricko@gate.sinica.edu.tw</a>)<br />
|
||||
with the appropriate correction.</p>
|
||||
<hr />
|
||||
<p class="c2">The "<em>Chinese Numberplate</em>" logos copyright
|
||||
(C) 1998 Rick Jelliffe and Computing Center, Academia Sinica.</p>
|
||||
<p class="c2">The logo is provided as a public service for
|
||||
information,<br />
|
||||
and does not represent a test result or endorsement.</p>
|
||||
<p class="c2">For integrity, we do reserve the right to ask
|
||||
makers who use<br />
|
||||
an incorrect version of the logo to correct it or to abstain
|
||||
from using the logo.<br />
|
||||
</p>
|
||||
<hr />
|
||||
<p class="c2">The Chinese XML Test pages do not represent<br />
|
||||
an exhaustive test of some software's Chinese capability.<br />
|
||||
The tests merely represent a base-level which may<br />
|
||||
identify particular important characteristics quickly.</p>
|
||||
<p class="c2">Permission is granted to copy and use the test
|
||||
files<br />
|
||||
as part of any test suite. However, copiers must take<br />
|
||||
the utmost care to ensure that the test files<br />
|
||||
are maintained in the encoding given in their<br />
|
||||
XML encoding header.</p>
|
||||
<hr />
|
||||
<p class="c2"><em>Caveat</em><em><strong>:</strong></em>
|
||||
Information provided about products at this site is<br />
|
||||
provided as a public service only, and does not imply<br />
|
||||
an endorsement of any product, any company, or any
|
||||
technology.</p>
|
||||
<p class="c2">Information at this site should be treated as an
|
||||
indication only:<br />
|
||||
products and capabilities change quickly, so information<br />
|
||||
may only be correct at the time of publication.<br />
|
||||
Furthermore, due to the technical complexity and novelty<br />
|
||||
of XML technology, and the poor state of product
|
||||
documentation,<br />
|
||||
it is possible that some information may be incorrect,<br />
|
||||
despite our best endevours.</p>
|
||||
<p class="c2">If you believe any information here is
|
||||
incorrect,<br />
|
||||
please email us (mailto: <a href=
|
||||
"mailto:ricko@gate.sinica.edu.tw">
|
||||
ricko@gate.sinica.edu.tw</a>)<br />
|
||||
with the appropriate correction.</p>
|
||||
<hr />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
14
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-0.xml
vendored
Normal file
14
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-0.xml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io0">
|
||||
|
||||
<name>Chinese Test #0: utf-8</name>
|
||||
|
||||
<data>This file is the null test. It is a UTF-8 encoded
|
||||
|
||||
14
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-1.xml
vendored
Normal file
14
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-1.xml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io1">
|
||||
|
||||
<name>Chinese Test #1: UTF-8</name>
|
||||
|
||||
<data>This file is the null test. It is a UTF-8 encoded
|
||||
|
||||
14
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-10.xml
vendored
Normal file
14
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-10.xml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io10">
|
||||
|
||||
<name>Chinese Test #10: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, directly entered.
|
||||
|
||||
14
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-11.xml
vendored
Normal file
14
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-11.xml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io11">
|
||||
|
||||
<name>Chinese Test #11: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, directly entered.
|
||||
|
||||
17
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-12.xml
vendored
Normal file
17
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-12.xml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io12">
|
||||
|
||||
<name id="中">Chinese Test #12: UTF-8</name>
|
||||
|
||||
<data>This file has two attributes
|
||||
|
||||
with Chinese characters, directly entered.
|
||||
|
||||
This tests Native Language Markup (NLM).
|
||||
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-2.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-2.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io2">
|
||||
|
||||
<name>Chinese Test #2: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, encoded using
|
||||
|
||||
a decimal numeric character reference. It is a UTF-8 encoded
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also an
|
||||
|
||||
ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-3.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-3.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io3">
|
||||
|
||||
<name>Chinese Test #3: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, encoded using
|
||||
|
||||
a hexadecimal numeric character reference. It is a UTF-8 encoded
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also an
|
||||
|
||||
ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-4.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-4.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io4">
|
||||
|
||||
<name>Chinese Test #4: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, encoded using
|
||||
|
||||
a decimal numeric character reference. It is a UTF-8 encoded
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also an
|
||||
|
||||
ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-5.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-5.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io5">
|
||||
|
||||
<name>Chinese Test #5: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, encoded using
|
||||
|
||||
a decimal numeric character reference. It is a UTF-8 encoded
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also an
|
||||
|
||||
ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-6.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-6.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io6">
|
||||
|
||||
<name>Chinese Test #6: UTF-8</name>
|
||||
|
||||
<data>This file has CDATA which looks like
|
||||
|
||||
a decimal numeric character reference. It is a
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also a
|
||||
|
||||
UTF-8, ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-7.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-7.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io7">
|
||||
|
||||
<name>Chinese Test #7: UTF-8</name>
|
||||
|
||||
<data>This file has CDATA which looks like
|
||||
|
||||
a hexadecimal numeric character reference. It is a
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also a
|
||||
|
||||
UTF-8, ASCII or iso-8859-n file).
|
||||
|
||||
16
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-8.xml
vendored
Normal file
16
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-8.xml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io8">
|
||||
|
||||
<name>Chinese Test #8: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, directly entered.
|
||||
|
||||
</data>
|
||||
|
||||
13
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-9.xml
vendored
Normal file
13
ixml/test/testdata/xml.ascc.net/wf/zh-utf8-9.xml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test type="io9">
|
||||
|
||||
<name>Chinese Test #9: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, directly entered.
|
||||
14
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-0.xml
vendored
Normal file
14
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-0.xml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io0">
|
||||
|
||||
<name>Chinese Test #0: utf-8</name>
|
||||
|
||||
<data>This file is the null test. It is a UTF-8 encoded
|
||||
|
||||
14
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-1.xml
vendored
Normal file
14
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-1.xml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io1">
|
||||
|
||||
<name>Chinese Test #1: UTF-8</name>
|
||||
|
||||
<data>This file is the null test. It is a UTF-8 encoded
|
||||
|
||||
14
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-10.xml
vendored
Normal file
14
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-10.xml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io10">
|
||||
|
||||
<name>Chinese Test #10: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, directly entered.
|
||||
|
||||
14
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-11.xml
vendored
Normal file
14
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-11.xml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io11">
|
||||
|
||||
<name>Chinese Test #11: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, directly entered.
|
||||
|
||||
17
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-12.xml
vendored
Normal file
17
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-12.xml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io12">
|
||||
|
||||
<name id="中">Chinese Test #12: UTF-8</name>
|
||||
|
||||
<data>This file has two attributes
|
||||
|
||||
with Chinese characters, directly entered.
|
||||
|
||||
This tests Native Language Markup (NLM).
|
||||
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-2.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-2.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io2">
|
||||
|
||||
<name>Chinese Test #2: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, encoded using
|
||||
|
||||
a decimal numeric character reference. It is a UTF-8 encoded
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also an
|
||||
|
||||
ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-3.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-3.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io3">
|
||||
|
||||
<name>Chinese Test #3: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, encoded using
|
||||
|
||||
a hexadecimal numeric character reference. It is a UTF-8 encoded
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also an
|
||||
|
||||
ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-4.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-4.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io4">
|
||||
|
||||
<name>Chinese Test #4: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, encoded using
|
||||
|
||||
a decimal numeric character reference. It is a UTF-8 encoded
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also an
|
||||
|
||||
ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-5.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-5.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io5">
|
||||
|
||||
<name>Chinese Test #5: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, encoded using
|
||||
|
||||
a decimal numeric character reference. It is a UTF-8 encoded
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also an
|
||||
|
||||
ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-6.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-6.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io6">
|
||||
|
||||
<name>Chinese Test #6: UTF-8</name>
|
||||
|
||||
<data>This file has CDATA which looks like
|
||||
|
||||
a decimal numeric character reference. It is a
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also a
|
||||
|
||||
UTF-8, ASCII or iso-8859-n file).
|
||||
|
||||
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-7.xml
vendored
Normal file
20
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-7.xml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io7">
|
||||
|
||||
<name>Chinese Test #7: UTF-8</name>
|
||||
|
||||
<data>This file has CDATA which looks like
|
||||
|
||||
a hexadecimal numeric character reference. It is a
|
||||
|
||||
file with no non-ASCII characters (i.e. it is also a
|
||||
|
||||
UTF-8, ASCII or iso-8859-n file).
|
||||
|
||||
16
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-8.xml
vendored
Normal file
16
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-8.xml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io8">
|
||||
|
||||
<name>Chinese Test #8: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, directly entered.
|
||||
|
||||
</data>
|
||||
|
||||
13
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-9.xml
vendored
Normal file
13
ixml/test/testdata/xml.ascc.net/wfns/zh-utf8-9.xml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Copyright 1998 Academia Sinica Computing Center -->
|
||||
|
||||
<!-- Permission to use and distribute granted under MPL -->
|
||||
|
||||
<!-- Email corrections to ricko@gate.sinica.net.tw -->
|
||||
|
||||
<test xmlns='http://www.ascc.net/xml/test/schema' type="io9">
|
||||
|
||||
<name>Chinese Test #9: UTF-8</name>
|
||||
|
||||
<data>This file has 1 Chinese character, directly entered.
|
||||
5
ixml/test/testdata/xmlconf/014.xml
vendored
Normal file
5
ixml/test/testdata/xmlconf/014.xml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<!DOCTYPE doc [
|
||||
|
||||
<!ELEMENT doc (#PCDATA)>
|
||||
|
||||
<!ATTLIST doc abcdefghijklmnopqrstuvwxyz CDATA #IMPLIED>
|
||||
5
ixml/test/testdata/xmlconf/040.xml
vendored
Normal file
5
ixml/test/testdata/xmlconf/040.xml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<!DOCTYPE doc [
|
||||
|
||||
<!ELEMENT doc (#PCDATA)>
|
||||
|
||||
<!ATTLIST doc a1 CDATA #IMPLIED>
|
||||
10
ixml/test/testdata/xmlconf/059.xml
vendored
Normal file
10
ixml/test/testdata/xmlconf/059.xml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE doc [
|
||||
|
||||
<!ELEMENT doc (e*)>
|
||||
|
||||
<!ELEMENT e EMPTY>
|
||||
|
||||
<!ATTLIST e a1 CDATA #IMPLIED a2 CDATA #IMPLIED a3 CDATA #IMPLIED>
|
||||
|
||||
]>
|
||||
|
||||
5
ixml/test/testdata/xmlconf/111.xml
vendored
Normal file
5
ixml/test/testdata/xmlconf/111.xml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<!DOCTYPE doc [
|
||||
|
||||
<!ELEMENT doc (#PCDATA)>
|
||||
|
||||
<!ATTLIST doc a NMTOKENS #IMPLIED>
|
||||
38
ixml/test/testdata/xmlconf/element.xml
vendored
Normal file
38
ixml/test/testdata/xmlconf/element.xml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE root [
|
||||
<!ELEMENT root ANY>
|
||||
<!ELEMENT empty EMPTY>
|
||||
<!ELEMENT mixed1 (#PCDATA)>
|
||||
<!ELEMENT mixed2 (#PCDATA)*>
|
||||
<!ELEMENT mixed3 (#PCDATA|empty)*>
|
||||
]>
|
||||
|
||||
<root>
|
||||
<empty/>
|
||||
|
||||
<mixed1/>
|
||||
<mixed1></mixed1>
|
||||
|
||||
<mixed2/>
|
||||
<mixed2></mixed2>
|
||||
|
||||
<mixed3/>
|
||||
<mixed3></mixed3>
|
||||
|
||||
<mixed1>allowed</mixed1>
|
||||
<mixed1><![CDATA[<allowed>]]></mixed1>
|
||||
|
||||
<mixed2>also</mixed2>
|
||||
<mixed2><![CDATA[<% illegal otherwise %>]]></mixed2>
|
||||
|
||||
<mixed3>moreover</mixed3>
|
||||
|
||||
<mixed1>allowed & stuff</mixed1>
|
||||
|
||||
<mixed2>also</mixed2>
|
||||
|
||||
<mixed3>moreover <empty></empty> </mixed3>
|
||||
<mixed3>moreover <empty/> </mixed3>
|
||||
<mixed3><empty/> </mixed3>
|
||||
<mixed3><empty/> too</mixed3>
|
||||
|
||||
</root>
|
||||
Reference in New Issue
Block a user