ValidateXmlTest moved to community

This commit is contained in:
Dmitry Avdeev
2018-12-20 15:33:55 +03:00
parent 78d4347f6c
commit dbdeff2b0e
56 changed files with 10143 additions and 0 deletions
@@ -0,0 +1,292 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.xml;
import com.intellij.codeInsight.CodeInsightTestCase;
import com.intellij.javaee.ExternalResourceManagerEx;
import com.intellij.javaee.ExternalResourceManagerExImpl;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.vfs.VfsUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiDocumentManager;
import com.intellij.psi.PsiManager;
import com.intellij.psi.xml.XmlFile;
import com.intellij.testFramework.PlatformTestUtil;
import com.intellij.testFramework.PsiTestUtil;
import com.intellij.xml.actions.validate.TestErrorReporter;
import com.intellij.xml.actions.validate.ValidateXmlActionHandler;
import com.intellij.xml.util.XmlResourceResolver;
import org.jetbrains.annotations.NonNls;
import java.io.File;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
@SuppressWarnings({"ALL"})
public class ValidateXmlTest extends CodeInsightTestCase {
@NonNls private static final String FILE_NOT_FOUND_MESSAGE = SystemInfo.isWindows ? "The system cannot find the file specified" : "No such file or directory";
public void testSchemaNoErrors1() throws Throwable {
perform("1.xsd", "");
}
public void testSchemaNoErrors2() throws Throwable {
perform("library.xsd", "");
}
public void testSchemaNoErrors3() throws Throwable {
perform("library.xml", "");
}
public void testSchemaNoErrors4() throws Throwable {
perform("library1.xml", "");
}
public void testSchemaErrors1() throws Throwable {
// till fixing Xerces
//perform("e1.xsd", " :12:62: src-resolve: Cannot resolve the name 'PurchaseOrderType' to a(n) 'type definition' component.");
}
public void testXInclude() throws Throwable {
perform("XInclude.xhtml", "xhtml1-transitional.xsd:(1483:51) ct-props-correct.5: Error for type '#AnonType_a'. Two attribute declarations, 'name' and 'id' have types which are derived from ID.\n" +
"(8:95) SchemeUnsupported: The XPointer scheme 'xpointer' is not supported.\n" +
"(8:95) Include operation failed, reverting to fallback. Resource error reading file as XML (href='x-head.html'). Reason: x-head.html (" + FILE_NOT_FOUND_MESSAGE + ")\n" +
"(8:95) An 'include' failed, and no 'fallback' element was found.",
null, null, true,
"reason: .*x-head.html",
"reason: x-head.html"
);
}
public void testXInclude2() throws Throwable {
perform("XInclude2.xhtml", "xhtml1-transitional.xsd:(1483:51) ct-props-correct.5: error for type '#anontype_a'. two attribute declarations, 'name' and 'id' have types which are derived from id.\n" +
"(6:95) schemeunsupported: the xpointer scheme 'xpointer' is not supported.\n" +
"(6:95) include operation failed, reverting to fallback. resource error reading file as xml (href='x-head.html'). reason: x-head.html (" + FILE_NOT_FOUND_MESSAGE + ")\n" +
"(6:95) an 'include' failed, and no 'fallback' element was found.",
null, null, true,
"reason: .*x-head.html",
"reason: x-head.html"
);
}
public void testExtDndNoErrors1() throws Throwable {
perform("ejbjar.xml", "");
}
public void testExtDndNoErrors2() throws Throwable {
perform("xhtml.xml", "");
}
public void testReferencingDtdIncludeFromExtResource() throws Throwable {
String[] urls = {"http://www.w3.org/TR/xhtml1/dtd/xhtml1-strict2.dtd",
"http://www.w3.org/TR/xhtml1/dtd/_xhtml-lat1.ent",
"http://www.w3.org/TR/xhtml1/dtd/_xhtml-symbol.ent",
"http://www.w3.org/TR/xhtml1/dtd/_xhtml-special.ent"
};
String[] pathes = {"xhtml1-strict2.dtd","xhtml-lat1.ent", "xhtml-symbol.ent", "xhtml-special.ent"};
perform("xhtml.xhtml", "", urls, pathes, false, null, null);
}
public void testXercesStackOverflow() throws Throwable {
perform(getTestName(false) + ".xml", "");
}
public void testSeveralImportsWithOneNamespace() throws Throwable {
System.setProperty(XmlResourceResolver.HONOUR_ALL_SCHEMA_LOCATIONS_PROPERTY_KEY, "true");
try {
String testName = getTestName(false);
String[] urls = {"","",""};
String[] pathes = {testName + "_product.xsd", testName + "_instrumentclassification.xsd", testName + "_instrumentreference.xsd"};
perform(testName + ".xml", "", urls, pathes, false, null, null);
}
finally {
System.setProperty(XmlResourceResolver.HONOUR_ALL_SCHEMA_LOCATIONS_PROPERTY_KEY, "");
}
}
public void testReferencingAnotherSchema() throws Throwable {
perform(
getTestName(false) + ".xml",
"ReferencingAnotherSchema2.xsd:(7:62) src-resolve: Cannot resolve the name 'MyComponentType' to a(n) 'type definition' component."
);
}
public void testSchemaWithVersion() throws Throwable {
perform(
getTestName(false) + ".xml",
"",
null, null, false, null, null
);
}
public void testFilteringErrors() throws Throwable {
String[] urls = {"urn:myschema"};
String[] pathes = {"po.xsd"};
perform("po.xml",
"po.xsd:(2:77) EmptyTargetNamespace: In schema document 'po.xsd', the value of the 'targetNamespace' attribute cannot be an empty string.\n" +
"po.xsd:(2:77) TargetNamespace.1: Expecting namespace 'urn:myschema', but the target namespace of the schema document is 'null'.\n" +
"(2:60) cvc-elt.1.a: Cannot find the declaration of element 'purchaseOrder'.", urls, pathes, false,
"'file[^']*'",
"'po.xsd'");
}
public void testIgnoredResource() throws Throwable {
String[] urls = {"http://www.w3.org/TR/xhtml1/dtd/xhtml1-strict2.dtd",
"http://www.w3.org/TR/xhtml1/dtd/_xhtml-lat1.ent",
"http://www.w3.org/TR/xhtml1/dtd/_xhtml-symbol.ent",
"http://www.w3.org/TR/xhtml1/dtd/_xhtml-special.ent"
};
ExternalResourceManagerExImpl.getInstanceEx().addIgnoredResources(Arrays.asList(urls), getTestRootDisposable());
perform("xhtml.xhtml", "");
}
public void testWebAppSchema() throws Throwable {
perform("web.xml", ""); //, new String[]{"http://java.sun.com/xml/ns/j2ee"}, new String[]{"j2ee_1_4.xsd"}, false);
}
public void testNoDtdOrSchema1() throws Throwable {
perform("novalidation.xml", "");
}
public void testNoDtdOrSchema2() throws Throwable {
perform("novalidationerror.xml", "(4:5) The element type \"c\" must be terminated by the matching end-tag \"</c>\".");
}
public void testExtDndErrors1() throws Throwable {
perform("ejbjar1.xml",
"(7:21) Element type \"escription\" must be declared.\n" +
"(20:17) The content of element type \"session\" must match \"(description?,display-name?,small-icon?,large-icon?,ejb-name,home?,remote?,local-home?,local?,ejb-class,session-type,transaction-type,env-entry*,ejb-ref*,ejb-local-ref*,security-role-ref*,security-identity?,resource-ref*,resource-env-ref*)\".");
}
public void testExtDndErrors2() throws Throwable {
perform("xhtml1.xml",
"(6:8) Element type \"bodyb\" must be declared.\n" +
"(9:8) The content of element type \"html\" must match \"(head,body)\".");
}
public void testExtResources() throws Throwable {
perform("xsl.xml", "", new String[] {"http://www.w3.org/1999/XSL/Transform"}, new String[] {"xsl.xsd"}, false);
}
public void testNoRouteToHostException() throws Throwable {
perform("NoRouteToHostException.xml", "(0:0) External resource http://aaa.bbb.ccc/x.ent is not registered", new String[] {"NoRouteToHostException.dtd"}, new String[] {"NoRouteToHostException.dtd"}, false);
}
public void testFatalProblem() throws Throwable {
// problem in dtd
perform(
"fatalError.xml",
"fatalError.dtd:(10:3) The markup in the document preceding the root element must be well-formed.",
new String[] {"http://www.w3.org/1999/XSL/Transform"},
new String[] {"fatalError.dtd"},
false
);
}
public void testRef() throws Throwable {
perform("cobb.xml", "(3:57) Attribute \"abstract\" with value \"\" must have a value from the list \"true false \".");
}
public void testJ2eeResources() throws Throwable {
perform("web_app.xml", "(32:15) cvc-complex-type.2.4.a: Invalid content was found starting with element '{\"http://java.sun.com/xml/ns/j2ee\":aaa}'. One of '{\"http://java.sun.com/xml/ns/j2ee\":description, \"http://java.sun.com/xml/ns/j2ee\":display-name, \"http://java.sun.com/xml/ns/j2ee\":icon, \"http://java.sun.com/xml/ns/j2ee\":distributable, \"http://java.sun.com/xml/ns/j2ee\":context-param, \"http://java.sun.com/xml/ns/j2ee\":filter, \"http://java.sun.com/xml/ns/j2ee\":filter-mapping, \"http://java.sun.com/xml/ns/j2ee\":listener, \"http://java.sun.com/xml/ns/j2ee\":servlet, \"http://java.sun.com/xml/ns/j2ee\":servlet-mapping, \"http://java.sun.com/xml/ns/j2ee\":session-config, \"http://java.sun.com/xml/ns/j2ee\":mime-mapping, \"http://java.sun.com/xml/ns/j2ee\":welcome-file-list, \"http://java.sun.com/xml/ns/j2ee\":error-page, \"http://java.sun.com/xml/ns/j2ee\":jsp-config, \"http://java.sun.com/xml/ns/j2ee\":security-constraint, \"http://java.sun.com/xml/ns/j2ee\":login-config, \"http://java.sun.com/xml/ns/j2ee\":security-role, \"http://java.sun.com/xml/ns/j2ee\":env-entry, \"http://java.sun.com/xml/ns/j2ee\":ejb-ref, \"http://java.sun.com/xml/ns/j2ee\":ejb-local-ref, \"http://java.sun.com/xml/ns/j2ee\":service-ref, \"http://java.sun.com/xml/ns/j2ee\":resource-ref, \"http://java.sun.com/xml/ns/j2ee\":resource-env-ref, \"http://java.sun.com/xml/ns/j2ee\":message-destination-ref, \"http://java.sun.com/xml/ns/j2ee\":message-destination, \"http://java.sun.com/xml/ns/j2ee\":locale-encoding-mapping-list}' is expected.");
}
//public void testJBossDeploymentStructureDescriptor() throws Throwable {
// perform("jboss-deployment-structure.xml", "", new String[] {"urn:jboss:deployment-structure:1.0"}, new String[] { "jboss-deployment-structure-1_0.xsd" }, false);
//}
public void testSchemaAutodetection() throws Throwable {
perform("nuancevoicexml-2-0.xml", "(0:0) External resource http://www.w3.org/2001/vxml is not registered\n" +
"(-1:-1) Premature end of file.");
}
public void testXsd() throws Throwable {
perform("test.xsd", "(11:59) cvc-complex-type.2.4.d: Invalid content was found starting with element 'attribute'. No child element is expected at this point.");
}
public void testXsd11Alternative() throws Throwable {
perform("Alternative.xsd", "(41:83) cvc-complex-type.2.4.a: Invalid content was found starting with element '{\"http://www.w3.org/2001/XMLSchema\":alternative}'. One of '{\"http://www.w3.org/2001/XMLSchema\":annotation, \"http://www.w3.org/2001/XMLSchema\":simpleType, \"http://www.w3.org/2001/XMLSchema\":complexType, \"http://www.w3.org/2001/XMLSchema\":unique, \"http://www.w3.org/2001/XMLSchema\":key, \"http://www.w3.org/2001/XMLSchema\":keyref}' is expected.");
ExternalResourceManagerEx.getInstanceEx().setXmlSchemaVersion(ExternalResourceManagerEx.XMLSchemaVersion.XMLSchema_1_1, getProject());
perform("Alternative.xsd", "XMLSchema.xsd:(936:30) rcase-Recurse.2: There is not a complete functional mapping between the particles.\n" +
"XMLSchema.xsd:(936:30) derivation-ok-restriction.5.4.2: Error for type 'all'. The particle of the type is not a valid restriction of the particle of the base.");
}
public void testRelativePath() throws Throwable {
perform("instances/enumerations.xml", "");
}
private void perform(String fileName, String message) throws Throwable {
perform(fileName,message,null,null, false);
}
private void perform(String fileName, String message, String[] urls, String[] files, boolean caseInsensitive) throws Throwable {
perform(fileName, message, urls, files, caseInsensitive, null, null);
}
private void perform(String fileName, String message, String[] urls, String[] files, boolean caseInsensitive, String pattern, String replacement) throws Throwable {
VirtualFile root = PsiTestUtil.createTestProjectStructure(
myProject, myModule, PlatformTestUtil.getCommunityPath().replace(File.separatorChar, '/') + "/xml/tests/testData/validateXml", myFilesToDelete
);
VirtualFile virtualFile = VfsUtil.findRelativeFile(root, fileName.split("/"));
if (urls != null && files != null) {
assertEquals(urls.length,files.length);
for(int i = 0; i< urls.length; ++i) {
final VirtualFile vFile = root.findChild(files[i]);
assertNotNull(files[i], vFile);
ExternalResourceManagerExImpl.registerResourceTemporarily(urls[i], vFile.getPath(), getTestRootDisposable());
}
}
PsiDocumentManager.getInstance(myProject).commitAllDocuments();
myFile = PsiManager.getInstance(myProject).findFile(virtualFile);
assertNotNull(myFile);
myEditor = createEditor(virtualFile);
assertNotNull(myEditor);
ValidateXmlActionHandler handler = new ValidateXmlActionHandler(true);
TestErrorReporter errorReporter = new TestErrorReporter(handler);
handler.setErrorReporter(errorReporter);
handler.doValidate((XmlFile)myFile);
String actual = "";
List errors = errorReporter.getErrors();
for (Iterator i = errors.iterator(); i.hasNext();) {
actual += i.next();
if (i.hasNext()) {
actual += "\n";
}
}
if (caseInsensitive) {
message = message.toLowerCase();
actual = actual.toLowerCase();
}
if (pattern != null && replacement != null) actual = actual.replaceAll(pattern, replacement);
assertEquals(message, actual);
}
@Override
protected void setUp() throws Exception {
super.setUp();
String BASE_PATH = PlatformTestUtil.getCommunityPath().replace(File.separatorChar, '/') + "/xml/tests/testData/xml/";
ExternalResourceManagerExImpl.registerResourceTemporarily("http://java.sun.com/dtd/ejb-jar_2_0.dtd",
BASE_PATH + "ejb-jar_2_0.dtd",
getTestRootDisposable());
ExternalResourceManagerExImpl.registerResourceTemporarily("http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd",
BASE_PATH + "web-app_2_4.xsd",
getTestRootDisposable());
ExternalResourceManagerExImpl.registerResourceTemporarily("http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd",
BASE_PATH + "jsp_2_0.xsd",
getTestRootDisposable());
ExternalResourceManagerExImpl.registerResourceTemporarily("http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd",
BASE_PATH + "j2ee_web_services_client_1_1.xsd",
getTestRootDisposable());
}
}
+15
View File
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Purchase order schema for Example.com.
Copyright 2000 Example.com. All rights reserved.
</xsd:documentation>
</xsd:annotation>
<!-- <xsd:element name="purchaseOrder" type="PurchaseOrderType"/> -->
</xsd:schema>
@@ -0,0 +1,61 @@
<?xml version="1.1" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="validationType" mixed="true">
<xs:sequence>
<xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="type" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="filter" />
<xs:enumeration value="options" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="filterValidateType">
<xs:simpleContent>
<xs:restriction base="validationType">
<xs:simpleType>
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="optionsValidateType" mixed="true">
<xs:complexContent>
<xs:extension base="validationType">
<xs:sequence>
<xs:element type="optionsType" name="options" minOccurs="1" maxOccurs="1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="validationsType">
<xs:sequence>
<xs:element type="validationType" name="validation">
<xs:alternative test="@type='filter'" type="filterValidateType" />
<xs:alternative test="@type='options'" type="optionsValidateType" />
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="optionsType">
<xs:sequence>
<xs:element type="optionType" name="option" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="optionType">
<xs:sequence>
<xs:element name="caption" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="value" type="xs:string" minOccurs="1" maxOccurs="1" />
</xs:sequence>
<xs:attribute type="xs:int" name="position" use="optional"/>
</xs:complexType>
</xs:schema>
@@ -0,0 +1,3 @@
<!ENTITY % zzz SYSTEM "http://aaa.bbb.ccc/x.ent">
%zzz;
<!ELEMENT a EMPTY>
@@ -0,0 +1,2 @@
<!DOCTYPE a SYSTEM "NoRouteToHostException.dtd">
<a />
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<Application
xmlns:iv="http://www.ivtest/iv"
xsi:noNamespaceSchemaLocation="ReferencingAnotherSchema.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ivtest/iv ReferencingAnotherSchema2.xsd">
<Window>
<Component/>
<Label/>
<iv:InfiView>
<iv:Component/>
<iv:viewport/>
</iv:InfiView>
</Window>
</Application>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:iv="http://www.ivtest/iv">
<xs:import namespace="http://www.ivtest/iv" schemaLocation="ReferencingAnotherSchema2.xsd"/>
<xs:element name="Application">
<xs:complexType>
<xs:sequence>
<xs:element ref="Window"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Window">
<xs:complexType>
<xs:sequence>
<xs:element ref="Component"/>
<xs:element ref="Label"/>
<xs:element ref="iv:InfiView"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Label">
<xs:complexType/>
</xs:element>
<xs:element name="Component">
<xs:complexType id="MyComponentType"/>
</xs:element>
</xs:schema>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.ivtest/iv" xmlns:iv="http://www.ivtest/iv">
<xs:import schemaLocation="ReferencingAnotherSchema.xsd"/>
<xs:element name="InfiView">
<xs:complexType>
<xs:sequence>
<xs:element name="Component" type="MyComponentType"/>
<xs:element ref="iv:viewport"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="viewport">
<xs:complexType/>
</xs:element>
<xs:complexType name="MyComponentType"/>
</xs:schema>
@@ -0,0 +1,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="/">
<xsl:message select="$foo" />
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,6 @@
<prod:asset id="string" xmlns:prod="product:shared" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="product:shared SeveralImportsWithOneNamespace_product.xsd">
<prod:instrumentId domain="string" category="string">e gero</prod:instrumentId>
<prod:assetClass>CREDIT_DERIVATIVE</prod:assetClass>
<prod:description>string</prod:description>
</prod:asset>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://instrumentreference" targetNamespace="http://instrumentreference" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:simpleType name="AssetClassEnum">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="BOND"/>
<xsd:enumeration value="COMMODITY"/>
<xsd:enumeration value="CREDIT_DERIVATIVE"/>
<xsd:enumeration value="CURRENCY"/>
<xsd:enumeration value="EQUITY"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://instrumentreference" targetNamespace="http://instrumentreference" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:complexType name="InstrumentId" mixed="true">
<xsd:attribute name="domain" type="xsd:string" use="required"/>
<xsd:attribute name="category" type="xsd:string" use="optional"/>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="product:shared" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ir="http://instrumentreference" targetNamespace="product:shared" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace="http://instrumentreference" schemaLocation="SeveralImportsWithOneNamespace_instrumentclassification.xsd"/>
<xsd:import namespace="http://instrumentreference" schemaLocation="SeveralImportsWithOneNamespace_instrumentreference.xsd"/>
<xsd:complexType name="Asset">
<xsd:sequence>
<xsd:element name="instrumentId" type="ir:InstrumentId" maxOccurs="unbounded"/>
<xsd:element name="assetClass" type="ir:AssetClassEnum"/>
<xsd:element name="description" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<xsd:element name="asset" type="Asset"/>
</xsd:schema>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="windows-1251"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"
xmlns:xi="http://www.w3.org/2001/XInclude">
<head>
<title>Test</title>
<xi:include href="x-head.html" xpointer="xpointer(/head/*|/head/text()|/head/comment())"/>
</head>
<body>
<div></div>
</body>
</html>
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="windows-1251"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"
xmlns:xi="http://www.w3.org/2001/XInclude" xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<head>
<title>Test</title>
<xi:include href="x-head.html" xpointer="xpointer(/head/*|/head/text()|/head/comment())"/>
</head>
<body>
<div></div>
</body>
</html>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<gene xmlns="http://www.pharmgkb.org/schema/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pharmgkb.org/schema/ ./XercesStackOverflow.xsd">
<sequence>TCAAACTCCAAATGACTCCACCAAGATGAAAGACACCAAGGCATGCTGGGAACTGAATTTTATAAATTAACTTTATTACAAAAAGCAAAATGTTAGTTTCTCATTGTGAGTGATTCAAGAAAACAACGGTAACAGCCCTGGCAGGAGCTGGGACCAGGATACCAGTATGCAGGCTGAGGGGTCAAAGGCCAGGCTCAGGAGCGGGCTGACAGGCACTGATTCACAACCTCCAAGAGGTGGGTGTTCTCCAGGGCAGCTGCCACCCGCTCCTTATCTGCAAGTTGCTTGTTCACTAGGTGGGAAGAAGGGTGTGGGGAAGGCAGAGTCAAAGCTAGGCTCTGGCCAGAGTGCTAGCCAGCCCTACCTCTGAACCTCTATATAGGATATGTCCCCCGCAGCAACAGAGCCCTCCTGTCACCTCCTTCCCAGGACCCCACATATTGATCAGGCTACTTCAACCACCTGAGCCCACCTAATCTGCCTTCTTAGGATCCCTCCCCCTGGCTGCCTCCTGCGCTGCTGAAGCCTGACACACTCTGGTCCTGTATATTTGGTGAGAGGGGATTTGGGAGAAGAGGACATGGTAAGCAAAGGAGAGTCTTCTCAGGCCAGCTTCGGTCTAGGCTATAACCCATACTGAGGAGTCTCTGGCAATTTCACTCACACAGTTACCCATCTCCAGTCTTGCCCATAGACTCCTGTGCAAGGGGGAAGCCTCAGACTGCTTAGGGGGTGCCCGGGCCAACACCCTCACCACCAGTCCACACTTACCTGCATGCTCTGAGGCATGGGTCCCCGGAGTAATGTGCACGTCCATCTGGGAGGGAGATAACCAGGGCCTGAACACCCACCCACCGACCCACACTTTTCCCTGCAGCCCCCAGACCCTCAGGCACCATCTCCAGCTGATCCTTCCTCCTAATCATGCCTTTGGACTCTGGCCCTTCCGTTACACCCCAAACCCATCCACAGGTATTCCAATTCTTTTTTTTTTTCCAAGACTGAGTCTTGCTCTGTTGCCCAGGCTGGAGTGCAGCAGCGCAATCTCGGCTCACTGCAACCTCTGTCTCCCAGGTTCAATTTGATTCTCCTTCCTCAGCCACCCGTGTAGCTGGGACCACAGGCACACACCACCACGCCCCACTAATTTTTGTATTTTTAGTAGAGATGAGATTTCACCATGTTGGCCAGGCTGGTCTCCAACTCCTAACCTCAGATGATCCACCCGCCTCAGCCTCCCAAAGTGCTGGGATTACAGGCGTGAGCCACCGCGCCCGGCCCTAGCTATTCCAATTCTATCCAAAGAACTGGCCCACTACTGTTGATTTAAAGGCCTGCCTGTGCCCCACCCCTGGTCCAAACCCATCTGCCGCTCCCTACTGCCCTTCCTGCCACACTCTTCAATACTTTTCTCCACTTTCCAGCTCAGATCTTTATTCTTGTCACATCGACTTGGAAAGCTTCCTCCCAGTTTCCTCTCTGCTAATGGGGATCCTTCCAGGCCCCACTCTGATGTCCTATCCATGTTCATGCTCTCCCAGTCCCCATCCTCAGCAGTAGACCCTCAATGCCTGGTCTCACTCCCGGGGCTCAGCTCCAACTGACCTTGAAACGCTGAGGAAGGGAGCGCAGAAGCTTGACCTTGATGGACAGACCAATAAGGGTGGCCATGCTGCAGTGCGGAATGGTTGGTGTGAAAGCCACAGCCACTGTACTCTCGGGGTCGCTAACCTGGTTGTGGAGGAGAGATGTCAAGAGTCAACCACCCTCAGCCCAAGGTCCCTCTTCTTAGTTTGTTGTTTTGGGCAAATCATCCAACTTCTATGGGCCTCAGTTTCAACACCCATAAAATAGGCACAACAATCTCCCTCCCCAAAGATACCCTTCGGTGTTCGTGAGCATAGAGCACGCCAGCTCCTGCTGCACAGAAACCTTTCTGACTCTCTGGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATTTTTCAAACTCCAAATGACTCCACCAAGATGAAAGACACCAAGGCATGCTGGGAACTGAATTTTATAAATTAACTTTATTACAAAAAGCAAAATGTTAGTTTCTCATTGTGAGTGATTCAAGAAAACAACGGTAACAGCCCTGGCAGGAGCTGGGACCAGGATACCAGTATGCAGGCTGAGGGGTCAAAGGCCAGGCTCAGGAGCGGGCTGACAGGCACTGATTCACAACCTCCAAGAGGTGGGTGTTCTCCAGGGCAGCTGCCACCCGCTCCTTATCTGCAAGTTGCTTGTTCACTAGGTGGGAAGAAGGGTGTGGGGAAGGCAGAGTCAAAGCTAGGCTCTGGCCAGAGTGCTAGCCAGCCCTACCTCTGAACCTCTATATAGGATATGTCCCCCGCAGCAACAGAGCCCTCCTGTCACCTCCTTCCCAGGACCCCACATATTGATCAGGCTACTTCAACCACCTGAGCCCACCTAATCTGCCTTCTTAGGATCCCTCCCCCTGGCTGCCTCCTGCGCTGCTGAAGCCTGACACACTCTGGTCCTGTATATTTGGTGAGAGGGGATTTGGGAGAAGAGGACATGGTAAGCAAAGGAGAGTCTTCTCAGGCCAGCTTCGGTCTAGGCTATAACCCATACTGAGGAGTCTCTGGCAATTTCACTCACACAGTTACCCATCTCCAGTCTTGCCCATAGACTCCTGTGCAAGGGGGAAGCCTCAGACTGCTTAGGGGGTGCCCGGGCCAACACCCTCACCACCAGTCCACACTTACCTGCATGCTCTGAGGCATGGGTCCCCGGAGTAATGTGCACGTCCATCTGGGAGGGAGATAACCAGGGCCTGAACACCCACCCACCGACCCACACTTTTCCCTGCAGCCCCCAGACCCTCAGGCACCATCTCCAGCTGATCCTTCCTCCTAATCATGCCTTTGGACTCTGGCCCTTCCGTTACACCCCAAACCCATCCACAGGTATTCCAATTCTTTTTTTTTTTCCAAGACTGAGTCTTGCTCTGTTGCCCAGGCTGGAGTGCAGCAGCGCAATCTCGGCTCACTGCAACCTCTGTCTCCCAGGTTCAATTTGATTCTCCTTCCTCAGCCACCCGTGTAGCTGGGACCACAGGCACACACCACCACGCCCCACTAATTTTTGTATTTTTAGTAGAGATGAGATTTCACCATGTTGGCCAGGCTGGTCTCCAACTCCTAACCTCAGATGATCCACCCGCCTCAGCCTCCCAAAGTGCTGGGATTACAGGCGTGAGCCACCGCGCCCGGCCCTAGCTATTCCAATTCTATCCAAAGAACTGGCCCACTACTGTTGATTTAAAGGCCTGCCTGTGCCCCACCCCTGGTCCAAACCCATCTGCCGCTCCCTACTGCCCTTCCTGCCACACTCTTCAATACTTTTCTCCACTTTCCAGCTCAGATCTTTATTCTTGTCACATCGACTTGGAAAGCTTCCTCCCAGTTTCCTCTCTGCTAATGGGGATCCTTCCAGGCCCCACTCTGATGTCCTATCCATGTTCATGCTCTCCCAGTCCCCATCCTCAGCAGTAGACCCTCAATGCCTGGTCTCACTCCCGGGGCTCAGCTCCAACTGACCTTGAAACGCTGAGGAAGGGAGCGCAGAAGCTTGACCTTGATGGACAGACCAATAAGGGTGGCCATGCTGCAGTGCGGAATGGTTGGTGTGAAAGCCACAGCCACTGTACTCTCGGGGTCGCTAACCTGGTTGTGGAGGAGAGATGTCAAGAGTCAACCACCCTCAGCCCAAGGTCCCTCTTCTTAGTTTGTTGTTTTGGGCAAATCATCCAACTTCTATGGGCCTCAGTTTCAACACCCATAAAATAGGCACAACAATCTCCCTCCCCAAAGATACCCTTCGGTGTTCGTGAGCATAGAGCACGCCAGCTCCTGCTGCACAGAAACCTTTCTGACTCTCTGGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATTTT</sequence>
</gene>
@@ -0,0 +1,52 @@
<?xml version="1.0"?>
<xsd:schema version="3.0"
targetNamespace="http://www.pharmgkb.org/schema/"
xmlns="http://www.pharmgkb.org/schema/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
elementFormDefault="qualified">
<!-- IupacDnaSequenceType -->
<xsd:simpleType name="IupacDnaSequenceType">
<xsd:annotation>
<xsd:documentation>
A IUPAC DNA sequence. The valid sequence alphabet is A, T, C, G
and the IUPAC ambiguity codes. See
http://www.ncbi.nlm.nih.gov/SNP/iupac.html for a list of the
IUPAC ambiguity codes and their definitions.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:minLength value="1" />
<xsd:pattern value="[AaBbCcDdGgHhKkMmNnTtUuRrSsVvWwYy]+" />
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="gene">
<xsd:annotation>
<xsd:documentation>
This type describes a gene.
</xsd:documentation>
</xsd:annotation>
<!-- elements -->
<xsd:complexType>
<xsd:sequence>
<xsd:element name="sequence" type="IupacDnaSequenceType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
The sequence for this gene.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
+3
View File
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE domain PUBLIC "-//AMS::core//DTD metadata domain 3.7.2//EN" "tmp/test.dtd">
<domain name="DemonstratesBooleanTProblem" abstract=""/>
+15
View File
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Purchase order schema for Example.com.
Copyright 2000 Example.com. All rights reserved.
</xsd:documentation>
</xsd:annotation>
<xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
</xsd:schema>
+23
View File
@@ -0,0 +1,23 @@
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd" >
<ejb-jar>
<description>Sample EJB provided by Atinav</description>
<display-name>XASampleJar</display-name>
<enterprise-beans>
<session>
<description></description>
<display-name>EnterpriseBean</display-name>
<ejb-name>EnterpriseBean</ejb-name>
<home>SamplePrograms.xa.AvenirHome</home>
<remote>SamplePrograms.xa.AvenirRemote</remote>
<ejb-class>SamplePrograms.xa.AvenirEJB</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
<resource-ref>
<res-ref-name>AvenirSample</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
</enterprise-beans>
<assembly-descriptor/>
</ejb-jar>
@@ -0,0 +1,23 @@
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd" >
<ejb-jar>
<description>Sample EJB provided by Atinav</description>
<display-name>XASampleJar</display-name>
<enterprise-beans>
<session>
<escription></escription>
<display-name>EnterpriseBean</display-name>
<ejb-name>EnterpriseBean</ejb-name>
<home>SamplePrograms.xa.AvenirHome</home>
<remote>SamplePrograms.xa.AvenirRemote</remote>
<ejb-class>SamplePrograms.xa.AvenirEJB</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
<resource-ref>
<res-ref-name>AvenirSample</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
</enterprise-beans>
<assembly-descriptor/>
</ejb-jar>
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified"
elementFormDefault="qualified">
<xsd:element name="enumerations" type="enumerationsType">
<xsd:annotation>
<xsd:documentation>
Example enumerations:
<ol>
<li>
<strong>enumeration</strong>:
a simple (disallows annotations), closed (is not extensible) enumeration
</li>
<li>
<strong>enumerationWithAttributes</strong>:
a complex (allows annotations), closed (is not extensible) enumeration
</li>
<li>
<strong>openEnumeration</strong>:
a simple (disallows annotations), open (is extensible) enumeration
</li>
<li>
<strong>openEnumerationWithAttributes</strong>:
a complex (allows annotations), open (is extensible) enumeration
</li>
</ol>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="enumerationsType">
<xsd:sequence>
<xsd:element name="enumeration" type="enumerationType"
maxOccurs="unbounded" minOccurs="0"/>
<xsd:element name="enumerationWithAttributes" type="enumerationWithAttributesType"
maxOccurs="unbounded" minOccurs="0"/>
<xsd:element name="openEnumeration" type="openEnumerationType"
maxOccurs="unbounded" minOccurs="0"/>
<xsd:element name="openEnumerationWithAttributes" type="openEnumerationWithAttributesType"
maxOccurs="unbounded" minOccurs="0"/>
<xsd:element name="openEnumerationWithSimpleTypeChildUnion"
type="openEnumerationWithSimpleTypeChildUnionType"
maxOccurs="unbounded" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="enumerationType">
<xsd:annotation>
<xsd:documentation>
a simple (disallows annotations), closed (is not extensible) enumeration
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="A"/>
<xsd:enumeration value="B"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="enumerationWithAttributesType">
<xsd:annotation>
<xsd:documentation>
a complex (allows annotations), closed (is not extensible) enumeration
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="enumerationType">
<xsd:attributeGroup ref="enumerationAttributeGroup"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:attributeGroup name="enumerationAttributeGroup">
<xsd:annotation>
<xsd:documentation>
a reusable group of attributes for extending simple enumerations to make complex enumerations
</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="id" type="xsd:ID"/>
<xsd:attribute name="idref" type="xsd:IDREF"/>
</xsd:attributeGroup>
<xsd:simpleType name="openEnumerationType">
<xsd:annotation>
<xsd:documentation>
a simple (disallows annotations), open (is extensible) enumeration
</xsd:documentation>
</xsd:annotation>
<xsd:union memberTypes="xsd:int xsd:boolean enumerationType"/>
</xsd:simpleType>
<xsd:simpleType name="openEnumerationWithSimpleTypeChildUnionType">
<xsd:annotation>
<xsd:documentation>
a simple (disallows annotations), open (is extensible) enumeration
</xsd:documentation>
</xsd:annotation>
<xsd:union memberTypes="xsd:int">
<xsd:simpleType>
<xsd:annotation>
<xsd:documentation>
a simple (disallows annotations), closed (is not extensible) enumeration
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="A"/>
<xsd:enumeration value="B"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType>
<xsd:annotation>
<xsd:documentation>
a simple (disallows annotations), closed (is not extensible) enumeration
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="C"/>
<xsd:enumeration value="D"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
<xsd:complexType name="openEnumerationWithAttributesType">
<xsd:annotation>
<xsd:documentation>
a complex (allows annotations), open (is extensible) enumeration
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="openEnumerationType">
<xsd:attributeGroup ref="enumerationAttributeGroup"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This DTD has been developed in order to provide entry helpers for XSLT documents
conformant to the W3C XSLT 1.0 Recommendation.
© Altova GmbH, 1999-2002.
-->
<!ENTITY % xhtml-dtd PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"xhtml1-transitional.dtd">
%xhtml-dtd;
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
</xsl:template>
<xsl:template match="/">
</xsl:template>
<xsl:template match="/">
</xsl:template>
<xsl:template match="/">
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<enumerations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../enumerations.xsd">
<enumeration>A</enumeration>
<enumeration>B</enumeration>
<enumerationWithAttributes id="ea">A</enumerationWithAttributes>
<enumerationWithAttributes id="eb" idref="oeb">B</enumerationWithAttributes>
<openEnumeration>A</openEnumeration>
<openEnumeration>B</openEnumeration>
<openEnumeration>777</openEnumeration>
<openEnumeration>true</openEnumeration>
<openEnumerationWithAttributes id="oea">A</openEnumerationWithAttributes>
<openEnumerationWithAttributes id="oeb" idref="eb">B</openEnumerationWithAttributes>
<openEnumerationWithAttributes id="oe42">42</openEnumerationWithAttributes>
<openEnumerationWithSimpleTypeChildUnion>C</openEnumerationWithSimpleTypeChildUnion>
<openEnumerationWithSimpleTypeChildUnion>A</openEnumerationWithSimpleTypeChildUnion>
<openEnumerationWithSimpleTypeChildUnion>111</openEnumerationWithSimpleTypeChildUnion>
</enumerations>
@@ -0,0 +1,581 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:jboss:deployment-structure:1.0"
xmlns="urn:jboss:deployment-structure:1.0"
elementFormDefault="unqualified"
attributeFormDefault="unqualified"
version="1.0">
<!-- Root element -->
<xsd:element name="jboss-deployment-structure" type="jbossStructureType">
<xsd:annotation>
<xsd:documentation>
Root element for a a jboss-structure file.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="jbossStructureType">
<xsd:annotation>
<xsd:documentation>
The jboss structure declaration type; contains deployments and additional modules.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="ear-subdeployments-isolated" type="xsd:boolean" minOccurs="0" maxOccurs="1" >
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Flag indicating whether each of the subdeployments within a .ear can access classes belonging to
another subdeployment within the same .ear. Setting this to false, allows the subdeployments to
see classes belonging to other subdeployments within the .ear.
For example:
myapp.ear
|
|--- web.war
|
|--- ejb1.jar
|
|--- ejb2.jar
If the ear-subdeployments-isolated is set to false, then the classes in web.war can access classes
belonging to ejb1.jar and ejb2.jar. Similarly, classes from ejb1.jar can access classes from ejb2.jar
(and vice-versa).
*Note that this flag, has no effect on the isolated classloader of the .war file(s). i.e. irrespective
of whether this flag is set to true or false, the .war within a .ear will have a isolated classloader
and other subdeployments within that .ear will not be able to access classes from that .war. This is
as per spec*
</documentation>
</annotation>
</xsd:element>
<xsd:element name="deployment" type="deploymentType" minOccurs="0" maxOccurs="1" >
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Element that corresponds to a deployment. This is used to customise
class loading for a deployment or a sub deployment.
</documentation>
</annotation>
</xsd:element>
<xsd:element name="sub-deployment" type="deploymentType" minOccurs="0" maxOccurs="unbounded" >
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Element that corresponds to a deployment. This is used to customise
class loading for a deployment or a sub deployment.
</documentation>
</annotation>
</xsd:element>
<xsd:element name="module" type="moduleType" minOccurs="0" maxOccurs="unbounded" >
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Additional module declaration. This can be used to create additional modules
from resource roots inside or outside the deployment.
</documentation>
</annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="deploymentType">
<xsd:annotation>
<xsd:documentation>
The declaration type; contains additional dependencies and resources.
</xsd:documentation>
</xsd:annotation>
<xsd:all>
<xsd:element name="exports" type="filterType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Lists filter expressions to apply to the export filter of the local resources of this module
(optional). By default, everything is exported. If filter expressions are provided, the default
action is to accept all paths if no filters match.
</documentation>
</annotation>
</xsd:element>
<xsd:element name="dependencies" type="dependenciesType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Lists the dependencies of this module (optional).
</documentation>
</annotation>
</xsd:element>
<xsd:element name="exclusions" type="exclusionsType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Lists the excluded module dependencies.
</documentation>
</annotation>
</xsd:element>
<xsd:element name="resources" type="resourcesType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Lists the resource roots of this module (optional).
</documentation>
</annotation>
</xsd:element>
<xsd:element name="transformers" type="transformerSetType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Lists the class file transformers that should be applied for classes loaded by this module.
</documentation>
</annotation>
</xsd:element>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="subDeploymentType">
<xsd:complexContent>
<xsd:extension base="deploymentType">
<xsd:attribute name="name" type="xsd:string" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The deployment name.
</documentation>
</annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="moduleType">
<xsd:annotation>
<xsd:documentation>
The module declaration type; contains dependencies and resources.
</xsd:documentation>
</xsd:annotation>
<xsd:all>
<xsd:element name="exports" type="filterType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Lists filter expressions to apply to the export filter of the local resources of this module
(optional). By default, everything is exported. If filter expressions are provided, the default
action is to accept all paths if no filters match.
</documentation>
</annotation>
</xsd:element>
<xsd:element name="dependencies" type="dependenciesType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Lists the dependencies of this module (optional).
</documentation>
</annotation>
</xsd:element>
<xsd:element name="resources" type="resourcesType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Lists the resource roots of this module (optional).
</documentation>
</annotation>
</xsd:element>
</xsd:all>
<xsd:attribute name="name" type="moduleNameType" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The name of this module (required).
</documentation>
</annotation>
</xsd:attribute>
<xsd:attribute name="slot" type="moduleSlotType" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The version slot of this module (optional).
</documentation>
</annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:simpleType name="moduleNameType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A module name, which consists of one or more dot (.)-separated segments. Each segment must begin and end
with an alphanumeric or underscore (_), and may otherwise contain alphanumerics, underscores, and hyphens
(-).
</documentation>
</annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[a-zA-Z0-9_]([-a-zA-Z0-9_]*[a-zA-Z0-9_])?(\.[a-zA-Z0-9_]([-a-zA-Z0-9_]*[a-zA-Z0-9_])?)*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="moduleSlotType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A module version slot. A slot may consist of one or more alphanumerics, hyphens (-), underscores (_),
plus signs (+), asterisks (*), or dots (.).
</documentation>
</annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[-a-zA-Z0-9_+*.]+"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="dependenciesType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A list of zero or more module dependencies.
</documentation>
</annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="module" type="moduleDependencyType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A specified module dependency.
</documentation>
</annotation>
</xsd:element>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="moduleDependencyType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A single module dependency expression.
</documentation>
</annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="exports" type="filterType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A filter used to restrict what packages or directories from this dependency are re-exported by
this module. See also the "export" and "services" attributes. The default action of this filter
list is controlled by the value of the "export" attribute. Regardless of the setting of these
attributes, this filter always behaves as if it has a final entry which rejects META-INF and
all of its subdirectories.
</documentation>
</annotation>
</xsd:element>
<xsd:element name="imports" type="filterType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A filter used to restrict what packages or directories from this dependency are visible to this
module. See also the "services" attribute. The default action of this filter list is to reject
a path if not matched.
</documentation>
</annotation>
</xsd:element>
</xsd:choice>
<xsd:attribute name="name" type="moduleNameType" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The dependency module name (required).
</documentation>
</annotation>
</xsd:attribute>
<xsd:attribute name="slot" type="moduleSlotType" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The dependency module version slot (optional).
</documentation>
</annotation>
</xsd:attribute>
<xsd:attribute name="export" type="xsd:boolean" use="optional" default="false">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Specifies whether this module dependency is re-exported by default (default is "false"). Setting
this attribute to true sets the default action for the export filter list to "accept"; leaving it
as false sets the default action to "reject". Thus you can still export dependency resources even
if this attribute is false by listing explicit paths for the export list.
</documentation>
</annotation>
</xsd:attribute>
<xsd:attribute name="services" type="serviceDispositionType" use="optional" default="none">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Specifies whether and how services found in this dependency are used (default is "none"). Specifying
a value of "import" for this attribute is equivalent to adding a filter at the end of the import
filter list which includes the META-INF/services path from the dependency module. Setting a value
of "export" for this attribute is equivalent to the same action on the export filter list.
</documentation>
</annotation>
</xsd:attribute>
<xsd:attribute name="optional" type="xsd:boolean" use="optional" default="false">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Specifies whether this dependency is optional (defaults to false). An optional dependency will not
cause the module to fail to load if not found; however if the module is added later, it will not be
retroactively linked into this module's dependency list.
</documentation>
</annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="exclusionsType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A list of zero or more excluded module dependencies.
</documentation>
</annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="module" type="moduleExclusionType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A specified module exclusion.
</documentation>
</annotation>
</xsd:element>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="moduleExclusionType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A single module dependency exclusion.
</documentation>
</annotation>
<xsd:attribute name="name" type="moduleNameType" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The excluded module name (required).
</documentation>
</annotation>
</xsd:attribute>
<xsd:attribute name="slot" type="moduleSlotType" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The excluded module version slot (optional).
</documentation>
</annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:simpleType name="serviceDispositionType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The requested behavior for service handling on a dependency.
</documentation>
</annotation>
<xsd:restriction base="xsd:token">
<xsd:enumeration value="none">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Do not import or export services from this dependency.
</documentation>
</annotation>
</xsd:enumeration>
<xsd:enumeration value="import">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Import, but do not re-export, services from this dependency.
</documentation>
</annotation>
</xsd:enumeration>
<xsd:enumeration value="export">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Import and re-export services found in this dependency.
</documentation>
</annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="classNameType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A class name.
</documentation>
</annotation>
<xsd:attribute name="name" type="xsd:string" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The class name.
</documentation>
</annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="pathType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A filesystem path name.
</documentation>
</annotation>
<xsd:attribute name="name" type="xsd:string" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The path name.
</documentation>
</annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="resourcesType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A list of zero or more resource roots for this deployment.
</documentation>
</annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="resource-root" type="resourceType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A resource root within this deployment.
</documentation>
</annotation>
</xsd:element>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="resourceType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A resource root within a deployment.
</documentation>
</annotation>
<xsd:all>
<xsd:element name="filter" type="filterType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A path filter specification for this resource root (optional). By default all paths are accepted.
</documentation>
</annotation>
</xsd:element>
</xsd:all>
<xsd:attribute name="name" type="xsd:string" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The name of this resource root (optional). If not specified, defaults to the value of the path
attribute.
</documentation>
</annotation>
</xsd:attribute>
<xsd:attribute name="path" type="xsd:string" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The path of this resource root, relative to the path in which the module.xml file is found.
</documentation>
</annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="filterType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A filter specification, consisting of zero or more filter items.
</documentation>
</annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="include" type="pathSpecType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A path to include. The path value can be a path name or a "glob" which may include the special
wildcards "*", "**", and "?".
</documentation>
</annotation>
</xsd:element>
<xsd:element name="exclude" type="pathSpecType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A path to exclude. The path value can be a path name or a "glob" which may include the special
wildcards "*", "**", and "?".
</documentation>
</annotation>
</xsd:element>
<xsd:element name="include-set" type="pathSetType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A set of literal path names to include. Wildcards are not supported.
</documentation>
</annotation>
</xsd:element>
<xsd:element name="exclude-set" type="pathSetType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A set of literal path names to exclude. Wildcards are not supported.
</documentation>
</annotation>
</xsd:element>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="pathSpecType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A path specification type, which may include wildcards.
</documentation>
</annotation>
<xsd:attribute name="path" type="xsd:string" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The path name, which can be a literal path name or it may include the special wildcards "*", "**",
and "?".
</documentation>
</annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="pathSetType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A set of literal path names which can be used for efficient matching against multiple possible values.
</documentation>
</annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="path" type="pathType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The path name to include in the set.
</documentation>
</annotation>
</xsd:element>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="transformerSetType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A list of java.lang.instrument.ClassFileTransformer implementations that will be applied at classloading
</documentation>
</annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="transformer" type="transformerType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The transformer class to include in the set.
</documentation>
</annotation>
</xsd:element>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="transformerType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A java.lang.instrument.ClassFileTransformer that will be applied at classloading
</documentation>
</annotation>
<xsd:attribute name="class" type="xsd:string" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The class name of the transformer
</documentation>
</annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
<deployment>
<exclusions>
<module name="org.hibernate"/>
</exclusions>
</deployment>
</jboss-deployment-structure>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<book isbn="0836217462"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="library.xsd">
<title>Being a Dog Is a Full-Time Job</title>
<author>Charles M. Schulz</author>
<character>
<name>Snoopy</name>
<friend-of>Peppermint Patty</friend-of>
<since>1950-10-04</since>
<qualification>
extroverted beagle
</qualification>
</character>
<character>
<name>Peppermint Patty</name>
<since>1966-08-22</since>
<qualification>bold, brash and tomboyish</qualification>
</character>
</book>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="book">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
<xs:element name="character" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="friend-of" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="since" type="xs:date"/>
<xs:element name="qualification" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="isbn" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<lib:book isbn="0836217462"
xmlns:lib="http://example.org/ns/books/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://example.org/ns/books/ library1.xsd">
<title>Being a Dog Is a Full-Time Job</title>
<author>Charles M. Schulz</author>
<character>
<name>Snoopy</name>
<friend-of>Peppermint Patty</friend-of>
<since>1950-10-04</since>
<qualification>
extroverted beagle
</qualification>
</character>
<character>
<name>Peppermint Patty</name>
<since>1966-08-22</since>
<qualification>bold, brash and tomboyish</qualification>
</character>
</lib:book>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org/ns/books/">
<xs:element name="book">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
<xs:element name="character" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="friend-of" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="since" type="xs:date"/>
<xs:element name="qualification" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="isbn" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>
@@ -0,0 +1,5 @@
<a>
<b>
<c></c>
</b>
</a>
@@ -0,0 +1,5 @@
<a>
<b>
<c>
</b>
</a>
@@ -0,0 +1,654 @@
<!--
VoiceXML 2.0 DTD (20020327)
Copyright 1998-2002 W3C (MIT, INRIA, Keio), All Rights Reserved.
Permission to use, copy, modify and distribute the VoiceXML DTD and
its accompanying documentation for any purpose and without fee is
hereby granted in perpetuity, provided that the above copyright
notice and this paragraph appear in all copies.
The copyright holders make no representation about the suitability
of the DTD for any purpose. It is provided "as is" without expressed
or implied warranty.
-->
<!ENTITY % custom-elements "nuance:send">
<!ENTITY % bargeintype "( speech | hotword )">
<!ENTITY % boolean "(true|false)">
<!ENTITY % content.type "CDATA">
<!ENTITY % duration "CDATA">
<!ENTITY % event.handler "catch | help | noinput | nomatch | error">
<!ENTITY % event.name "NMTOKEN">
<!ENTITY % event.names "NMTOKENS">
<!-- addition of enumerate and value elements as 'allowed-within-sentence'
audio elements. Note that for the VWS parser, this entity must be declared
before it is reference within the entity below. -->
<!ENTITY % audio "#PCDATA | audio | enumerate | value">
<!-- <debug> is a deprecated version of the <log> tag. -->
<!-- definitions adapted from SSML 1.0 DTD -->
<!-- These prompt playback entities are defined here because they are needed
for defining executable content -->
<!ENTITY % structure "paragraph | p | sentence | s">
<!ENTITY % sentence-elements "break | emphasis | mark | phoneme | prosody |
say-as | voice | sub">
<!ENTITY % allowed-within-sentence " %audio; | %sentence-elements; ">
<!ENTITY % executable.content "%allowed-within-sentence; | assign | clear | %custom-elements; | disconnect | exit
| goto | if | log | prompt | reprompt | return | script | %structure; | submit | throw | var | debug">
<!ENTITY % expression "CDATA">
<!ENTITY % variable.name "NMTOKEN">
<!ENTITY % variable.names "CDATA">
<!ENTITY % integer "CDATA">
<!ENTITY % item.attrs "name %variable.name; #IMPLIED
cond %expression; #IMPLIED
expr %expression; #IMPLIED ">
<!ENTITY % uri "CDATA">
<!ENTITY % cache.attrs "fetchhint (prefetch|safe) #IMPLIED
fetchtimeout %duration; #IMPLIED
maxage %integer; #IMPLIED
maxstale %integer; #IMPLIED">
<!ENTITY % next.attrs "next %uri; #IMPLIED
expr %expression; #IMPLIED ">
<!ENTITY % submit.attrs "method (get|post) 'get'
enctype %content.type; 'application/x-www-form-urlencoded'
namelist %variable.names; #IMPLIED">
<!ENTITY % throw.attrs "event %event.name; #IMPLIED
eventexpr %expression; #IMPLIED
message CDATA #IMPLIED
messageexpr %expression; #IMPLIED">
<!ENTITY % variable "block | field | var">
<!--================================= Root ================================-->
<!ELEMENT vxml (%event.handler; | form | link | menu | meta |
property | script | var)*>
<!ENTITY % two-zero "(2.0)">
<!ATTLIST vxml
application %uri; #IMPLIED
base %uri; #IMPLIED
xml:lang NMTOKENS #IMPLIED
xmlns CDATA #FIXED "http://www.w3.org/2001/vxml"
xmlns:nuance CDATA #FIXED "http://www.nuance.com"
xsi:schemaLocation CDATA #IMPLIED
version %two-zero; #REQUIRED
>
<!ELEMENT meta EMPTY>
<!ATTLIST meta
name NMTOKEN #IMPLIED
content CDATA #REQUIRED
http-equiv NMTOKEN #IMPLIED
>
<!--================================ Prompts ==============================-->
<!-- Prompt is modelled on SSML 1.0 DTD speak element:
- addition of 'bargein', 'bargeintype', 'cond', 'count' and 'timeout' attributes
- removal of xmlns, xmlns:xsi, and xsi:schemaLocation attributes
- version attribute fixed as "1.0"
-->
<!ELEMENT prompt (%allowed-within-sentence; | %structure;)*>
<!ATTLIST prompt
bargein %boolean; #IMPLIED
bargeintype %bargeintype; #IMPLIED
cond %expression; #IMPLIED
count %integer; #IMPLIED
xml:lang NMTOKENS #IMPLIED
timeout %duration; #IMPLIED
version CDATA #FIXED "1.0"
>
<!ELEMENT enumerate (%allowed-within-sentence; | %structure;)*>
<!ELEMENT reprompt EMPTY>
<!--================================= Dialogs =============================-->
<!ENTITY % input "grammar">
<!ENTITY % scope "(document | dialog)">
<!-- Voiceprint is a Nuance extension for speaker verification and identification. -->
<!ELEMENT form (%input; | %event.handler; | filled | initial | object |
link | property | record | script | subdialog | transfer | %variable; | nuance:voiceprint)*>
<!ATTLIST form
id ID #IMPLIED
scope %scope; "dialog"
>
<!ENTITY % accept.attrs "accept (exact | approximate) 'exact'">
<!-- script in the menu is a Nuance extension. -->
<!ELEMENT menu (%audio; | choice | %event.handler; | prompt | property | script)*>
<!ATTLIST menu
id ID #IMPLIED
scope %scope; "dialog"
%accept.attrs;
dtmf %boolean; "false"
>
<!ELEMENT choice (%allowed-within-sentence; | %structure; | grammar)*>
<!ATTLIST choice
%cache.attrs;
%accept.attrs;
dtmf CDATA #IMPLIED
%throw.attrs;
fetchaudio %uri; #IMPLIED
%next.attrs;
>
<!--================================ Audio Output ==============================-->
<!-- definitions adapted from SSML 1.0 DTD -->
<!ELEMENT paragraph (%allowed-within-sentence; | sentence | s)*>
<!ATTLIST paragraph
xml:lang NMTOKENS #IMPLIED
>
<!ELEMENT sentence (%allowed-within-sentence;)*>
<!ATTLIST sentence
xml:lang NMTOKENS #IMPLIED
>
<!ELEMENT p (%allowed-within-sentence; | sentence | s)*>
<!ATTLIST p
xml:lang NMTOKENS #IMPLIED
>
<!ELEMENT s (%allowed-within-sentence;)*>
<!ATTLIST s
xml:lang NMTOKENS #IMPLIED
>
<!ELEMENT voice (%allowed-within-sentence; | %structure;)*>
<!ATTLIST voice
xml:lang NMTOKENS #IMPLIED
gender (male | female | neutral) #IMPLIED
age %integer; #IMPLIED
variant %integer; #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT prosody (%allowed-within-sentence; | %structure;)*>
<!ATTLIST prosody
pitch CDATA #IMPLIED
contour CDATA #IMPLIED
range CDATA #IMPLIED
rate CDATA #IMPLIED
duration %duration; #IMPLIED
volume CDATA #IMPLIED
>
<!-- Changes to SSML 1.0 DTD audio element:
- addition of 'expr' and caching attributes
-->
<!-- offsetexpr is a Nuance extension that specifies where in the audio to start playing. -->
<!ELEMENT audio (%allowed-within-sentence; | %structure;)*>
<!ATTLIST audio
src %uri; #IMPLIED
expr %expression; #IMPLIED
%cache.attrs;
offsetexpr %expression; #IMPLIED
>
<!ELEMENT emphasis (%allowed-within-sentence;)*>
<!ATTLIST emphasis
level (strong | moderate | none | reduced) "moderate"
>
<!-- Changes to SSML 1.0 DTD say-as element:
- addition of vxml builtins to type
- allows value element as child
-->
<!-- As a Nuance extension, the type attribute is not constrained by the DTD. -->
<!ELEMENT say-as (#PCDATA | value )*>
<!ATTLIST say-as
type CDATA #REQUIRED
>
<!ELEMENT sub (#PCDATA)>
<!ATTLIST sub
alias CDATA #REQUIRED
>
<!ELEMENT phoneme (#PCDATA)>
<!ATTLIST phoneme
ph CDATA #REQUIRED
alphabet CDATA "ipa"
>
<!ELEMENT break EMPTY>
<!-- In order to detect the case where no attribute is specified on break,
Nuance specifies the size as #IMPLIED rather than the 'medium' default. -->
<!ATTLIST break
size (large | medium | small | none) #IMPLIED
time %duration; #IMPLIED
>
<!ELEMENT mark (%allowed-within-sentence; | %structure;)*>
<!ATTLIST mark
name ID #REQUIRED
>
<!--================================ Fields ===============================-->
<!ELEMENT field (%audio; | %event.handler; | filled | %input; | link |
option | prompt | property)*>
<!ATTLIST field
%item.attrs;
type CDATA #IMPLIED
slot NMTOKEN #IMPLIED
modal %boolean; "false"
>
<!-- <option> is more powerful with optional <grammar>s and SSML markup. -->
<!ELEMENT option (%allowed-within-sentence; | %structure; | grammar)*>
<!ATTLIST option
%accept.attrs;
dtmf CDATA #IMPLIED
value CDATA #IMPLIED
>
<!ELEMENT var EMPTY>
<!ATTLIST var
name %variable.name; #REQUIRED
expr %expression; #IMPLIED
>
<!ELEMENT initial (%audio; | %event.handler; | link | prompt | property)*>
<!ATTLIST initial
%item.attrs;
>
<!ELEMENT block (%executable.content;)*>
<!ATTLIST block
%item.attrs;
>
<!ELEMENT assign EMPTY>
<!ATTLIST assign
name %variable.name; #REQUIRED
expr %expression; #REQUIRED
>
<!ELEMENT clear EMPTY>
<!ATTLIST clear
namelist %variable.names; #IMPLIED
>
<!ELEMENT value EMPTY>
<!ATTLIST value
expr %expression; #REQUIRED
>
<!--================================== Events =============================-->
<!ENTITY % event.handler.attrs "count %integer; #IMPLIED
cond %expression; #IMPLIED">
<!ELEMENT catch (%executable.content;)*>
<!ATTLIST catch
event %event.names; #IMPLIED
%event.handler.attrs;
>
<!ELEMENT error (%executable.content;)*>
<!ATTLIST error
%event.handler.attrs;
>
<!ELEMENT help (%executable.content;)*>
<!ATTLIST help
%event.handler.attrs;
>
<!ELEMENT link (grammar)*>
<!ATTLIST link
%cache.attrs;
%next.attrs;
fetchaudio %uri; #IMPLIED
dtmf CDATA #IMPLIED
%throw.attrs;
>
<!ELEMENT noinput (%executable.content;)*>
<!ATTLIST noinput
%event.handler.attrs;
>
<!ELEMENT nomatch (%executable.content;)*>
<!ATTLIST nomatch
%event.handler.attrs;
>
<!ELEMENT throw EMPTY>
<!ATTLIST throw
%throw.attrs;
>
<!--============================= Grammar Input =============================-->
<!-- definitions adapted from SRGS 1.0 DTD -->
<!ENTITY % rule-expansion "#PCDATA | token | ruleref
| item | one-of | tag ">
<!-- New GRXML Spec - Added lang-list - Removed xml:lang -->
<!ELEMENT ruleref EMPTY>
<!ATTLIST ruleref
uri %uri; #IMPLIED
type CDATA #IMPLIED
special (NULL | VOID | GARBAGE) #IMPLIED
lang-list NMTOKENS #IMPLIED
>
<!-- New GRXML Spec - Added lang-list - Removed xml:lang -->
<!ELEMENT token (#PCDATA)>
<!ATTLIST token
lang-list NMTOKENS #IMPLIED
>
<!ELEMENT tag (#PCDATA)>
<!-- New GRXML Spec - Added lang-list - Removed xml:lang -->
<!ELEMENT one-of (item)+>
<!ATTLIST one-of
lang-list NMTOKENS #IMPLIED
>
<!-- New GRXML Spec - Removed tag, xml:lang -->
<!ELEMENT item (%rule-expansion;)*>
<!ATTLIST item
repeat NMTOKEN #IMPLIED
repeat-prob NMTOKEN #IMPLIED
weight NMTOKEN #IMPLIED
>
<!ELEMENT rule (%rule-expansion; | example)*>
<!ATTLIST rule
id ID #REQUIRED
scope (private | public) "private"
>
<!ELEMENT example (#PCDATA)>
<!--
Nuance-extension: <grammar> also permits <nuance:redef> children, which
can be used to define external grammars. The <nuance:nbest> tag allows JavaScript
"nbest" processing.
-->
<!ELEMENT grammar ( #PCDATA | rule | nuance:redef | nuance:nbest )*>
<!ATTLIST grammar
scope %scope; #IMPLIED
src %uri; #IMPLIED
type CDATA #IMPLIED
weight CDATA #IMPLIED
%cache.attrs;
tag-format CDATA "Nuance"
version CDATA "1.0"
xml:lang NMTOKENS #IMPLIED
root IDREF #IMPLIED
mode (voice | dtmf) "voice"
expr CDATA #IMPLIED
>
<!-- an <redef> element describes an external grammar through a src,
type and name of the grammar to be resolved by this external
grammar -->
<!ELEMENT nuance:redef EMPTY>
<!ATTLIST nuance:redef
src %uri; #IMPLIED
expr %uri; #IMPLIED
name CDATA #REQUIRED
>
<!--============================= Audio Input =============================-->
<!-- dest and destexpr are a Nuance extension that specify the destination uri
where the recorded audio should be http posted. -->
<!ELEMENT record (%audio; | %event.handler; | filled | grammar | prompt | property)*>
<!ATTLIST record
%item.attrs;
type CDATA #IMPLIED
beep %boolean; "false"
maxtime %duration; #IMPLIED
modal %boolean; "true"
finalsilence %duration; #IMPLIED
dtmfterm %boolean; "true"
dest %uri; #IMPLIED
destexpr %expression; #IMPLIED
>
<!--============================ Call Control ============================-->
<!ELEMENT disconnect EMPTY>
<!-- devices is a Nuance extension used in the transfer tag. -->
<!ENTITY % devices "NMTOKENS">
<!-- type is a Nuance extension deprecating the bridge attribute and
allowing the specification of a third type: conditional. A conditional
transfer will disconnect the system from the transfer only after party
A is connected to party C.
localuri and localuriexpr are a Nuance extension that allows the user
to specify the localuri, eg. ANI, for the outbound call.
farenddialog and farenddialogexpr are a Nuance extension that allows
specifying a VoiceXML dialog to execute with Party C to determine
whether to connect Party A to Party C.
warningtime and warningaudio are a Nuance extension to specify a
prompt to play the specified amount of time before ending the
bridge transfer due to maxtime.
devicedetection is a Nuance extension specifying the list of devices
that the system should attempt to detect on the transfer. -->
<!ELEMENT transfer (%audio; | %event.handler; | filled | grammar | prompt | property)*>
<!ATTLIST transfer
%item.attrs;
dest %uri; #IMPLIED
destexpr %expression; #IMPLIED
bridge %boolean; #IMPLIED
connecttimeout %duration; #IMPLIED
maxtime %duration; #IMPLIED
transferaudio %uri; #IMPLIED
aai CDATA #IMPLIED
aaiexpr %expression; #IMPLIED
type (blind | bridge | conditional) #IMPLIED
localuri %uri; #IMPLIED
localuriexpr %expression; #IMPLIED
farenddialog %uri; #IMPLIED
farenddialogexpr %expression; #IMPLIED
warningtime %duration; #IMPLIED
warningaudio %uri; #IMPLIED
devicedetection %devices; #IMPLIED
>
<!--============================ Control Flow ============================-->
<!ENTITY % if.attrs "cond %expression; #REQUIRED">
<!ELEMENT if (%executable.content; | elseif | else)*>
<!ATTLIST if
%if.attrs;
>
<!ELEMENT elseif EMPTY>
<!ATTLIST elseif
%if.attrs;
>
<!ELEMENT else EMPTY>
<!ELEMENT exit EMPTY>
<!ATTLIST exit
expr %expression; #IMPLIED
namelist %variable.names; #IMPLIED
>
<!ELEMENT filled (%executable.content;)*>
<!ATTLIST filled
mode (any | all) "all"
namelist %variable.names; #IMPLIED
>
<!ELEMENT goto EMPTY>
<!ATTLIST goto
%cache.attrs;
%next.attrs;
fetchaudio %uri; #IMPLIED
expritem %expression; #IMPLIED
nextitem %variable.name; #IMPLIED
>
<!-- <param> elements are allowed to have nested <param> children,
and an index to allow building up arrays/vectors.
Also, if index is specified name is not required. -->
<!ELEMENT param (param)*>
<!ATTLIST param
name NMTOKEN #IMPLIED
expr %expression; #IMPLIED
value CDATA #IMPLIED
valuetype (data | ref) "data"
type CDATA #IMPLIED
index CDATA #IMPLIED
>
<!ELEMENT return EMPTY>
<!ATTLIST return
namelist %variable.names; #IMPLIED
%throw.attrs;
>
<!ELEMENT subdialog (%audio; | %event.handler; | filled | param | prompt | property)*>
<!ATTLIST subdialog
%item.attrs;
src %uri; #IMPLIED
srcexpr %expression; #IMPLIED
%cache.attrs;
fetchaudio %uri; #IMPLIED
%submit.attrs;
>
<!ELEMENT submit EMPTY>
<!ATTLIST submit
%cache.attrs;
%next.attrs;
fetchaudio %uri; #IMPLIED
%submit.attrs;
>
<!--========================== Verification ==============================-->
<!-- The <voiceprint> tag is a FIA-based framework for verificaiton and identification. -->
<!ENTITY % voiceprint.plan.attrs
'plan (verification | identification) "verification"
designation %variable.names; #IMPLIED
verification %variable.names; #IMPLIED
training %variable.names; #IMPLIED
completion %variable.names; #IMPLIED
unanalyzed %variable.names; #IMPLIED
adapt %boolean; #IMPLIED
enroll %boolean; #IMPLIED'
>
<!ENTITY % voiceprint.repository.attrs
'src %uri; #IMPLIED
srcexpr %expression; #IMPLIED
fetchnamelist %variable.names; #IMPLIED
submitnamelist %variable.names; #IMPLIED'
>
<!ELEMENT nuance:voiceprint EMPTY>
<!ATTLIST nuance:voiceprint
%voiceprint.plan.attrs;
%voiceprint.repository.attrs;
>
<!--========================== Miscellaneous ==============================-->
<!-- <debug> is a deprecated version of the <log> tag. Both link with Nuance's logging framework. -->
<!ELEMENT debug (#PCDATA | value)*>
<!ATTLIST debug
expr CDATA #IMPLIED
dest %uri; #IMPLIED
level NMTOKEN #IMPLIED
>
<!ELEMENT log (#PCDATA | value)*>
<!ATTLIST log
label CDATA #IMPLIED
expr %expression; #IMPLIED
>
<!-- <link> under <object> is a Nuance extension. -->
<!ELEMENT object (%audio; | %event.handler; | filled | param | prompt | property | link)*>
<!ATTLIST object
%item.attrs;
%cache.attrs;
classid %uri; #IMPLIED
codebase %uri; #IMPLIED
data %uri; #IMPLIED
type CDATA #IMPLIED
codetype CDATA #IMPLIED
archive %uri; #IMPLIED
>
<!ELEMENT property EMPTY>
<!ATTLIST property
name NMTOKEN #REQUIRED
value CDATA #REQUIRED
>
<!-- For debug purposes, newlines are preserved by default. -->
<!ELEMENT script (#PCDATA)>
<!ATTLIST script
src %uri; #IMPLIED
charset CDATA #IMPLIED
%cache.attrs;
xml:space (default|preserve) #FIXED "preserve"
>
<!-- <nuance:nbest> is a Nuance extension that allows client side n-besting over
multiple interpretations. -->
<!ELEMENT nuance:nbest (#PCDATA)*>
<!ATTLIST nuance:nbest
src %uri; #IMPLIED
charset CDATA #IMPLIED
%cache.attrs;
xml:space (default | preserve) #FIXED "preserve"
>
<!--========================== Custom Elements ==============================-->
<!ELEMENT nuance:send EMPTY >
<!ATTLIST nuance:send
dest %uri; #IMPLIED
destexpr %expression; #IMPLIED
fetchaudio %uri; #IMPLIED
%submit.attrs; >
@@ -0,0 +1,18 @@
<!DOCTYPE vxml PUBLIC "-//Nuance/DTD VoiceXML 2.0//EN" "http://www.angel.com/dtd/nuancevoicexml-2-0.dtd">
<vxml version="2.0" application="/vxml20/ApplicationConnection" xmlns="http://www.w3.org/2001/vxml">
<property name="inputmodes" value="dtmf voice"/>
<var name="zipcode"/>
<var name="city"/>
<var name="state"/>
<var name="streetAddrInfo"/>
<form>
<block>
<prompt version="1.0">
This is a prompt
</prompt>
</block>
</form>
</vxml>
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<purchaseOrder orderDate="1999-10-20" xmlns="urn:myschema">
<shipTo country="US">
<name>Alice Smith</name>
<street>123 Maple Street</street>
<city>Mill Valley</city>
<state>CA</state>
<zip>90952</zip>
</shipTo>
<billTo country="US">
<name>Robert Smith</name>
<street>8 Oak Avenue</street>
<city>Old Town</city>
<state>PA</state>
<zip>95819</zip>
</billTo>
<comment>Hurry, my lawn is going wild!</comment>
<items>
<item partNum="872-AA">
<productName>Lawnmower</productName>
<quantity>1</quantity>
<USPrice>148.95</USPrice>
<comment>Confirm this is electric</comment>
</item>
<item partNum="926-AA">
<productName>Baby Monitor</productName>
<quantity>1</quantity>
<USPrice>39.98</USPrice>
<shipDate>1999-05-21</shipDate>
</item>
</items>
</purchaseOrder>
+67
View File
@@ -0,0 +1,67 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Purchase order schema for Example.com.
Copyright 2000 Example.com. All rights reserved.
</xsd:documentation>
</xsd:annotation>
<xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
<xsd:element name="comment" type="xsd:string"/>
<xsd:complexType name="PurchaseOrderType">
<xsd:sequence>
<xsd:element name="shipTo" type="USAddress"/>
<xsd:element name="billTo" type="USAddress"/>
<xsd:element ref="comment" minOccurs="0"/>
<xsd:element name="items" type="Items"/>
</xsd:sequence>
<xsd:attribute name="orderDate" type="xsd:date"/>
</xsd:complexType>
<xsd:complexType name="USAddress">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="street" type="xsd:string"/>
<xsd:element name="city" type="xsd:string"/>
<xsd:element name="state" type="xsd:string"/>
<xsd:element name="zip" type="xsd:decimal"/>
</xsd:sequence>
<xsd:attribute name="country" type="xsd:NMTOKEN"
fixed="US"/>
</xsd:complexType>
<xsd:complexType name="Items">
<xsd:sequence>
<xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="productName" type="xsd:string"/>
<xsd:element name="quantity">
<xsd:simpleType>
<xsd:restriction base="xsd:positiveInteger">
<xsd:maxExclusive value="100"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="USPrice" type="xsd:decimal"/>
<xsd:element ref="comment" minOccurs="0"/>
<xsd:element name="shipDate" type="xsd:date" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="partNum" type="SKU" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- Stock Keeping Unit, a code for identifying products -->
<xsd:simpleType name="SKU">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\d{3}-[A-Z]{2}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<schema xmlns:bar="urn:x:bar:1.0"
targetNamespace="urn:x:bar:1.0"
version="1.0"
xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="bar">
<complexContent>
<extension base="all">
</extension>
</complexContent>
<attribute name="goo" type="boolean" default="true" />
</complexType>
<element name="bar" type="bar:bar"/>
</schema>
@@ -0,0 +1,3 @@
<!ENTITY rights "All rights reserved">
<!ENTITY % booleanT '(true | false) "true"'>
<!ENTITY % booleanF '(true | false) "false"'>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY % defineCoreDTD PUBLIC "-//AMS::core//DTD metadata core 3.7.2//EN" "core.dtd">
%defineCoreDTD;
<!ELEMENT domain EMPTY>
<!ATTLIST domain
name CDATA #REQUIRED
abstract %booleanF;
>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>display</display-name>
<jsp-config>
<taglib>
<taglib-uri>http://www.foo.com/taglib</taglib-uri>
<taglib-location>/WEB-INF/test.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.faces.application.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<aaa></aaa>
</web-app>
@@ -0,0 +1,196 @@
<!-- Portions (C) International Organization for Standardization 1986
Permission to copy in any form is granted for use with
conforming SGML systems and applications as defined in
ISO 8879, provided this notice is included in all copies.
-->
<!-- Character entity set. Typical invocation:
<!ENTITY % HTMLlat1 PUBLIC
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
%HTMLlat1;
-->
<!ENTITY nbsp "&#160;"> <!-- no-break space = non-breaking space,
U+00A0 ISOnum -->
<!ENTITY iexcl "&#161;"> <!-- inverted exclamation mark, U+00A1 ISOnum -->
<!ENTITY cent "&#162;"> <!-- cent sign, U+00A2 ISOnum -->
<!ENTITY pound "&#163;"> <!-- pound sign, U+00A3 ISOnum -->
<!ENTITY curren "&#164;"> <!-- currency sign, U+00A4 ISOnum -->
<!ENTITY yen "&#165;"> <!-- yen sign = yuan sign, U+00A5 ISOnum -->
<!ENTITY brvbar "&#166;"> <!-- broken bar = broken vertical bar,
U+00A6 ISOnum -->
<!ENTITY sect "&#167;"> <!-- section sign, U+00A7 ISOnum -->
<!ENTITY uml "&#168;"> <!-- diaeresis = spacing diaeresis,
U+00A8 ISOdia -->
<!ENTITY copy "&#169;"> <!-- copyright sign, U+00A9 ISOnum -->
<!ENTITY ordf "&#170;"> <!-- feminine ordinal indicator, U+00AA ISOnum -->
<!ENTITY laquo "&#171;"> <!-- left-pointing double angle quotation mark
= left pointing guillemet, U+00AB ISOnum -->
<!ENTITY not "&#172;"> <!-- not sign = discretionary hyphen,
U+00AC ISOnum -->
<!ENTITY shy "&#173;"> <!-- soft hyphen = discretionary hyphen,
U+00AD ISOnum -->
<!ENTITY reg "&#174;"> <!-- registered sign = registered trade mark sign,
U+00AE ISOnum -->
<!ENTITY macr "&#175;"> <!-- macron = spacing macron = overline
= APL overbar, U+00AF ISOdia -->
<!ENTITY deg "&#176;"> <!-- degree sign, U+00B0 ISOnum -->
<!ENTITY plusmn "&#177;"> <!-- plus-minus sign = plus-or-minus sign,
U+00B1 ISOnum -->
<!ENTITY sup2 "&#178;"> <!-- superscript two = superscript digit two
= squared, U+00B2 ISOnum -->
<!ENTITY sup3 "&#179;"> <!-- superscript three = superscript digit three
= cubed, U+00B3 ISOnum -->
<!ENTITY acute "&#180;"> <!-- acute accent = spacing acute,
U+00B4 ISOdia -->
<!ENTITY micro "&#181;"> <!-- micro sign, U+00B5 ISOnum -->
<!ENTITY para "&#182;"> <!-- pilcrow sign = paragraph sign,
U+00B6 ISOnum -->
<!ENTITY middot "&#183;"> <!-- middle dot = Georgian comma
= Greek middle dot, U+00B7 ISOnum -->
<!ENTITY cedil "&#184;"> <!-- cedilla = spacing cedilla, U+00B8 ISOdia -->
<!ENTITY sup1 "&#185;"> <!-- superscript one = superscript digit one,
U+00B9 ISOnum -->
<!ENTITY ordm "&#186;"> <!-- masculine ordinal indicator,
U+00BA ISOnum -->
<!ENTITY raquo "&#187;"> <!-- right-pointing double angle quotation mark
= right pointing guillemet, U+00BB ISOnum -->
<!ENTITY frac14 "&#188;"> <!-- vulgar fraction one quarter
= fraction one quarter, U+00BC ISOnum -->
<!ENTITY frac12 "&#189;"> <!-- vulgar fraction one half
= fraction one half, U+00BD ISOnum -->
<!ENTITY frac34 "&#190;"> <!-- vulgar fraction three quarters
= fraction three quarters, U+00BE ISOnum -->
<!ENTITY iquest "&#191;"> <!-- inverted question mark
= turned question mark, U+00BF ISOnum -->
<!ENTITY Agrave "&#192;"> <!-- latin capital letter A with grave
= latin capital letter A grave,
U+00C0 ISOlat1 -->
<!ENTITY Aacute "&#193;"> <!-- latin capital letter A with acute,
U+00C1 ISOlat1 -->
<!ENTITY Acirc "&#194;"> <!-- latin capital letter A with circumflex,
U+00C2 ISOlat1 -->
<!ENTITY Atilde "&#195;"> <!-- latin capital letter A with tilde,
U+00C3 ISOlat1 -->
<!ENTITY Auml "&#196;"> <!-- latin capital letter A with diaeresis,
U+00C4 ISOlat1 -->
<!ENTITY Aring "&#197;"> <!-- latin capital letter A with ring above
= latin capital letter A ring,
U+00C5 ISOlat1 -->
<!ENTITY AElig "&#198;"> <!-- latin capital letter AE
= latin capital ligature AE,
U+00C6 ISOlat1 -->
<!ENTITY Ccedil "&#199;"> <!-- latin capital letter C with cedilla,
U+00C7 ISOlat1 -->
<!ENTITY Egrave "&#200;"> <!-- latin capital letter E with grave,
U+00C8 ISOlat1 -->
<!ENTITY Eacute "&#201;"> <!-- latin capital letter E with acute,
U+00C9 ISOlat1 -->
<!ENTITY Ecirc "&#202;"> <!-- latin capital letter E with circumflex,
U+00CA ISOlat1 -->
<!ENTITY Euml "&#203;"> <!-- latin capital letter E with diaeresis,
U+00CB ISOlat1 -->
<!ENTITY Igrave "&#204;"> <!-- latin capital letter I with grave,
U+00CC ISOlat1 -->
<!ENTITY Iacute "&#205;"> <!-- latin capital letter I with acute,
U+00CD ISOlat1 -->
<!ENTITY Icirc "&#206;"> <!-- latin capital letter I with circumflex,
U+00CE ISOlat1 -->
<!ENTITY Iuml "&#207;"> <!-- latin capital letter I with diaeresis,
U+00CF ISOlat1 -->
<!ENTITY ETH "&#208;"> <!-- latin capital letter ETH, U+00D0 ISOlat1 -->
<!ENTITY Ntilde "&#209;"> <!-- latin capital letter N with tilde,
U+00D1 ISOlat1 -->
<!ENTITY Ograve "&#210;"> <!-- latin capital letter O with grave,
U+00D2 ISOlat1 -->
<!ENTITY Oacute "&#211;"> <!-- latin capital letter O with acute,
U+00D3 ISOlat1 -->
<!ENTITY Ocirc "&#212;"> <!-- latin capital letter O with circumflex,
U+00D4 ISOlat1 -->
<!ENTITY Otilde "&#213;"> <!-- latin capital letter O with tilde,
U+00D5 ISOlat1 -->
<!ENTITY Ouml "&#214;"> <!-- latin capital letter O with diaeresis,
U+00D6 ISOlat1 -->
<!ENTITY times "&#215;"> <!-- multiplication sign, U+00D7 ISOnum -->
<!ENTITY Oslash "&#216;"> <!-- latin capital letter O with stroke
= latin capital letter O slash,
U+00D8 ISOlat1 -->
<!ENTITY Ugrave "&#217;"> <!-- latin capital letter U with grave,
U+00D9 ISOlat1 -->
<!ENTITY Uacute "&#218;"> <!-- latin capital letter U with acute,
U+00DA ISOlat1 -->
<!ENTITY Ucirc "&#219;"> <!-- latin capital letter U with circumflex,
U+00DB ISOlat1 -->
<!ENTITY Uuml "&#220;"> <!-- latin capital letter U with diaeresis,
U+00DC ISOlat1 -->
<!ENTITY Yacute "&#221;"> <!-- latin capital letter Y with acute,
U+00DD ISOlat1 -->
<!ENTITY THORN "&#222;"> <!-- latin capital letter THORN,
U+00DE ISOlat1 -->
<!ENTITY szlig "&#223;"> <!-- latin small letter sharp s = ess-zed,
U+00DF ISOlat1 -->
<!ENTITY agrave "&#224;"> <!-- latin small letter a with grave
= latin small letter a grave,
U+00E0 ISOlat1 -->
<!ENTITY aacute "&#225;"> <!-- latin small letter a with acute,
U+00E1 ISOlat1 -->
<!ENTITY acirc "&#226;"> <!-- latin small letter a with circumflex,
U+00E2 ISOlat1 -->
<!ENTITY atilde "&#227;"> <!-- latin small letter a with tilde,
U+00E3 ISOlat1 -->
<!ENTITY auml "&#228;"> <!-- latin small letter a with diaeresis,
U+00E4 ISOlat1 -->
<!ENTITY aring "&#229;"> <!-- latin small letter a with ring above
= latin small letter a ring,
U+00E5 ISOlat1 -->
<!ENTITY aelig "&#230;"> <!-- latin small letter ae
= latin small ligature ae, U+00E6 ISOlat1 -->
<!ENTITY ccedil "&#231;"> <!-- latin small letter c with cedilla,
U+00E7 ISOlat1 -->
<!ENTITY egrave "&#232;"> <!-- latin small letter e with grave,
U+00E8 ISOlat1 -->
<!ENTITY eacute "&#233;"> <!-- latin small letter e with acute,
U+00E9 ISOlat1 -->
<!ENTITY ecirc "&#234;"> <!-- latin small letter e with circumflex,
U+00EA ISOlat1 -->
<!ENTITY euml "&#235;"> <!-- latin small letter e with diaeresis,
U+00EB ISOlat1 -->
<!ENTITY igrave "&#236;"> <!-- latin small letter i with grave,
U+00EC ISOlat1 -->
<!ENTITY iacute "&#237;"> <!-- latin small letter i with acute,
U+00ED ISOlat1 -->
<!ENTITY icirc "&#238;"> <!-- latin small letter i with circumflex,
U+00EE ISOlat1 -->
<!ENTITY iuml "&#239;"> <!-- latin small letter i with diaeresis,
U+00EF ISOlat1 -->
<!ENTITY eth "&#240;"> <!-- latin small letter eth, U+00F0 ISOlat1 -->
<!ENTITY ntilde "&#241;"> <!-- latin small letter n with tilde,
U+00F1 ISOlat1 -->
<!ENTITY ograve "&#242;"> <!-- latin small letter o with grave,
U+00F2 ISOlat1 -->
<!ENTITY oacute "&#243;"> <!-- latin small letter o with acute,
U+00F3 ISOlat1 -->
<!ENTITY ocirc "&#244;"> <!-- latin small letter o with circumflex,
U+00F4 ISOlat1 -->
<!ENTITY otilde "&#245;"> <!-- latin small letter o with tilde,
U+00F5 ISOlat1 -->
<!ENTITY ouml "&#246;"> <!-- latin small letter o with diaeresis,
U+00F6 ISOlat1 -->
<!ENTITY divide "&#247;"> <!-- division sign, U+00F7 ISOnum -->
<!ENTITY oslash "&#248;"> <!-- latin small letter o with stroke,
= latin small letter o slash,
U+00F8 ISOlat1 -->
<!ENTITY ugrave "&#249;"> <!-- latin small letter u with grave,
U+00F9 ISOlat1 -->
<!ENTITY uacute "&#250;"> <!-- latin small letter u with acute,
U+00FA ISOlat1 -->
<!ENTITY ucirc "&#251;"> <!-- latin small letter u with circumflex,
U+00FB ISOlat1 -->
<!ENTITY uuml "&#252;"> <!-- latin small letter u with diaeresis,
U+00FC ISOlat1 -->
<!ENTITY yacute "&#253;"> <!-- latin small letter y with acute,
U+00FD ISOlat1 -->
<!ENTITY thorn "&#254;"> <!-- latin small letter thorn with,
U+00FE ISOlat1 -->
<!ENTITY yuml "&#255;"> <!-- latin small letter y with diaeresis,
U+00FF ISOlat1 -->
@@ -0,0 +1,79 @@
<!-- Special characters for HTML -->
<!-- Character entity set. Typical invocation:
<!ENTITY % HTMLspecial PUBLIC
"-//W3C//ENTITIES Special for XHTML//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
%HTMLspecial;
-->
<!-- Portions (C) International Organization for Standardization 1986:
Permission to copy in any form is granted for use with
conforming SGML systems and applications as defined in
ISO 8879, provided this notice is included in all copies.
-->
<!-- Relevant ISO entity set is given unless names are newly introduced.
New names (i.e., not in ISO 8879 list) do not clash with any
existing ISO 8879 entity names. ISO 10646 character numbers
are given for each character, in hex. values are decimal
conversions of the ISO 10646 values and refer to the document
character set. Names are Unicode names.
-->
<!-- C0 Controls and Basic Latin -->
<!ENTITY quot "&#34;"> <!-- quotation mark = APL quote,
U+0022 ISOnum -->
<!ENTITY amp "&#38;#38;"> <!-- ampersand, U+0026 ISOnum -->
<!ENTITY lt "&#38;#60;"> <!-- less-than sign, U+003C ISOnum -->
<!ENTITY gt "&#62;"> <!-- greater-than sign, U+003E ISOnum -->
<!ENTITY apos "&#39;"> <!-- apostrophe mark, U+0027 ISOnum -->
<!-- Latin Extended-A -->
<!ENTITY OElig "&#338;"> <!-- latin capital ligature OE,
U+0152 ISOlat2 -->
<!ENTITY oelig "&#339;"> <!-- latin small ligature oe, U+0153 ISOlat2 -->
<!-- ligature is a misnomer, this is a separate character in some languages -->
<!ENTITY Scaron "&#352;"> <!-- latin capital letter S with caron,
U+0160 ISOlat2 -->
<!ENTITY scaron "&#353;"> <!-- latin small letter s with caron,
U+0161 ISOlat2 -->
<!ENTITY Yuml "&#376;"> <!-- latin capital letter Y with diaeresis,
U+0178 ISOlat2 -->
<!-- Spacing Modifier Letters -->
<!ENTITY circ "&#710;"> <!-- modifier letter circumflex accent,
U+02C6 ISOpub -->
<!ENTITY tilde "&#732;"> <!-- small tilde, U+02DC ISOdia -->
<!-- General Punctuation -->
<!ENTITY ensp "&#8194;"> <!-- en space, U+2002 ISOpub -->
<!ENTITY emsp "&#8195;"> <!-- em space, U+2003 ISOpub -->
<!ENTITY thinsp "&#8201;"> <!-- thin space, U+2009 ISOpub -->
<!ENTITY zwnj "&#8204;"> <!-- zero width non-joiner,
U+200C NEW RFC 2070 -->
<!ENTITY zwj "&#8205;"> <!-- zero width joiner, U+200D NEW RFC 2070 -->
<!ENTITY lrm "&#8206;"> <!-- left-to-right mark, U+200E NEW RFC 2070 -->
<!ENTITY rlm "&#8207;"> <!-- right-to-left mark, U+200F NEW RFC 2070 -->
<!ENTITY ndash "&#8211;"> <!-- en dash, U+2013 ISOpub -->
<!ENTITY mdash "&#8212;"> <!-- em dash, U+2014 ISOpub -->
<!ENTITY lsquo "&#8216;"> <!-- left single quotation mark,
U+2018 ISOnum -->
<!ENTITY rsquo "&#8217;"> <!-- right single quotation mark,
U+2019 ISOnum -->
<!ENTITY sbquo "&#8218;"> <!-- single low-9 quotation mark, U+201A NEW -->
<!ENTITY ldquo "&#8220;"> <!-- left double quotation mark,
U+201C ISOnum -->
<!ENTITY rdquo "&#8221;"> <!-- right double quotation mark,
U+201D ISOnum -->
<!ENTITY bdquo "&#8222;"> <!-- double low-9 quotation mark, U+201E NEW -->
<!ENTITY dagger "&#8224;"> <!-- dagger, U+2020 ISOpub -->
<!ENTITY Dagger "&#8225;"> <!-- double dagger, U+2021 ISOpub -->
<!ENTITY permil "&#8240;"> <!-- per mille sign, U+2030 ISOtech -->
<!ENTITY lsaquo "&#8249;"> <!-- single left-pointing angle quotation mark,
U+2039 ISO proposed -->
<!-- lsaquo is proposed but not yet ISO standardized -->
<!ENTITY rsaquo "&#8250;"> <!-- single right-pointing angle quotation mark,
U+203A ISO proposed -->
<!-- rsaquo is proposed but not yet ISO standardized -->
<!ENTITY euro "&#8364;"> <!-- euro sign, U+20AC NEW -->
@@ -0,0 +1,242 @@
<!-- Mathematical, Greek and Symbolic characters for HTML -->
<!-- Character entity set. Typical invocation:
<!ENTITY % HTMLsymbol PUBLIC
"-//W3C//ENTITIES Symbols for XHTML//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
%HTMLsymbol;
-->
<!-- Portions (C) International Organization for Standardization 1986:
Permission to copy in any form is granted for use with
conforming SGML systems and applications as defined in
ISO 8879, provided this notice is included in all copies.
-->
<!-- Relevant ISO entity set is given unless names are newly introduced.
New names (i.e., not in ISO 8879 list) do not clash with any
existing ISO 8879 entity names. ISO 10646 character numbers
are given for each character, in hex. values are decimal
conversions of the ISO 10646 values and refer to the document
character set. Names are Unicode names.
-->
<!-- Latin Extended-B -->
<!ENTITY fnof "&#402;"> <!-- latin small f with hook = function
= florin, U+0192 ISOtech -->
<!-- Greek -->
<!ENTITY Alpha "&#913;"> <!-- greek capital letter alpha, U+0391 -->
<!ENTITY Beta "&#914;"> <!-- greek capital letter beta, U+0392 -->
<!ENTITY Gamma "&#915;"> <!-- greek capital letter gamma,
U+0393 ISOgrk3 -->
<!ENTITY Delta "&#916;"> <!-- greek capital letter delta,
U+0394 ISOgrk3 -->
<!ENTITY Epsilon "&#917;"> <!-- greek capital letter epsilon, U+0395 -->
<!ENTITY Zeta "&#918;"> <!-- greek capital letter zeta, U+0396 -->
<!ENTITY Eta "&#919;"> <!-- greek capital letter eta, U+0397 -->
<!ENTITY Theta "&#920;"> <!-- greek capital letter theta,
U+0398 ISOgrk3 -->
<!ENTITY Iota "&#921;"> <!-- greek capital letter iota, U+0399 -->
<!ENTITY Kappa "&#922;"> <!-- greek capital letter kappa, U+039A -->
<!ENTITY Lambda "&#923;"> <!-- greek capital letter lambda,
U+039B ISOgrk3 -->
<!ENTITY Mu "&#924;"> <!-- greek capital letter mu, U+039C -->
<!ENTITY Nu "&#925;"> <!-- greek capital letter nu, U+039D -->
<!ENTITY Xi "&#926;"> <!-- greek capital letter xi, U+039E ISOgrk3 -->
<!ENTITY Omicron "&#927;"> <!-- greek capital letter omicron, U+039F -->
<!ENTITY Pi "&#928;"> <!-- greek capital letter pi, U+03A0 ISOgrk3 -->
<!ENTITY Rho "&#929;"> <!-- greek capital letter rho, U+03A1 -->
<!-- there is no Sigmaf, and no U+03A2 character either -->
<!ENTITY Sigma "&#931;"> <!-- greek capital letter sigma,
U+03A3 ISOgrk3 -->
<!ENTITY Tau "&#932;"> <!-- greek capital letter tau, U+03A4 -->
<!ENTITY Upsilon "&#933;"> <!-- greek capital letter upsilon,
U+03A5 ISOgrk3 -->
<!ENTITY Phi "&#934;"> <!-- greek capital letter phi,
U+03A6 ISOgrk3 -->
<!ENTITY Chi "&#935;"> <!-- greek capital letter chi, U+03A7 -->
<!ENTITY Psi "&#936;"> <!-- greek capital letter psi,
U+03A8 ISOgrk3 -->
<!ENTITY Omega "&#937;"> <!-- greek capital letter omega,
U+03A9 ISOgrk3 -->
<!ENTITY alpha "&#945;"> <!-- greek small letter alpha,
U+03B1 ISOgrk3 -->
<!ENTITY beta "&#946;"> <!-- greek small letter beta, U+03B2 ISOgrk3 -->
<!ENTITY gamma "&#947;"> <!-- greek small letter gamma,
U+03B3 ISOgrk3 -->
<!ENTITY delta "&#948;"> <!-- greek small letter delta,
U+03B4 ISOgrk3 -->
<!ENTITY epsilon "&#949;"> <!-- greek small letter epsilon,
U+03B5 ISOgrk3 -->
<!ENTITY zeta "&#950;"> <!-- greek small letter zeta, U+03B6 ISOgrk3 -->
<!ENTITY eta "&#951;"> <!-- greek small letter eta, U+03B7 ISOgrk3 -->
<!ENTITY theta "&#952;"> <!-- greek small letter theta,
U+03B8 ISOgrk3 -->
<!ENTITY iota "&#953;"> <!-- greek small letter iota, U+03B9 ISOgrk3 -->
<!ENTITY kappa "&#954;"> <!-- greek small letter kappa,
U+03BA ISOgrk3 -->
<!ENTITY lambda "&#955;"> <!-- greek small letter lambda,
U+03BB ISOgrk3 -->
<!ENTITY mu "&#956;"> <!-- greek small letter mu, U+03BC ISOgrk3 -->
<!ENTITY nu "&#957;"> <!-- greek small letter nu, U+03BD ISOgrk3 -->
<!ENTITY xi "&#958;"> <!-- greek small letter xi, U+03BE ISOgrk3 -->
<!ENTITY omicron "&#959;"> <!-- greek small letter omicron, U+03BF NEW -->
<!ENTITY pi "&#960;"> <!-- greek small letter pi, U+03C0 ISOgrk3 -->
<!ENTITY rho "&#961;"> <!-- greek small letter rho, U+03C1 ISOgrk3 -->
<!ENTITY sigmaf "&#962;"> <!-- greek small letter final sigma,
U+03C2 ISOgrk3 -->
<!ENTITY sigma "&#963;"> <!-- greek small letter sigma,
U+03C3 ISOgrk3 -->
<!ENTITY tau "&#964;"> <!-- greek small letter tau, U+03C4 ISOgrk3 -->
<!ENTITY upsilon "&#965;"> <!-- greek small letter upsilon,
U+03C5 ISOgrk3 -->
<!ENTITY phi "&#966;"> <!-- greek small letter phi, U+03C6 ISOgrk3 -->
<!ENTITY chi "&#967;"> <!-- greek small letter chi, U+03C7 ISOgrk3 -->
<!ENTITY psi "&#968;"> <!-- greek small letter psi, U+03C8 ISOgrk3 -->
<!ENTITY omega "&#969;"> <!-- greek small letter omega,
U+03C9 ISOgrk3 -->
<!ENTITY thetasym "&#977;"> <!-- greek small letter theta symbol,
U+03D1 NEW -->
<!ENTITY upsih "&#978;"> <!-- greek upsilon with hook symbol,
U+03D2 NEW -->
<!ENTITY piv "&#982;"> <!-- greek pi symbol, U+03D6 ISOgrk3 -->
<!-- General Punctuation -->
<!ENTITY bull "&#8226;"> <!-- bullet = black small circle,
U+2022 ISOpub -->
<!-- bullet is NOT the same as bullet operator, U+2219 -->
<!ENTITY hellip "&#8230;"> <!-- horizontal ellipsis = three dot leader,
U+2026 ISOpub -->
<!ENTITY prime "&#8242;"> <!-- prime = minutes = feet, U+2032 ISOtech -->
<!ENTITY Prime "&#8243;"> <!-- double prime = seconds = inches,
U+2033 ISOtech -->
<!ENTITY oline "&#8254;"> <!-- overline = spacing overscore,
U+203E NEW -->
<!ENTITY frasl "&#8260;"> <!-- fraction slash, U+2044 NEW -->
<!-- Letterlike Symbols -->
<!ENTITY weierp "&#8472;"> <!-- script capital P = power set
= Weierstrass p, U+2118 ISOamso -->
<!ENTITY image "&#8465;"> <!-- blackletter capital I = imaginary part,
U+2111 ISOamso -->
<!ENTITY real "&#8476;"> <!-- blackletter capital R = real part symbol,
U+211C ISOamso -->
<!ENTITY trade "&#8482;"> <!-- trade mark sign, U+2122 ISOnum -->
<!ENTITY alefsym "&#8501;"> <!-- alef symbol = first transfinite cardinal,
U+2135 NEW -->
<!-- alef symbol is NOT the same as hebrew letter alef,
U+05D0 although the same glyph could be used to depict both characters -->
<!-- Arrows -->
<!ENTITY larr "&#8592;"> <!-- leftwards arrow, U+2190 ISOnum -->
<!ENTITY uarr "&#8593;"> <!-- upwards arrow, U+2191 ISOnum-->
<!ENTITY rarr "&#8594;"> <!-- rightwards arrow, U+2192 ISOnum -->
<!ENTITY darr "&#8595;"> <!-- downwards arrow, U+2193 ISOnum -->
<!ENTITY harr "&#8596;"> <!-- left right arrow, U+2194 ISOamsa -->
<!ENTITY crarr "&#8629;"> <!-- downwards arrow with corner leftwards
= carriage return, U+21B5 NEW -->
<!ENTITY lArr "&#8656;"> <!-- leftwards double arrow, U+21D0 ISOtech -->
<!-- Unicode does not say that lArr is the same as the 'is implied by' arrow
but also does not have any other character for that function. So ? lArr can
be used for 'is implied by' as ISOtech suggests -->
<!ENTITY uArr "&#8657;"> <!-- upwards double arrow, U+21D1 ISOamsa -->
<!ENTITY rArr "&#8658;"> <!-- rightwards double arrow,
U+21D2 ISOtech -->
<!-- Unicode does not say this is the 'implies' character but does not have
another character with this function so ?
rArr can be used for 'implies' as ISOtech suggests -->
<!ENTITY dArr "&#8659;"> <!-- downwards double arrow, U+21D3 ISOamsa -->
<!ENTITY hArr "&#8660;"> <!-- left right double arrow,
U+21D4 ISOamsa -->
<!-- Mathematical Operators -->
<!ENTITY forall "&#8704;"> <!-- for all, U+2200 ISOtech -->
<!ENTITY part "&#8706;"> <!-- partial differential, U+2202 ISOtech -->
<!ENTITY exist "&#8707;"> <!-- there exists, U+2203 ISOtech -->
<!ENTITY empty "&#8709;"> <!-- empty set = null set = diameter,
U+2205 ISOamso -->
<!ENTITY nabla "&#8711;"> <!-- nabla = backward difference,
U+2207 ISOtech -->
<!ENTITY isin "&#8712;"> <!-- element of, U+2208 ISOtech -->
<!ENTITY notin "&#8713;"> <!-- not an element of, U+2209 ISOtech -->
<!ENTITY ni "&#8715;"> <!-- contains as member, U+220B ISOtech -->
<!-- should there be a more memorable name than 'ni'? -->
<!ENTITY prod "&#8719;"> <!-- n-ary product = product sign,
U+220F ISOamsb -->
<!-- prod is NOT the same character as U+03A0 'greek capital letter pi' though
the same glyph might be used for both -->
<!ENTITY sum "&#8721;"> <!-- n-ary sumation, U+2211 ISOamsb -->
<!-- sum is NOT the same character as U+03A3 'greek capital letter sigma'
though the same glyph might be used for both -->
<!ENTITY minus "&#8722;"> <!-- minus sign, U+2212 ISOtech -->
<!ENTITY lowast "&#8727;"> <!-- asterisk operator, U+2217 ISOtech -->
<!ENTITY radic "&#8730;"> <!-- square root = radical sign,
U+221A ISOtech -->
<!ENTITY prop "&#8733;"> <!-- proportional to, U+221D ISOtech -->
<!ENTITY infin "&#8734;"> <!-- infinity, U+221E ISOtech -->
<!ENTITY ang "&#8736;"> <!-- angle, U+2220 ISOamso -->
<!ENTITY and "&#8743;"> <!-- logical and = wedge, U+2227 ISOtech -->
<!ENTITY or "&#8744;"> <!-- logical or = vee, U+2228 ISOtech -->
<!ENTITY cap "&#8745;"> <!-- intersection = cap, U+2229 ISOtech -->
<!ENTITY cup "&#8746;"> <!-- union = cup, U+222A ISOtech -->
<!ENTITY int "&#8747;"> <!-- integral, U+222B ISOtech -->
<!ENTITY there4 "&#8756;"> <!-- therefore, U+2234 ISOtech -->
<!ENTITY sim "&#8764;"> <!-- tilde operator = varies with = similar to,
U+223C ISOtech -->
<!-- tilde operator is NOT the same character as the tilde, U+007E,
although the same glyph might be used to represent both -->
<!ENTITY cong "&#8773;"> <!-- approximately equal to, U+2245 ISOtech -->
<!ENTITY asymp "&#8776;"> <!-- almost equal to = asymptotic to,
U+2248 ISOamsr -->
<!ENTITY ne "&#8800;"> <!-- not equal to, U+2260 ISOtech -->
<!ENTITY equiv "&#8801;"> <!-- identical to, U+2261 ISOtech -->
<!ENTITY le "&#8804;"> <!-- less-than or equal to, U+2264 ISOtech -->
<!ENTITY ge "&#8805;"> <!-- greater-than or equal to,
U+2265 ISOtech -->
<!ENTITY sub "&#8834;"> <!-- subset of, U+2282 ISOtech -->
<!ENTITY sup "&#8835;"> <!-- superset of, U+2283 ISOtech -->
<!-- note that nsup, 'not a superset of, U+2283' is not covered by the Symbol
font encoding and is not included. Should it be, for symmetry?
It is in ISOamsn -->
<!ENTITY nsub "&#8836;"> <!-- not a subset of, U+2284 ISOamsn -->
<!ENTITY sube "&#8838;"> <!-- subset of or equal to, U+2286 ISOtech -->
<!ENTITY supe "&#8839;"> <!-- superset of or equal to,
U+2287 ISOtech -->
<!ENTITY oplus "&#8853;"> <!-- circled plus = direct sum,
U+2295 ISOamsb -->
<!ENTITY otimes "&#8855;"> <!-- circled times = vector product,
U+2297 ISOamsb -->
<!ENTITY perp "&#8869;"> <!-- up tack = orthogonal to = perpendicular,
U+22A5 ISOtech -->
<!ENTITY sdot "&#8901;"> <!-- dot operator, U+22C5 ISOamsb -->
<!-- dot operator is NOT the same character as U+00B7 middle dot -->
<!-- Miscellaneous Technical -->
<!ENTITY lceil "&#8968;"> <!-- left ceiling = apl upstile,
U+2308 ISOamsc -->
<!ENTITY rceil "&#8969;"> <!-- right ceiling, U+2309 ISOamsc -->
<!ENTITY lfloor "&#8970;"> <!-- left floor = apl downstile,
U+230A ISOamsc -->
<!ENTITY rfloor "&#8971;"> <!-- right floor, U+230B ISOamsc -->
<!ENTITY lang "&#9001;"> <!-- left-pointing angle bracket = bra,
U+2329 ISOtech -->
<!-- lang is NOT the same character as U+003C 'less than'
or U+2039 'single left-pointing angle quotation mark' -->
<!ENTITY rang "&#9002;"> <!-- right-pointing angle bracket = ket,
U+232A ISOtech -->
<!-- rang is NOT the same character as U+003E 'greater than'
or U+203A 'single right-pointing angle quotation mark' -->
<!-- Geometric Shapes -->
<!ENTITY loz "&#9674;"> <!-- lozenge, U+25CA ISOpub -->
<!-- Miscellaneous Symbols -->
<!ENTITY spades "&#9824;"> <!-- black spade suit, U+2660 ISOpub -->
<!-- black here seems to mean filled as opposed to hollow -->
<!ENTITY clubs "&#9827;"> <!-- black club suit = shamrock,
U+2663 ISOpub -->
<!ENTITY hearts "&#9829;"> <!-- black heart suit = valentine,
U+2665 ISOpub -->
<!ENTITY diams "&#9830;"> <!-- black diamond suit, U+2666 ISOpub -->
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/dtd/xhtml1-strict2.dtd">
<html>
<head>
<title>HTML Strict Test</title>
<link rel="stylesheet" href="test.css" type="text/css"/>
</head>
<body>
<p class="class1">
Testing...
</p>
<div class="class">
Testing...
</div>
</body>
</html>
+9
View File
@@ -0,0 +1,9 @@
<!DOCTYPE html SYSTEM "xhtml1-strict.dtd">
<html>
<head>
<title>simple document</title>
</head>
<body>
<p>a simple paragraph</p>
</body>
</html>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,988 @@
<!--
Extensible HTML version 1.0 Strict DTD
This is the same as HTML 4.0 Strict except for
changes due to the differences between XML and SGML.
Namespace = http://www.w3.org/1999/xhtml
For further information, see: http://www.w3.org/TR/xhtml1
Copyright (c) 1998-2000 W3C (MIT, INRIA, Keio),
All Rights Reserved.
This DTD module is identified by the PUBLIC and SYSTEM identifiers:
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
$Revision: 1.1 $
$Date: 2000/01/26 14:08:56 $
-->
<!--================ Character mnemonic entities =========================-->
<!ENTITY % HTMLlat1 PUBLIC
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
"xhtml-lat1.ent">
%HTMLlat1;
<!ENTITY % HTMLsymbol PUBLIC
"-//W3C//ENTITIES Symbols for XHTML//EN"
"xhtml-symbol.ent">
%HTMLsymbol;
<!ENTITY % HTMLspecial PUBLIC
"-//W3C//ENTITIES Special for XHTML//EN"
"xhtml-special.ent">
%HTMLspecial;
<!--================== Imported Names ====================================-->
<!ENTITY % ContentType "CDATA">
<!-- media type, as per [RFC2045] -->
<!ENTITY % ContentTypes "CDATA">
<!-- comma-separated list of media types, as per [RFC2045] -->
<!ENTITY % Charset "CDATA">
<!-- a character encoding, as per [RFC2045] -->
<!ENTITY % Charsets "CDATA">
<!-- a space separated list of character encodings, as per [RFC2045] -->
<!ENTITY % LanguageCode "NMTOKEN">
<!-- a language code, as per [RFC1766] -->
<!ENTITY % Character "CDATA">
<!-- a single character from [ISO10646] -->
<!ENTITY % Number "CDATA">
<!-- one or more digits -->
<!ENTITY % LinkTypes "CDATA">
<!-- space-separated list of link types -->
<!ENTITY % MediaDesc "CDATA">
<!-- single or comma-separated list of media descriptors -->
<!ENTITY % URI "CDATA">
<!-- a Uniform Resource Identifier, see [RFC2396] -->
<!ENTITY % UriList "CDATA">
<!-- a space separated list of Uniform Resource Identifiers -->
<!ENTITY % Datetime "CDATA">
<!-- date and time information. ISO date format -->
<!ENTITY % Script "CDATA">
<!-- script expression -->
<!ENTITY % StyleSheet "CDATA">
<!-- style sheet data -->
<!ENTITY % Text "CDATA">
<!-- used for titles etc. -->
<!ENTITY % FrameTarget "NMTOKEN">
<!-- render in this frame -->
<!ENTITY % Length "CDATA">
<!-- nn for pixels or nn% for percentage length -->
<!ENTITY % MultiLength "CDATA">
<!-- pixel, percentage, or relative -->
<!ENTITY % MultiLengths "CDATA">
<!-- comma-separated list of MultiLength -->
<!ENTITY % Pixels "CDATA">
<!-- integer representing length in pixels -->
<!-- these are used for image maps -->
<!ENTITY % Shape "(rect|circle|poly|default)">
<!ENTITY % Coords "CDATA">
<!-- comma separated list of lengths -->
<!--=================== Generic Attributes ===============================-->
<!-- core attributes common to most elements
id document-wide unique id
class space separated list of classes
style associated style info
title advisory title/amplification
-->
<!ENTITY % coreattrs
"id ID #IMPLIED
class CDATA #IMPLIED
style %StyleSheet; #IMPLIED
title %Text; #IMPLIED"
>
<!-- internationalization attributes
lang language code (backwards compatible)
xml:lang language code (as per XML 1.0 spec)
dir direction for weak/neutral text
-->
<!ENTITY % i18n
"lang %LanguageCode; #IMPLIED
xml:lang %LanguageCode; #IMPLIED
dir (ltr|rtl) #IMPLIED"
>
<!-- attributes for common UI events
onclick a pointer button was clicked
ondblclick a pointer button was double clicked
onmousedown a pointer button was pressed down
onmouseup a pointer button was released
onmousemove a pointer was moved onto the element
onmouseout a pointer was moved away from the element
onkeypress a key was pressed and released
onkeydown a key was pressed down
onkeyup a key was released
-->
<!ENTITY % events
"onclick %Script; #IMPLIED
ondblclick %Script; #IMPLIED
onmousedown %Script; #IMPLIED
onmouseup %Script; #IMPLIED
onmouseover %Script; #IMPLIED
onmousemove %Script; #IMPLIED
onmouseout %Script; #IMPLIED
onkeypress %Script; #IMPLIED
onkeydown %Script; #IMPLIED
onkeyup %Script; #IMPLIED"
>
<!-- attributes for elements that can get the focus
accesskey accessibility key character
tabindex position in tabbing order
onfocus the element got the focus
onblur the element lost the focus
-->
<!ENTITY % focus
"accesskey %Character; #IMPLIED
tabindex %Number; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED"
>
<!ENTITY % attrs "%coreattrs; %i18n; %events;">
<!--=================== Text Elements ====================================-->
<!ENTITY % special
"br | span | bdo | object | img | map">
<!ENTITY % fontstyle "tt | i | b | big | small">
<!ENTITY % phrase "em | strong | dfn | code | q | sub | sup |
samp | kbd | var | cite | abbr | acronym">
<!ENTITY % inline.forms "input | select | textarea | label | button">
<!-- these can occur at block or inline level -->
<!ENTITY % misc "ins | del | script | noscript">
<!ENTITY % inline "a | %special; | %fontstyle; | %phrase; | %inline.forms;">
<!-- %Inline; covers inline or "text-level" elements -->
<!ENTITY % Inline "(#PCDATA | %inline; | %misc;)*">
<!--================== Block level elements ==============================-->
<!ENTITY % heading "h1|h2|h3|h4|h5|h6">
<!ENTITY % lists "ul | ol | dl">
<!ENTITY % blocktext "pre | hr | blockquote | address">
<!ENTITY % block
"p | %heading; | div | %lists; | %blocktext; | fieldset | table">
<!ENTITY % Block "(%block; | form | %misc;)*">
<!-- %Flow; mixes Block and Inline and is used for list items etc. -->
<!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*">
<!--================== Content models for exclusions =====================-->
<!-- a elements use %Inline; excluding a -->
<!ENTITY % a.content
"(#PCDATA | %special; | %fontstyle; | %phrase; | %inline.forms; | %misc;)*">
<!-- pre uses %Inline excluding img, object, big, small, sup or sup -->
<!ENTITY % pre.content
"(#PCDATA | a | br | span | bdo | map | tt | i | b |
%phrase; | %inline.forms;)*">
<!-- form uses %Block; excluding form -->
<!ENTITY % form.content "(%block; | %misc;)*">
<!-- button uses %Flow; but excludes a, form and form controls -->
<!ENTITY % button.content
"(#PCDATA | p | %heading; | div | %lists; | %blocktext; |
table | %special; | %fontstyle; | %phrase; | %misc;)*">
<!--================ Document Structure ==================================-->
<!-- the namespace URI designates the document profile -->
<!ELEMENT html (head, body)>
<!ATTLIST html
%i18n;
xmlns %URI; #FIXED 'http://www.w3.org/1999/xhtml'
>
<!--================ Document Head =======================================-->
<!ENTITY % head.misc "(script|style|meta|link|object)*">
<!-- content model is %head.misc; combined with a single
title and an optional base element in any order -->
<!ELEMENT head (%head.misc;,
((title, %head.misc;, (base, %head.misc;)?) |
(base, %head.misc;, (title, %head.misc;))))>
<!ATTLIST head
%i18n;
profile %URI; #IMPLIED
>
<!-- The title element is not considered part of the flow of text.
It should be displayed, for example as the page header or
window title. Exactly one title is required per document.
-->
<!ELEMENT title (#PCDATA)>
<!ATTLIST title %i18n;>
<!-- document base URI -->
<!ELEMENT base EMPTY>
<!ATTLIST base
href %URI; #IMPLIED
>
<!-- generic metainformation -->
<!ELEMENT meta EMPTY>
<!ATTLIST meta
%i18n;
http-equiv CDATA #IMPLIED
name CDATA #IMPLIED
content CDATA #REQUIRED
scheme CDATA #IMPLIED
>
<!--
Relationship values can be used in principle:
a) for document specific toolbars/menus when used
with the link element in document head e.g.
start, contents, previous, next, index, end, help
b) to link to a separate style sheet (rel="stylesheet")
c) to make a link to a script (rel="script")
d) by stylesheets to control how collections of
html nodes are rendered into printed documents
e) to make a link to a printable version of this document
e.g. a PostScript or PDF version (rel="alternate" media="print")
-->
<!ELEMENT link EMPTY>
<!ATTLIST link
%attrs;
charset %Charset; #IMPLIED
href %URI; #IMPLIED
hreflang %LanguageCode; #IMPLIED
type %ContentType; #IMPLIED
rel %LinkTypes; #IMPLIED
rev %LinkTypes; #IMPLIED
media %MediaDesc; #IMPLIED
>
<!-- style info, which may include CDATA sections -->
<!ELEMENT style (#PCDATA)>
<!ATTLIST style
%i18n;
type %ContentType; #REQUIRED
media %MediaDesc; #IMPLIED
title %Text; #IMPLIED
xml:space (preserve) #FIXED 'preserve'
>
<!-- script statements, which may include CDATA sections -->
<!ELEMENT script (#PCDATA)>
<!ATTLIST script
charset %Charset; #IMPLIED
type %ContentType; #REQUIRED
src %URI; #IMPLIED
defer (defer) #IMPLIED
xml:space (preserve) #FIXED 'preserve'
>
<!-- alternate content container for non script-based rendering -->
<!ELEMENT noscript %Block;>
<!ATTLIST noscript
%attrs;
>
<!--=================== Document Body ====================================-->
<!ELEMENT body %Block;>
<!ATTLIST body
%attrs;
onload %Script; #IMPLIED
onunload %Script; #IMPLIED
>
<!ELEMENT div %Flow;> <!-- generic language/style container -->
<!ATTLIST div
%attrs;
>
<!--=================== Paragraphs =======================================-->
<!ELEMENT p %Inline;>
<!ATTLIST p
%attrs;
>
<!--=================== Headings =========================================-->
<!--
There are six levels of headings from h1 (the most important)
to h6 (the least important).
-->
<!ELEMENT h1 %Inline;>
<!ATTLIST h1
%attrs;
>
<!ELEMENT h2 %Inline;>
<!ATTLIST h2
%attrs;
>
<!ELEMENT h3 %Inline;>
<!ATTLIST h3
%attrs;
>
<!ELEMENT h4 %Inline;>
<!ATTLIST h4
%attrs;
>
<!ELEMENT h5 %Inline;>
<!ATTLIST h5
%attrs;
>
<!ELEMENT h6 %Inline;>
<!ATTLIST h6
%attrs;
>
<!--=================== Lists ============================================-->
<!-- Unordered list -->
<!ELEMENT ul (li)+>
<!ATTLIST ul
%attrs;
>
<!-- Ordered (numbered) list -->
<!ELEMENT ol (li)+>
<!ATTLIST ol
%attrs;
>
<!-- list item -->
<!ELEMENT li %Flow;>
<!ATTLIST li
%attrs;
>
<!-- definition lists - dt for term, dd for its definition -->
<!ELEMENT dl (dt|dd)+>
<!ATTLIST dl
%attrs;
>
<!ELEMENT dt %Inline;>
<!ATTLIST dt
%attrs;
>
<!ELEMENT dd %Flow;>
<!ATTLIST dd
%attrs;
>
<!--=================== Address ==========================================-->
<!-- information on author -->
<!ELEMENT address %Inline;>
<!ATTLIST address
%attrs;
>
<!--=================== Horizontal Rule ==================================-->
<!ELEMENT hr EMPTY>
<!ATTLIST hr
%attrs;
>
<!--=================== Preformatted Text ================================-->
<!-- content is %Inline; excluding "img|object|big|small|sub|sup" -->
<!ELEMENT pre %pre.content;>
<!ATTLIST pre
%attrs;
xml:space (preserve) #FIXED 'preserve'
>
<!--=================== Block-like Quotes ================================-->
<!ELEMENT blockquote %Block;>
<!ATTLIST blockquote
%attrs;
cite %URI; #IMPLIED
>
<!--=================== Inserted/Deleted Text ============================-->
<!--
ins/del are allowed in block and inline content, but its
inappropriate to include block content within an ins element
occurring in inline content.
-->
<!ELEMENT ins %Flow;>
<!ATTLIST ins
%attrs;
cite %URI; #IMPLIED
datetime %Datetime; #IMPLIED
>
<!ELEMENT del %Flow;>
<!ATTLIST del
%attrs;
cite %URI; #IMPLIED
datetime %Datetime; #IMPLIED
>
<!--================== The Anchor Element ================================-->
<!-- content is %Inline; except that anchors shouldn't be nested -->
<!ELEMENT a %a.content;>
<!ATTLIST a
%attrs;
charset %Charset; #IMPLIED
type %ContentType; #IMPLIED
name NMTOKEN #IMPLIED
href %URI; #IMPLIED
hreflang %LanguageCode; #IMPLIED
rel %LinkTypes; #IMPLIED
rev %LinkTypes; #IMPLIED
accesskey %Character; #IMPLIED
shape %Shape; "rect"
coords %Coords; #IMPLIED
tabindex %Number; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
>
<!--===================== Inline Elements ================================-->
<!ELEMENT span %Inline;> <!-- generic language/style container -->
<!ATTLIST span
%attrs;
>
<!ELEMENT bdo %Inline;> <!-- I18N BiDi over-ride -->
<!ATTLIST bdo
%coreattrs;
%events;
lang %LanguageCode; #IMPLIED
xml:lang %LanguageCode; #IMPLIED
dir (ltr|rtl) #REQUIRED
>
<!ELEMENT br EMPTY> <!-- forced line break -->
<!ATTLIST br
%coreattrs;
>
<!ELEMENT em %Inline;> <!-- emphasis -->
<!ATTLIST em %attrs;>
<!ELEMENT strong %Inline;> <!-- strong emphasis -->
<!ATTLIST strong %attrs;>
<!ELEMENT dfn %Inline;> <!-- definitional -->
<!ATTLIST dfn %attrs;>
<!ELEMENT code %Inline;> <!-- program code -->
<!ATTLIST code %attrs;>
<!ELEMENT samp %Inline;> <!-- sample -->
<!ATTLIST samp %attrs;>
<!ELEMENT kbd %Inline;> <!-- something user would type -->
<!ATTLIST kbd %attrs;>
<!ELEMENT var %Inline;> <!-- variable -->
<!ATTLIST var %attrs;>
<!ELEMENT cite %Inline;> <!-- citation -->
<!ATTLIST cite %attrs;>
<!ELEMENT abbr %Inline;> <!-- abbreviation -->
<!ATTLIST abbr %attrs;>
<!ELEMENT acronym %Inline;> <!-- acronym -->
<!ATTLIST acronym %attrs;>
<!ELEMENT q %Inline;> <!-- inlined quote -->
<!ATTLIST q
%attrs;
cite %URI; #IMPLIED
>
<!ELEMENT sub %Inline;> <!-- subscript -->
<!ATTLIST sub %attrs;>
<!ELEMENT sup %Inline;> <!-- superscript -->
<!ATTLIST sup %attrs;>
<!ELEMENT tt %Inline;> <!-- fixed pitch font -->
<!ATTLIST tt %attrs;>
<!ELEMENT i %Inline;> <!-- italic font -->
<!ATTLIST i %attrs;>
<!ELEMENT b %Inline;> <!-- bold font -->
<!ATTLIST b %attrs;>
<!ELEMENT big %Inline;> <!-- bigger font -->
<!ATTLIST big %attrs;>
<!ELEMENT small %Inline;> <!-- smaller font -->
<!ATTLIST small %attrs;>
<!--==================== Object ======================================-->
<!--
object is used to embed objects as part of HTML pages.
param elements should precede other content. Parameters
can also be expressed as attribute/value pairs on the
object element itself when brevity is desired.
-->
<!ELEMENT object (#PCDATA | param | %block; | form | %inline; | %misc;)*>
<!ATTLIST object
%attrs;
declare (declare) #IMPLIED
classid %URI; #IMPLIED
codebase %URI; #IMPLIED
data %URI; #IMPLIED
type %ContentType; #IMPLIED
codetype %ContentType; #IMPLIED
archive %UriList; #IMPLIED
standby %Text; #IMPLIED
height %Length; #IMPLIED
width %Length; #IMPLIED
usemap %URI; #IMPLIED
name NMTOKEN #IMPLIED
tabindex %Number; #IMPLIED
>
<!--
param is used to supply a named property value.
In XML it would seem natural to follow RDF and support an
abbreviated syntax where the param elements are replaced
by attribute value pairs on the object start tag.
-->
<!ELEMENT param EMPTY>
<!ATTLIST param
id ID #IMPLIED
name CDATA #IMPLIED
value CDATA #IMPLIED
valuetype (data|ref|object) "data"
type %ContentType; #IMPLIED
>
<!--=================== Images ===========================================-->
<!--
To avoid accessibility problems for people who aren't
able to see the image, you should provide a text
description using the alt and longdesc attributes.
In addition, avoid the use of server-side image maps.
Note that in this DTD there is no name attribute. That
is only available in the transitional and frameset DTD.
-->
<!ELEMENT img EMPTY>
<!ATTLIST img
%attrs;
src %URI; #REQUIRED
alt %Text; #REQUIRED
longdesc %URI; #IMPLIED
height %Length; #IMPLIED
width %Length; #IMPLIED
usemap %URI; #IMPLIED
ismap (ismap) #IMPLIED
>
<!-- usemap points to a map element which may be in this document
or an external document, although the latter is not widely supported -->
<!--================== Client-side image maps ============================-->
<!-- These can be placed in the same document or grouped in a
separate document although this isn't yet widely supported -->
<!ELEMENT map ((%block; | form | %misc;)+ | area+)>
<!ATTLIST map
%i18n;
%events;
id ID #REQUIRED
class CDATA #IMPLIED
style %StyleSheet; #IMPLIED
title %Text; #IMPLIED
name NMTOKEN #IMPLIED
>
<!ELEMENT area EMPTY>
<!ATTLIST area
%attrs;
shape %Shape; "rect"
coords %Coords; #IMPLIED
href %URI; #IMPLIED
nohref (nohref) #IMPLIED
alt %Text; #REQUIRED
tabindex %Number; #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
>
<!--================ Forms ===============================================-->
<!ELEMENT form %form.content;> <!-- forms shouldn't be nested -->
<!ATTLIST form
%attrs;
action %URI; #REQUIRED
method (get|post) "get"
enctype %ContentType; "application/x-www-form-urlencoded"
onsubmit %Script; #IMPLIED
onreset %Script; #IMPLIED
accept %ContentTypes; #IMPLIED
accept-charset %Charsets; #IMPLIED
>
<!--
Each label must not contain more than ONE field
Label elements shouldn't be nested.
-->
<!ELEMENT label %Inline;>
<!ATTLIST label
%attrs;
for IDREF #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
>
<!ENTITY % InputType
"(text | password | checkbox |
radio | submit | reset |
file | hidden | image | button)"
>
<!-- the name attribute is required for all but submit & reset -->
<!ELEMENT input EMPTY> <!-- form control -->
<!ATTLIST input
%attrs;
type %InputType; "text"
name CDATA #IMPLIED
value CDATA #IMPLIED
checked (checked) #IMPLIED
disabled (disabled) #IMPLIED
readonly (readonly) #IMPLIED
size CDATA #IMPLIED
maxlength %Number; #IMPLIED
src %URI; #IMPLIED
alt CDATA #IMPLIED
usemap %URI; #IMPLIED
tabindex %Number; #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
onselect %Script; #IMPLIED
onchange %Script; #IMPLIED
accept %ContentTypes; #IMPLIED
>
<!ELEMENT select (optgroup|option)+> <!-- option selector -->
<!ATTLIST select
%attrs;
name CDATA #IMPLIED
size %Number; #IMPLIED
multiple (multiple) #IMPLIED
disabled (disabled) #IMPLIED
tabindex %Number; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
onchange %Script; #IMPLIED
>
<!ELEMENT optgroup (option)+> <!-- option group -->
<!ATTLIST optgroup
%attrs;
disabled (disabled) #IMPLIED
label %Text; #REQUIRED
>
<!ELEMENT option (#PCDATA)> <!-- selectable choice -->
<!ATTLIST option
%attrs;
selected (selected) #IMPLIED
disabled (disabled) #IMPLIED
label %Text; #IMPLIED
value CDATA #IMPLIED
>
<!ELEMENT textarea (#PCDATA)> <!-- multi-line text field -->
<!ATTLIST textarea
%attrs;
name CDATA #IMPLIED
rows %Number; #REQUIRED
cols %Number; #REQUIRED
disabled (disabled) #IMPLIED
readonly (readonly) #IMPLIED
tabindex %Number; #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
onselect %Script; #IMPLIED
onchange %Script; #IMPLIED
>
<!--
The fieldset element is used to group form fields.
Only one legend element should occur in the content
and if present should only be preceded by whitespace.
-->
<!ELEMENT fieldset (#PCDATA | legend | %block; | form | %inline; | %misc;)*>
<!ATTLIST fieldset
%attrs;
>
<!ELEMENT legend %Inline;> <!-- fieldset label -->
<!ATTLIST legend
%attrs;
accesskey %Character; #IMPLIED
>
<!--
Content is %Flow; excluding a, form and form controls
-->
<!ELEMENT button %button.content;> <!-- push button -->
<!ATTLIST button
%attrs;
name CDATA #IMPLIED
value CDATA #IMPLIED
type (button|submit|reset) "submit"
disabled (disabled) #IMPLIED
tabindex %Number; #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
>
<!--======================= Tables =======================================-->
<!-- Derived from IETF HTML table standard, see [RFC1942] -->
<!--
The border attribute sets the thickness of the frame around the
table. The default units are screen pixels.
The frame attribute specifies which parts of the frame around
the table should be rendered. The values are not the same as
CALS to avoid a name clash with the valign attribute.
-->
<!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
<!--
The rules attribute defines which rules to draw between cells:
If rules is absent then assume:
"none" if border is absent or border="0" otherwise "all"
-->
<!ENTITY % TRules "(none | groups | rows | cols | all)">
<!-- horizontal placement of table relative to document -->
<!ENTITY % TAlign "(left|center|right)">
<!-- horizontal alignment attributes for cell contents
char alignment char, e.g. char=':'
charoff offset for alignment char
-->
<!ENTITY % cellhalign
"align (left|center|right|justify|char) #IMPLIED
char %Character; #IMPLIED
charoff %Length; #IMPLIED"
>
<!-- vertical alignment attributes for cell contents -->
<!ENTITY % cellvalign
"valign (top|middle|bottom|baseline) #IMPLIED"
>
<!ELEMENT table
(caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))>
<!ELEMENT caption %Inline;>
<!ELEMENT thead (tr)+>
<!ELEMENT tfoot (tr)+>
<!ELEMENT tbody (tr)+>
<!ELEMENT colgroup (col)*>
<!ELEMENT col EMPTY>
<!ELEMENT tr (th|td)+>
<!ELEMENT th %Flow;>
<!ELEMENT td %Flow;>
<!ATTLIST table
%attrs;
summary %Text; #IMPLIED
width %Length; #IMPLIED
border %Pixels; #IMPLIED
frame %TFrame; #IMPLIED
rules %TRules; #IMPLIED
cellspacing %Length; #IMPLIED
cellpadding %Length; #IMPLIED
>
<!ENTITY % CAlign "(top|bottom|left|right)">
<!ATTLIST caption
%attrs;
>
<!--
colgroup groups a set of col elements. It allows you to group
several semantically related columns together.
-->
<!ATTLIST colgroup
%attrs;
span %Number; "1"
width %MultiLength; #IMPLIED
%cellhalign;
%cellvalign;
>
<!--
col elements define the alignment properties for cells in
one or more columns.
The width attribute specifies the width of the columns, e.g.
width=64 width in screen pixels
width=0.5* relative width of 0.5
The span attribute causes the attributes of one
col element to apply to more than one column.
-->
<!ATTLIST col
%attrs;
span %Number; "1"
width %MultiLength; #IMPLIED
%cellhalign;
%cellvalign;
>
<!--
Use thead to duplicate headers when breaking table
across page boundaries, or for static headers when
tbody sections are rendered in scrolling panel.
Use tfoot to duplicate footers when breaking table
across page boundaries, or for static footers when
tbody sections are rendered in scrolling panel.
Use multiple tbody sections when rules are needed
between groups of table rows.
-->
<!ATTLIST thead
%attrs;
%cellhalign;
%cellvalign;
>
<!ATTLIST tfoot
%attrs;
%cellhalign;
%cellvalign;
>
<!ATTLIST tbody
%attrs;
%cellhalign;
%cellvalign;
>
<!ATTLIST tr
%attrs;
%cellhalign;
%cellvalign;
>
<!-- Scope is simpler than headers attribute for common tables -->
<!ENTITY % Scope "(row|col|rowgroup|colgroup)">
<!-- th is for headers, td for data and for cells acting as both -->
<!ATTLIST th
%attrs;
abbr %Text; #IMPLIED
axis CDATA #IMPLIED
headers IDREFS #IMPLIED
scope %Scope; #IMPLIED
rowspan %Number; "1"
colspan %Number; "1"
%cellhalign;
%cellvalign;
>
<!ATTLIST td
%attrs;
abbr %Text; #IMPLIED
axis CDATA #IMPLIED
headers IDREFS #IMPLIED
scope %Scope; #IMPLIED
rowspan %Number; "1"
colspan %Number; "1"
%cellhalign;
%cellvalign;
>
@@ -0,0 +1,988 @@
<!--
Extensible HTML version 1.0 Strict DTD
This is the same as HTML 4.0 Strict except for
changes due to the differences between XML and SGML.
Namespace = http://www.w3.org/1999/xhtml
For further information, see: http://www.w3.org/TR/xhtml1
Copyright (c) 1998-2000 W3C (MIT, INRIA, Keio),
All Rights Reserved.
This DTD module is identified by the PUBLIC and SYSTEM identifiers:
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
$Revision: 1.1 $
$Date: 2004/11/30 12:36:17 $
-->
<!--================ Character mnemonic entities =========================-->
<!ENTITY % HTMLlat1 PUBLIC
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
"_xhtml-lat1.ent">
%HTMLlat1;
<!ENTITY % HTMLsymbol PUBLIC
"-//W3C//ENTITIES Symbols for XHTML//EN"
"_xhtml-symbol.ent">
%HTMLsymbol;
<!ENTITY % HTMLspecial PUBLIC
"-//W3C//ENTITIES Special for XHTML//EN"
"_xhtml-special.ent">
%HTMLspecial;
<!--================== Imported Names ====================================-->
<!ENTITY % ContentType "CDATA">
<!-- media type, as per [RFC2045] -->
<!ENTITY % ContentTypes "CDATA">
<!-- comma-separated list of media types, as per [RFC2045] -->
<!ENTITY % Charset "CDATA">
<!-- a character encoding, as per [RFC2045] -->
<!ENTITY % Charsets "CDATA">
<!-- a space separated list of character encodings, as per [RFC2045] -->
<!ENTITY % LanguageCode "NMTOKEN">
<!-- a language code, as per [RFC1766] -->
<!ENTITY % Character "CDATA">
<!-- a single character from [ISO10646] -->
<!ENTITY % Number "CDATA">
<!-- one or more digits -->
<!ENTITY % LinkTypes "CDATA">
<!-- space-separated list of link types -->
<!ENTITY % MediaDesc "CDATA">
<!-- single or comma-separated list of media descriptors -->
<!ENTITY % URI "CDATA">
<!-- a Uniform Resource Identifier, see [RFC2396] -->
<!ENTITY % UriList "CDATA">
<!-- a space separated list of Uniform Resource Identifiers -->
<!ENTITY % Datetime "CDATA">
<!-- date and time information. ISO date format -->
<!ENTITY % Script "CDATA">
<!-- script expression -->
<!ENTITY % StyleSheet "CDATA">
<!-- style sheet data -->
<!ENTITY % Text "CDATA">
<!-- used for titles etc. -->
<!ENTITY % FrameTarget "NMTOKEN">
<!-- render in this frame -->
<!ENTITY % Length "CDATA">
<!-- nn for pixels or nn% for percentage length -->
<!ENTITY % MultiLength "CDATA">
<!-- pixel, percentage, or relative -->
<!ENTITY % MultiLengths "CDATA">
<!-- comma-separated list of MultiLength -->
<!ENTITY % Pixels "CDATA">
<!-- integer representing length in pixels -->
<!-- these are used for image maps -->
<!ENTITY % Shape "(rect|circle|poly|default)">
<!ENTITY % Coords "CDATA">
<!-- comma separated list of lengths -->
<!--=================== Generic Attributes ===============================-->
<!-- core attributes common to most elements
id document-wide unique id
class space separated list of classes
style associated style info
title advisory title/amplification
-->
<!ENTITY % coreattrs
"id ID #IMPLIED
class CDATA #IMPLIED
style %StyleSheet; #IMPLIED
title %Text; #IMPLIED"
>
<!-- internationalization attributes
lang language code (backwards compatible)
xml:lang language code (as per XML 1.0 spec)
dir direction for weak/neutral text
-->
<!ENTITY % i18n
"lang %LanguageCode; #IMPLIED
xml:lang %LanguageCode; #IMPLIED
dir (ltr|rtl) #IMPLIED"
>
<!-- attributes for common UI events
onclick a pointer button was clicked
ondblclick a pointer button was double clicked
onmousedown a pointer button was pressed down
onmouseup a pointer button was released
onmousemove a pointer was moved onto the element
onmouseout a pointer was moved away from the element
onkeypress a key was pressed and released
onkeydown a key was pressed down
onkeyup a key was released
-->
<!ENTITY % events
"onclick %Script; #IMPLIED
ondblclick %Script; #IMPLIED
onmousedown %Script; #IMPLIED
onmouseup %Script; #IMPLIED
onmouseover %Script; #IMPLIED
onmousemove %Script; #IMPLIED
onmouseout %Script; #IMPLIED
onkeypress %Script; #IMPLIED
onkeydown %Script; #IMPLIED
onkeyup %Script; #IMPLIED"
>
<!-- attributes for elements that can get the focus
accesskey accessibility key character
tabindex position in tabbing order
onfocus the element got the focus
onblur the element lost the focus
-->
<!ENTITY % focus
"accesskey %Character; #IMPLIED
tabindex %Number; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED"
>
<!ENTITY % attrs "%coreattrs; %i18n; %events;">
<!--=================== Text Elements ====================================-->
<!ENTITY % special
"br | span | bdo | object | img | map">
<!ENTITY % fontstyle "tt | i | b | big | small">
<!ENTITY % phrase "em | strong | dfn | code | q | sub | sup |
samp | kbd | var | cite | abbr | acronym">
<!ENTITY % inline.forms "input | select | textarea | label | button">
<!-- these can occur at block or inline level -->
<!ENTITY % misc "ins | del | script | noscript">
<!ENTITY % inline "a | %special; | %fontstyle; | %phrase; | %inline.forms;">
<!-- %Inline; covers inline or "text-level" elements -->
<!ENTITY % Inline "(#PCDATA | %inline; | %misc;)*">
<!--================== Block level elements ==============================-->
<!ENTITY % heading "h1|h2|h3|h4|h5|h6">
<!ENTITY % lists "ul | ol | dl">
<!ENTITY % blocktext "pre | hr | blockquote | address">
<!ENTITY % block
"p | %heading; | div | %lists; | %blocktext; | fieldset | table">
<!ENTITY % Block "(%block; | form | %misc;)*">
<!-- %Flow; mixes Block and Inline and is used for list items etc. -->
<!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*">
<!--================== Content models for exclusions =====================-->
<!-- a elements use %Inline; excluding a -->
<!ENTITY % a.content
"(#PCDATA | %special; | %fontstyle; | %phrase; | %inline.forms; | %misc;)*">
<!-- pre uses %Inline excluding img, object, big, small, sup or sup -->
<!ENTITY % pre.content
"(#PCDATA | a | br | span | bdo | map | tt | i | b |
%phrase; | %inline.forms;)*">
<!-- form uses %Block; excluding form -->
<!ENTITY % form.content "(%block; | %misc;)*">
<!-- button uses %Flow; but excludes a, form and form controls -->
<!ENTITY % button.content
"(#PCDATA | p | %heading; | div | %lists; | %blocktext; |
table | %special; | %fontstyle; | %phrase; | %misc;)*">
<!--================ Document Structure ==================================-->
<!-- the namespace URI designates the document profile -->
<!ELEMENT html (head, body)>
<!ATTLIST html
%i18n;
xmlns %URI; #FIXED 'http://www.w3.org/1999/xhtml'
>
<!--================ Document Head =======================================-->
<!ENTITY % head.misc "(script|style|meta|link|object)*">
<!-- content model is %head.misc; combined with a single
title and an optional base element in any order -->
<!ELEMENT head (%head.misc;,
((title, %head.misc;, (base, %head.misc;)?) |
(base, %head.misc;, (title, %head.misc;))))>
<!ATTLIST head
%i18n;
profile %URI; #IMPLIED
>
<!-- The title element is not considered part of the flow of text.
It should be displayed, for example as the page header or
window title. Exactly one title is required per document.
-->
<!ELEMENT title (#PCDATA)>
<!ATTLIST title %i18n;>
<!-- document base URI -->
<!ELEMENT base EMPTY>
<!ATTLIST base
href %URI; #IMPLIED
>
<!-- generic metainformation -->
<!ELEMENT meta EMPTY>
<!ATTLIST meta
%i18n;
http-equiv CDATA #IMPLIED
name CDATA #IMPLIED
content CDATA #REQUIRED
scheme CDATA #IMPLIED
>
<!--
Relationship values can be used in principle:
a) for document specific toolbars/menus when used
with the link element in document head e.g.
start, contents, previous, next, index, end, help
b) to link to a separate style sheet (rel="stylesheet")
c) to make a link to a script (rel="script")
d) by stylesheets to control how collections of
html nodes are rendered into printed documents
e) to make a link to a printable version of this document
e.g. a PostScript or PDF version (rel="alternate" media="print")
-->
<!ELEMENT link EMPTY>
<!ATTLIST link
%attrs;
charset %Charset; #IMPLIED
href %URI; #IMPLIED
hreflang %LanguageCode; #IMPLIED
type %ContentType; #IMPLIED
rel %LinkTypes; #IMPLIED
rev %LinkTypes; #IMPLIED
media %MediaDesc; #IMPLIED
>
<!-- style info, which may include CDATA sections -->
<!ELEMENT style (#PCDATA)>
<!ATTLIST style
%i18n;
type %ContentType; #REQUIRED
media %MediaDesc; #IMPLIED
title %Text; #IMPLIED
xml:space (preserve) #FIXED 'preserve'
>
<!-- script statements, which may include CDATA sections -->
<!ELEMENT script (#PCDATA)>
<!ATTLIST script
charset %Charset; #IMPLIED
type %ContentType; #REQUIRED
src %URI; #IMPLIED
defer (defer) #IMPLIED
xml:space (preserve) #FIXED 'preserve'
>
<!-- alternate content container for non script-based rendering -->
<!ELEMENT noscript %Block;>
<!ATTLIST noscript
%attrs;
>
<!--=================== Document Body ====================================-->
<!ELEMENT body %Block;>
<!ATTLIST body
%attrs;
onload %Script; #IMPLIED
onunload %Script; #IMPLIED
>
<!ELEMENT div %Flow;> <!-- generic language/style container -->
<!ATTLIST div
%attrs;
>
<!--=================== Paragraphs =======================================-->
<!ELEMENT p %Inline;>
<!ATTLIST p
%attrs;
>
<!--=================== Headings =========================================-->
<!--
There are six levels of headings from h1 (the most important)
to h6 (the least important).
-->
<!ELEMENT h1 %Inline;>
<!ATTLIST h1
%attrs;
>
<!ELEMENT h2 %Inline;>
<!ATTLIST h2
%attrs;
>
<!ELEMENT h3 %Inline;>
<!ATTLIST h3
%attrs;
>
<!ELEMENT h4 %Inline;>
<!ATTLIST h4
%attrs;
>
<!ELEMENT h5 %Inline;>
<!ATTLIST h5
%attrs;
>
<!ELEMENT h6 %Inline;>
<!ATTLIST h6
%attrs;
>
<!--=================== Lists ============================================-->
<!-- Unordered list -->
<!ELEMENT ul (li)+>
<!ATTLIST ul
%attrs;
>
<!-- Ordered (numbered) list -->
<!ELEMENT ol (li)+>
<!ATTLIST ol
%attrs;
>
<!-- list item -->
<!ELEMENT li %Flow;>
<!ATTLIST li
%attrs;
>
<!-- definition lists - dt for term, dd for its definition -->
<!ELEMENT dl (dt|dd)+>
<!ATTLIST dl
%attrs;
>
<!ELEMENT dt %Inline;>
<!ATTLIST dt
%attrs;
>
<!ELEMENT dd %Flow;>
<!ATTLIST dd
%attrs;
>
<!--=================== Address ==========================================-->
<!-- information on author -->
<!ELEMENT address %Inline;>
<!ATTLIST address
%attrs;
>
<!--=================== Horizontal Rule ==================================-->
<!ELEMENT hr EMPTY>
<!ATTLIST hr
%attrs;
>
<!--=================== Preformatted Text ================================-->
<!-- content is %Inline; excluding "img|object|big|small|sub|sup" -->
<!ELEMENT pre %pre.content;>
<!ATTLIST pre
%attrs;
xml:space (preserve) #FIXED 'preserve'
>
<!--=================== Block-like Quotes ================================-->
<!ELEMENT blockquote %Block;>
<!ATTLIST blockquote
%attrs;
cite %URI; #IMPLIED
>
<!--=================== Inserted/Deleted Text ============================-->
<!--
ins/del are allowed in block and inline content, but its
inappropriate to include block content within an ins element
occurring in inline content.
-->
<!ELEMENT ins %Flow;>
<!ATTLIST ins
%attrs;
cite %URI; #IMPLIED
datetime %Datetime; #IMPLIED
>
<!ELEMENT del %Flow;>
<!ATTLIST del
%attrs;
cite %URI; #IMPLIED
datetime %Datetime; #IMPLIED
>
<!--================== The Anchor Element ================================-->
<!-- content is %Inline; except that anchors shouldn't be nested -->
<!ELEMENT a %a.content;>
<!ATTLIST a
%attrs;
charset %Charset; #IMPLIED
type %ContentType; #IMPLIED
name NMTOKEN #IMPLIED
href %URI; #IMPLIED
hreflang %LanguageCode; #IMPLIED
rel %LinkTypes; #IMPLIED
rev %LinkTypes; #IMPLIED
accesskey %Character; #IMPLIED
shape %Shape; "rect"
coords %Coords; #IMPLIED
tabindex %Number; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
>
<!--===================== Inline Elements ================================-->
<!ELEMENT span %Inline;> <!-- generic language/style container -->
<!ATTLIST span
%attrs;
>
<!ELEMENT bdo %Inline;> <!-- I18N BiDi over-ride -->
<!ATTLIST bdo
%coreattrs;
%events;
lang %LanguageCode; #IMPLIED
xml:lang %LanguageCode; #IMPLIED
dir (ltr|rtl) #REQUIRED
>
<!ELEMENT br EMPTY> <!-- forced line break -->
<!ATTLIST br
%coreattrs;
>
<!ELEMENT em %Inline;> <!-- emphasis -->
<!ATTLIST em %attrs;>
<!ELEMENT strong %Inline;> <!-- strong emphasis -->
<!ATTLIST strong %attrs;>
<!ELEMENT dfn %Inline;> <!-- definitional -->
<!ATTLIST dfn %attrs;>
<!ELEMENT code %Inline;> <!-- program code -->
<!ATTLIST code %attrs;>
<!ELEMENT samp %Inline;> <!-- sample -->
<!ATTLIST samp %attrs;>
<!ELEMENT kbd %Inline;> <!-- something user would type -->
<!ATTLIST kbd %attrs;>
<!ELEMENT var %Inline;> <!-- variable -->
<!ATTLIST var %attrs;>
<!ELEMENT cite %Inline;> <!-- citation -->
<!ATTLIST cite %attrs;>
<!ELEMENT abbr %Inline;> <!-- abbreviation -->
<!ATTLIST abbr %attrs;>
<!ELEMENT acronym %Inline;> <!-- acronym -->
<!ATTLIST acronym %attrs;>
<!ELEMENT q %Inline;> <!-- inlined quote -->
<!ATTLIST q
%attrs;
cite %URI; #IMPLIED
>
<!ELEMENT sub %Inline;> <!-- subscript -->
<!ATTLIST sub %attrs;>
<!ELEMENT sup %Inline;> <!-- superscript -->
<!ATTLIST sup %attrs;>
<!ELEMENT tt %Inline;> <!-- fixed pitch font -->
<!ATTLIST tt %attrs;>
<!ELEMENT i %Inline;> <!-- italic font -->
<!ATTLIST i %attrs;>
<!ELEMENT b %Inline;> <!-- bold font -->
<!ATTLIST b %attrs;>
<!ELEMENT big %Inline;> <!-- bigger font -->
<!ATTLIST big %attrs;>
<!ELEMENT small %Inline;> <!-- smaller font -->
<!ATTLIST small %attrs;>
<!--==================== Object ======================================-->
<!--
object is used to embed objects as part of HTML pages.
param elements should precede other content. Parameters
can also be expressed as attribute/value pairs on the
object element itself when brevity is desired.
-->
<!ELEMENT object (#PCDATA | param | %block; | form | %inline; | %misc;)*>
<!ATTLIST object
%attrs;
declare (declare) #IMPLIED
classid %URI; #IMPLIED
codebase %URI; #IMPLIED
data %URI; #IMPLIED
type %ContentType; #IMPLIED
codetype %ContentType; #IMPLIED
archive %UriList; #IMPLIED
standby %Text; #IMPLIED
height %Length; #IMPLIED
width %Length; #IMPLIED
usemap %URI; #IMPLIED
name NMTOKEN #IMPLIED
tabindex %Number; #IMPLIED
>
<!--
param is used to supply a named property value.
In XML it would seem natural to follow RDF and support an
abbreviated syntax where the param elements are replaced
by attribute value pairs on the object start tag.
-->
<!ELEMENT param EMPTY>
<!ATTLIST param
id ID #IMPLIED
name CDATA #IMPLIED
value CDATA #IMPLIED
valuetype (data|ref|object) "data"
type %ContentType; #IMPLIED
>
<!--=================== Images ===========================================-->
<!--
To avoid accessibility problems for people who aren't
able to see the image, you should provide a text
description using the alt and longdesc attributes.
In addition, avoid the use of server-side image maps.
Note that in this DTD there is no name attribute. That
is only available in the transitional and frameset DTD.
-->
<!ELEMENT img EMPTY>
<!ATTLIST img
%attrs;
src %URI; #REQUIRED
alt %Text; #REQUIRED
longdesc %URI; #IMPLIED
height %Length; #IMPLIED
width %Length; #IMPLIED
usemap %URI; #IMPLIED
ismap (ismap) #IMPLIED
>
<!-- usemap points to a map element which may be in this document
or an external document, although the latter is not widely supported -->
<!--================== Client-side image maps ============================-->
<!-- These can be placed in the same document or grouped in a
separate document although this isn't yet widely supported -->
<!ELEMENT map ((%block; | form | %misc;)+ | area+)>
<!ATTLIST map
%i18n;
%events;
id ID #REQUIRED
class CDATA #IMPLIED
style %StyleSheet; #IMPLIED
title %Text; #IMPLIED
name NMTOKEN #IMPLIED
>
<!ELEMENT area EMPTY>
<!ATTLIST area
%attrs;
shape %Shape; "rect"
coords %Coords; #IMPLIED
href %URI; #IMPLIED
nohref (nohref) #IMPLIED
alt %Text; #REQUIRED
tabindex %Number; #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
>
<!--================ Forms ===============================================-->
<!ELEMENT form %form.content;> <!-- forms shouldn't be nested -->
<!ATTLIST form
%attrs;
action %URI; #REQUIRED
method (get|post) "get"
enctype %ContentType; "application/x-www-form-urlencoded"
onsubmit %Script; #IMPLIED
onreset %Script; #IMPLIED
accept %ContentTypes; #IMPLIED
accept-charset %Charsets; #IMPLIED
>
<!--
Each label must not contain more than ONE field
Label elements shouldn't be nested.
-->
<!ELEMENT label %Inline;>
<!ATTLIST label
%attrs;
for IDREF #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
>
<!ENTITY % InputType
"(text | password | checkbox |
radio | submit | reset |
file | hidden | image | button)"
>
<!-- the name attribute is required for all but submit & reset -->
<!ELEMENT input EMPTY> <!-- form control -->
<!ATTLIST input
%attrs;
type %InputType; "text"
name CDATA #IMPLIED
value CDATA #IMPLIED
checked (checked) #IMPLIED
disabled (disabled) #IMPLIED
readonly (readonly) #IMPLIED
size CDATA #IMPLIED
maxlength %Number; #IMPLIED
src %URI; #IMPLIED
alt CDATA #IMPLIED
usemap %URI; #IMPLIED
tabindex %Number; #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
onselect %Script; #IMPLIED
onchange %Script; #IMPLIED
accept %ContentTypes; #IMPLIED
>
<!ELEMENT select (optgroup|option)+> <!-- option selector -->
<!ATTLIST select
%attrs;
name CDATA #IMPLIED
size %Number; #IMPLIED
multiple (multiple) #IMPLIED
disabled (disabled) #IMPLIED
tabindex %Number; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
onchange %Script; #IMPLIED
>
<!ELEMENT optgroup (option)+> <!-- option group -->
<!ATTLIST optgroup
%attrs;
disabled (disabled) #IMPLIED
label %Text; #REQUIRED
>
<!ELEMENT option (#PCDATA)> <!-- selectable choice -->
<!ATTLIST option
%attrs;
selected (selected) #IMPLIED
disabled (disabled) #IMPLIED
label %Text; #IMPLIED
value CDATA #IMPLIED
>
<!ELEMENT textarea (#PCDATA)> <!-- multi-line text field -->
<!ATTLIST textarea
%attrs;
name CDATA #IMPLIED
rows %Number; #REQUIRED
cols %Number; #REQUIRED
disabled (disabled) #IMPLIED
readonly (readonly) #IMPLIED
tabindex %Number; #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
onselect %Script; #IMPLIED
onchange %Script; #IMPLIED
>
<!--
The fieldset element is used to group form fields.
Only one legend element should occur in the content
and if present should only be preceded by whitespace.
-->
<!ELEMENT fieldset (#PCDATA | legend | %block; | form | %inline; | %misc;)*>
<!ATTLIST fieldset
%attrs;
>
<!ELEMENT legend %Inline;> <!-- fieldset label -->
<!ATTLIST legend
%attrs;
accesskey %Character; #IMPLIED
>
<!--
Content is %Flow; excluding a, form and form controls
-->
<!ELEMENT button %button.content;> <!-- push button -->
<!ATTLIST button
%attrs;
name CDATA #IMPLIED
value CDATA #IMPLIED
type (button|submit|reset) "submit"
disabled (disabled) #IMPLIED
tabindex %Number; #IMPLIED
accesskey %Character; #IMPLIED
onfocus %Script; #IMPLIED
onblur %Script; #IMPLIED
>
<!--======================= Tables =======================================-->
<!-- Derived from IETF HTML table standard, see [RFC1942] -->
<!--
The border attribute sets the thickness of the frame around the
table. The default units are screen pixels.
The frame attribute specifies which parts of the frame around
the table should be rendered. The values are not the same as
CALS to avoid a name clash with the valign attribute.
-->
<!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
<!--
The rules attribute defines which rules to draw between cells:
If rules is absent then assume:
"none" if border is absent or border="0" otherwise "all"
-->
<!ENTITY % TRules "(none | groups | rows | cols | all)">
<!-- horizontal placement of table relative to document -->
<!ENTITY % TAlign "(left|center|right)">
<!-- horizontal alignment attributes for cell contents
char alignment char, e.g. char=':'
charoff offset for alignment char
-->
<!ENTITY % cellhalign
"align (left|center|right|justify|char) #IMPLIED
char %Character; #IMPLIED
charoff %Length; #IMPLIED"
>
<!-- vertical alignment attributes for cell contents -->
<!ENTITY % cellvalign
"valign (top|middle|bottom|baseline) #IMPLIED"
>
<!ELEMENT table
(caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))>
<!ELEMENT caption %Inline;>
<!ELEMENT thead (tr)+>
<!ELEMENT tfoot (tr)+>
<!ELEMENT tbody (tr)+>
<!ELEMENT colgroup (col)*>
<!ELEMENT col EMPTY>
<!ELEMENT tr (th|td)+>
<!ELEMENT th %Flow;>
<!ELEMENT td %Flow;>
<!ATTLIST table
%attrs;
summary %Text; #IMPLIED
width %Length; #IMPLIED
border %Pixels; #IMPLIED
frame %TFrame; #IMPLIED
rules %TRules; #IMPLIED
cellspacing %Length; #IMPLIED
cellpadding %Length; #IMPLIED
>
<!ENTITY % CAlign "(top|bottom|left|right)">
<!ATTLIST caption
%attrs;
>
<!--
colgroup groups a set of col elements. It allows you to group
several semantically related columns together.
-->
<!ATTLIST colgroup
%attrs;
span %Number; "1"
width %MultiLength; #IMPLIED
%cellhalign;
%cellvalign;
>
<!--
col elements define the alignment properties for cells in
one or more columns.
The width attribute specifies the width of the columns, e.g.
width=64 width in screen pixels
width=0.5* relative width of 0.5
The span attribute causes the attributes of one
col element to apply to more than one column.
-->
<!ATTLIST col
%attrs;
span %Number; "1"
width %MultiLength; #IMPLIED
%cellhalign;
%cellvalign;
>
<!--
Use thead to duplicate headers when breaking table
across page boundaries, or for static headers when
tbody sections are rendered in scrolling panel.
Use tfoot to duplicate footers when breaking table
across page boundaries, or for static footers when
tbody sections are rendered in scrolling panel.
Use multiple tbody sections when rules are needed
between groups of table rows.
-->
<!ATTLIST thead
%attrs;
%cellhalign;
%cellvalign;
>
<!ATTLIST tfoot
%attrs;
%cellhalign;
%cellvalign;
>
<!ATTLIST tbody
%attrs;
%cellhalign;
%cellvalign;
>
<!ATTLIST tr
%attrs;
%cellhalign;
%cellvalign;
>
<!-- Scope is simpler than headers attribute for common tables -->
<!ENTITY % Scope "(row|col|rowgroup|colgroup)">
<!-- th is for headers, td for data and for cells acting as both -->
<!ATTLIST th
%attrs;
abbr %Text; #IMPLIED
axis CDATA #IMPLIED
headers IDREFS #IMPLIED
scope %Scope; #IMPLIED
rowspan %Number; "1"
colspan %Number; "1"
%cellhalign;
%cellvalign;
>
<!ATTLIST td
%attrs;
abbr %Text; #IMPLIED
axis CDATA #IMPLIED
headers IDREFS #IMPLIED
scope %Scope; #IMPLIED
rowspan %Number; "1"
colspan %Number; "1"
%cellhalign;
%cellvalign;
>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,9 @@
<!DOCTYPE html SYSTEM "xhtml1-strict.dtd">
<html>
<head>
<title>simple document</title>
</head>
<bodyb>
<p>a simple paragraph</p>
</bodyb>
</html>
+6
View File
@@ -0,0 +1,6 @@
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match="/">
<xsl:value-of select="//title"/>
<xsl:value-of select="//author"/>
</xsl:template>
</xsl:stylesheet>
+915
View File
@@ -0,0 +1,915 @@
<?xml version="1.0" ?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3.org/1999/XSL/Transform"
elementFormDefault="qualified"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<annotation>
<documentation>
This is a schema for XSLT 2.0 stylesheets.
It defines all the elements that appear in the XSLT namespace; it also
provides hooks that allow the inclusion of user-defined literal result elements,
extension instructions, and top-level data elements.
The schema is derived (with kind permission) from a schema for XSLT 1.0 stylesheets
produced by Asir S Vedamuthu of WebMethods Inc.
This schema is available for use under the conditions of the W3C Software License
published at http://www.w3.org/Consortium/Legal/copyright-software-19980720
The schema is organized as follows:
PART A: definitions of complex types and model groups used as the basis
for element definitions
PART B: definitions of individual XSLT elements
PART C: definitions for literal result elements
PART D: definitions of simple types used in attribute definitions
This schema does not attempt to define all the constraints that apply to a valid
XSLT 2.0 stylesheet. It is the intention that all valid stylesheets should conform
to this schema; however, the schema is non-normative and in the event of any
conflict, the text of the Recommendation takes precedence.
This version is dated 2002-07-19
Author: Michael H Kay, Software AG
</documentation>
</annotation>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!--
The declaration of xml:space and xml:lang has been commented out because
of problems processing the schema using various tools
<import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-->
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<annotation>
<documentation>
PART A: definitions of complex types and model groups used as the basis
for element definitions
</documentation>
</annotation>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<complexType name="generic-element-type">
<attribute name="extension-element-prefixes" type="xsl:tokens"/>
<attribute name="exclude-result-prefixes" type="xsl:tokens"/>
<attribute name="exclude-prefixes" type="xsl:tokens"/>
<attribute name="default-xpath-namespace" type="anyURI"/>
<!--attribute ref="xml:space"/-->
<!--attribute ref="xml:lang"/-->
<anyAttribute namespace="##other" processContents="skip"/>
</complexType>
<complexType name="versioned-element-type">
<complexContent>
<extension base="xsl:generic-element-type">
<attribute name="version" type="decimal" use="optional"/>
</extension>
</complexContent>
</complexType>
<complexType name="content-constructor" mixed="true">
<complexContent>
<extension base="xsl:versioned-element-type">
<group ref="xsl:content-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
</extension>
</complexContent>
</complexType>
<group name="content-constructor-group">
<sequence>
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="xsl:variable"/>
<element ref="xsl:instruction"/>
<group ref="xsl:result-elements"/>
</choice>
</sequence>
</group>
<element name="declaration" type="xsl:generic-element-type" abstract="true"/>
<element name="instruction" type="xsl:versioned-element-type" abstract="true"/>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<annotation>
<documentation>
PART B: definitions of individual XSLT elements
Elements are listed in alphabetical order.
</documentation>
</annotation>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<element name="analyze-string" substitutionGroup="xsl:instruction">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence>
<element ref="xsl:matching-substring" minOccurs="0" maxOccurs="1"/>
<element ref="xsl:non-matching-substring" minOccurs="0" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="apply-imports" substitutionGroup="xsl:instruction">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence minOccurs="0" maxOccurs="unbounded">
<element ref="xsl:with-param"/>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="apply-templates" substitutionGroup="xsl:instruction">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="xsl:sort"/>
<element ref="xsl:with-param"/>
</choice>
<attribute name="select" type="xsl:expression" use="optional" default="node()"/>
<attribute name="mode" type="xsl:mode"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="attribute" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="name" type="xsl:avt" use="required"/>
<attribute name="namespace" type="xsl:avt"/>
<attribute name="disable-output-escaping" type="xsl:yes-or-no"/>
<attribute name="type-annotation" type="QName"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="attribute-set" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence minOccurs="0" maxOccurs="unbounded">
<element ref="xsl:attribute"/>
</sequence>
<attribute name="name" type="QName" use="required"/>
<attribute name="use-attribute-sets" type="xsl:QNames" use="optional"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="call-template" substitutionGroup="xsl:instruction">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence minOccurs="0" maxOccurs="unbounded">
<element ref="xsl:with-param"/>
</sequence>
<attribute name="name" type="QName" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="choose" substitutionGroup="xsl:instruction">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence>
<element ref="xsl:when" minOccurs="1" maxOccurs="unbounded"/>
<element ref="xsl:otherwise" minOccurs="0" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="comment" substitutionGroup="xsl:instruction" type="xsl:content-constructor"/>
<element name="copy" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="use-attribute-sets" type="xsl:QNames" use="optional"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="copy-of" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="select" type="xsl:expression" use="required"/>
<attribute name="separator" type="xsl:avt"/>
<attribute name="copy-type-annotations" type="xsl:yes-or-no"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="decimal-format" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="name" type="QName"/>
<attribute name="decimal-separator" type="xsl:char" use="optional" default="."/>
<attribute name="grouping-separator" type="xsl:char" use="optional" default=","/>
<attribute name="infinity" type="string" use="optional" default="Infinity"/>
<attribute name="minus-sign" type="xsl:char" use="optional" default="-"/>
<attribute name="NaN" type="string" use="optional" default="NaN"/>
<attribute name="percent" type="xsl:char" use="optional" default="%"/>
<attribute name="per-mille" type="xsl:char" use="optional" default="&#x2030;"/>
<attribute name="zero-digit" type="xsl:char" use="optional" default="0"/>
<attribute name="digit" type="xsl:char" use="optional" default="#"/>
<attribute name="pattern-separator" type="xsl:char" use="optional" default=";"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="element" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="name" type="xsl:avt" use="required"/>
<attribute name="namespace" type="xsl:avt" use="optional"/>
<attribute name="use-attribute-sets" type="xsl:QNames" use="optional"/>
<attribute name="type-annotation" type="QName"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="fallback" substitutionGroup="xsl:instruction" type="xsl:content-constructor"/>
<element name="for-each" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence>
<element ref="xsl:sort" minOccurs="0" maxOccurs="unbounded"/>
<group ref="xsl:content-constructor-group"/>
</sequence>
<attribute name="select" type="xsl:expression" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="for-each-group" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence>
<element ref="xsl:sort" minOccurs="0" maxOccurs="unbounded"/>
<group ref="xsl:content-constructor-group"/>
</sequence>
<attribute name="select" type="xsl:expression" use="required"/>
<attribute name="group-by" type="xsl:expression"/>
<attribute name="group-adjacent" type="xsl:expression"/>
<attribute name="group-starting-with" type="xsl:pattern"/>
<attribute name="group-ending-with" type="xsl:pattern"/>
<attribute name="collation" type="anyURI"/>
<attribute name="type" type="QName"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="function" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence>
<element ref="xsl:param" minOccurs="0" maxOccurs="unbounded"/>
<choice>
<element ref="xsl:variable"/>
<element ref="xsl:message"/>
</choice>
<element ref="xsl:result"/>
</sequence>
<attribute name="name" type="QName" use="required"/>
<attribute name="override" type="xsl:yes-or-no" default="yes"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="if" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="test" type="xsl:expression" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="import">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="href" type="anyURI" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="import-schema" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="namespace" type="anyURI"/>
<attribute name="schema-location" type="anyURI"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="include" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="href" type="anyURI" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="key" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="name" type="QName" use="required"/>
<attribute name="match" type="xsl:pattern" use="required"/>
<attribute name="use" type="xsl:expression" use="required"/>
<attribute name="collation" type="anyURI"/>
<attribute name="type" type="QName"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="matching-substring" type="xsl:content-constructor"/>
<element name="message" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="terminate" default="no" type="xsl:avt"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="namespace" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="name" type="xsl:avt" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="namespace-alias" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="stylesheet-prefix" type="xsl:prefix-or-default" use="required"/>
<attribute name="result-prefix" type="xsl:prefix-or-default" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="non-matching-substring" type="xsl:content-constructor"/>
<element name="number" substitutionGroup="xsl:instruction">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="level" type="xsl:level" default="single"/>
<attribute name="count" type="xsl:pattern"/>
<attribute name="from" type="xsl:pattern"/>
<attribute name="value" type="xsl:expression"/>
<attribute name="format" type="xsl:avt" use="optional" default="1"/>
<attribute name="lang" type="xsl:avt"/>
<attribute name="letter-value" type="xsl:avt"/>
<attribute name="grouping-separator" type="xsl:avt"/>
<attribute name="grouping-size" type="xsl:avt"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="output" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:generic-element-type">
<attribute name="method" type="xsl:method"/>
<attribute name="version" type="NMTOKEN"/>
<attribute name="encoding" type="string"/>
<attribute name="omit-xml-declaration" type="xsl:yes-or-no"/>
<attribute name="standalone" type="xsl:yes-or-no"/>
<attribute name="doctype-public" type="string"/>
<attribute name="doctype-system" type="string"/>
<attribute name="cdata-section-elements" type="xsl:QNames"/>
<attribute name="escape-uri-attributes" type="xsl:yes-or-no"/>
<attribute name="include-content-type" type="xsl:yes-or-no"/>
<attribute name="indent" type="xsl:yes-or-no"/>
<attribute name="media-type" type="string"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="otherwise" type="xsl:content-constructor"/>
<element name="param">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="name" type="QName" use="required"/>
<attribute name="select" type="xsl:expression"/>
<attribute name="type" type="xsl:sequence-type"/>
<attribute name="type-information" type="xsl:type-information-type"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="preserve-space" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="elements" type="xsl:nametests" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="principal-result-document" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="format" type="QName"/>
<attribute name="href" type="xsl:avt"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="processing-instruction" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="name" type="xsl:avt" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="result">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="select" type="xsl:expression" use="optional"/>
<attribute name="type" type="xsl:sequence-type" use="optional"/>
<attribute name="type-information" type="xsl:type-information-type"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="result-document" substitutionGroup="xsl:instruction">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="format" type="QName"/>
<attribute name="href" type="xsl:avt"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="sort">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="select" type="xsl:expression" use="optional" default="."/>
<attribute name="lang" type="xsl:avt"/>
<attribute name="data-type" type="xsl:avt" use="optional" default="text"/>
<attribute name="order" type="xsl:avt" use="optional" default="ascending"/>
<attribute name="case-order" type="xsl:avt"/>
<attribute name="type" type="xsl:avt"/>
<attribute name="collation" type="xsl:avt"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="sort-key" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence minOccurs="1" maxOccurs="unbounded">
<element ref="xsl:sort"/>
</sequence>
<attribute name="name" type="QName" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="strip-space" substitutionGroup="xsl:declaration">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="elements" type="xsl:nametests" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="stylesheet" substitutionGroup="xsl:transform"/>
<element name="template" substitutionGroup="xsl:declaration">
<complexType mixed="true">
<complexContent>
<extension base="xsl:versioned-element-type">
<sequence>
<element ref="xsl:param" minOccurs="0" maxOccurs="unbounded"/>
<group ref="xsl:content-constructor-group"/>
</sequence>
<attribute name="match" type="xsl:pattern"/>
<attribute name="priority" type="decimal"/>
<attribute name="mode" type="xsl:modes"/>
<attribute name="name" type="QName"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="text" substitutionGroup="xsl:instruction">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="disable-output-escaping" type="xsl:yes-or-no" default="no"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="transform">
<complexType>
<complexContent>
<extension base="xsl:generic-element-type">
<sequence>
<element ref="xsl:import" minOccurs="0" maxOccurs="unbounded"/>
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="xsl:declaration"/>
<element ref="xsl:variable"/>
<element ref="xsl:param"/>
<any namespace="##other" processContents="skip"/> <!-- weaker than XSLT 1.0 -->
</choice>
</sequence>
<attribute name="id" type="ID"/>
<attribute name="version" type="decimal" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="value-of" substitutionGroup="xsl:instruction">
<complexType>
<complexContent>
<extension base="xsl:versioned-element-type">
<attribute name="select" type="xsl:expression" use="required"/>
<attribute name="separator" type="xsl:avt"/>
<attribute name="disable-output-escaping" type="xsl:yes-or-no" default="no"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="variable">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="name" type="QName" use="required"/>
<attribute name="select" type="xsl:expression" use="optional"/>
<attribute name="type" type="xsl:sequence-type" use="optional"/>
<attribute name="type-information" type="xsl:type-information-type"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="when">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="test" type="xsl:expression" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="with-param">
<complexType mixed="true">
<complexContent>
<extension base="xsl:content-constructor">
<attribute name="name" type="QName" use="required"/>
<attribute name="select" type="xsl:expression" use="optional"/>
<attribute name="type-information" type="xsl:type-information-type"/>
</extension>
</complexContent>
</complexType>
</element>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<annotation>
<documentation>
PART C: definition of literal result elements
There are three ways to define the literal result elements
permissible in a stylesheet.
(a) do nothing. This allows any element to be used as a literal
result element, provided it is not in the XSLT namespace
(b) declare all permitted literal result elements as members
of the xsl:literal-result-element substitution group
(c) redefine the model group xsl:result-elements to accommodate
all permitted literal result elements.
Literal result elements are allowed to take certain attributes
in the XSLT namespace. These are defined in the attribute group
literal-result-element-attributes, which can be included in the
definition of any literal result element.
</documentation>
</annotation>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<element name="literal-result-element" abstract="true" type="anyType"/>
<attributeGroup name="literal-result-element-attributes">
<attribute name="extension-element-prefixes" form="qualified" type="string"/>
<attribute name="exclude-result-prefixes" form="qualified" type="string"/>
<attribute name="exclude-prefixes" form="qualified" type="string"/>
<attribute name="use-attribute-sets" form="qualified" type="xsl:QNames"/>
<attribute name="version" form="qualified" type="decimal"/>
<attribute name="type-annotation" form="qualified" type="QName"/>
<anyAttribute namespace="##other" processContents="skip"/>
</attributeGroup>
<group name="result-elements">
<choice>
<element ref="xsl:literal-result-element"/>
<any namespace="##other" processContents="skip"/>
</choice>
</group>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<annotation>
<documentation>
PART D: definitions of simple types used in stylesheet attributes
</documentation>
</annotation>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<simpleType name="avt">
<annotation>
<documentation>
This type is used for all attributes that allow an attribute value template.
The general rules for the syntax of attribute value templates, and the specific
rules for each such attribute, are described in the XSLT 2.0 Recommendation.
</documentation>
</annotation>
<restriction base="string"/>
</simpleType>
<simpleType name="char">
<annotation>
<documentation>
A string containing exactly one character.
</documentation>
</annotation>
<restriction base="string">
<length value="1"/>
</restriction>
</simpleType>
<simpleType name="expression">
<annotation>
<documentation>
An XPath 2.0 expression.
</documentation>
</annotation>
<restriction base="string">
<pattern value=".+"/>
</restriction>
</simpleType>
<simpleType name="level">
<annotation>
<documentation>
The level attribute of xsl:number:
one of single, multiple, or any.
</documentation>
</annotation>
<restriction base="NCName">
<enumeration value="single"/>
<enumeration value="multiple"/>
<enumeration value="any"/>
</restriction>
</simpleType>
<simpleType name="mode">
<annotation>
<documentation>
The mode attribute of xsl:apply-templates:
either a QName, or #current, or #default.
</documentation>
</annotation>
<union memberTypes="QName">
<simpleType>
<restriction base="string">
<enumeration value="#default"/>
<enumeration value="#current"/>
</restriction>
</simpleType>
</union>
</simpleType>
<simpleType name="modes">
<annotation>
<documentation>
The mode attribute of xsl:template:
a list, each member being either a QName, or #default.
</documentation>
</annotation>
<list>
<simpleType>
<union memberTypes="QName">
<simpleType>
<restriction base="string">
<enumeration value="#default"/>
</restriction>
</simpleType>
</union>
</simpleType>
</list>
</simpleType>
<simpleType name="nametests">
<annotation>
<documentation>
A list of NameTests, as defined in the XPath 2.0 Recommendation.
Each NameTest is either a QName, or "*", or "prefix:*", or "*:localname"
</documentation>
</annotation>
<list>
<simpleType>
<union memberTypes="QName">
<simpleType>
<restriction base="string">
<pattern value="\*"/>
<pattern value="\i\c*:\*"/>
<pattern value="\*:\i\c*"/>
</restriction>
</simpleType>
</union>
</simpleType>
</list>
</simpleType>
<simpleType name="tokens">
<list itemType="token"/>
</simpleType>
<simpleType name="method">
<annotation>
<documentation>
The method attribute of xsl:output:
Either one of the recognized names "xml", "xhtml", "html", "text",
or a QName that must include a prefix.
</documentation>
</annotation>
<union>
<simpleType>
<restriction base="NCName">
<enumeration value="xml"/>
<enumeration value="xhtml"/>
<enumeration value="html"/>
<enumeration value="text"/>
</restriction>
</simpleType>
<simpleType>
<restriction base="QName">
<pattern value="\c*:\c*"/>
</restriction>
</simpleType>
</union>
</simpleType>
<simpleType name="pattern">
<annotation>
<documentation>
A match pattern as defined in the XSLT 2.0 Recommendation.
The syntax for patterns is a restricted form of the syntax for
XPath 2.0 expressions.
</documentation>
</annotation>
<restriction base="xsl:expression"/>
</simpleType>
<simpleType name="prefix-or-default">
<annotation>
<documentation>
Either a namespace prefix, or #default.
Used in the xsl:namespace-alias element.
</documentation>
</annotation>
<union memberTypes="NCName">
<simpleType>
<restriction base="string">
<enumeration value="#default"/>
</restriction>
</simpleType>
</union>
</simpleType>
<simpleType name="QNames">
<annotation>
<documentation>
A list of QNames.
Used in the [xsl:]use-attribute-sets attribute of various elements,
and in the cdata-section-elements attribute of xsl:output
</documentation>
</annotation>
<list itemType="QName"/>
</simpleType>
<simpleType name="sequence-type">
<annotation>
<documentation>
The description of a data type, conforming to the
SequenceType production defined in the XPath 2.0 Recommendation
</documentation>
</annotation>
<restriction base="string">
<pattern value=".+"/>
</restriction>
</simpleType>
<simpleType name="type-information-type">
<annotation>
<documentation>
Describes different ways of handling type information in a newly constructed tree.
</documentation>
</annotation>
<restriction base="string">
<enumeration value="strict"/>
<enumeration value="lax"/>
<enumeration value="preserve"/>
<enumeration value="none"/>
</restriction>
</simpleType>
<simpleType name="yes-or-no">
<annotation>
<documentation>
One of the values "yes" or "no".
</documentation>
</annotation>
<restriction base="string">
<enumeration value="yes"/>
<enumeration value="no"/>
</restriction>
</simpleType>
</schema>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,342 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://java.sun.com/xml/ns/j2ee"
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.1">
<xsd:annotation>
<xsd:documentation>
@(#)j2ee_web_services_client_1_1.xsds 1.10 02/11/03
</xsd:documentation>
</xsd:annotation>
<xsd:annotation>
<xsd:documentation>
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio
Road, Palo Alto, California 94303, U.S.A. All rights
reserved.
Sun Microsystems, Inc. has intellectual property rights
relating to technology described in this document. In
particular, and without limitation, these intellectual
property rights may include one or more of the U.S. patents
listed at http://www.sun.com/patents and one or more
additional patents or pending patent applications in the
U.S. and other countries.
This document and the technology which it describes are
distributed under licenses restricting their use, copying,
distribution, and decompilation. No part of this document
may be reproduced in any form by any means without prior
written authorization of Sun and its licensors, if any.
Third-party software, including font technology, is
copyrighted and licensed from Sun suppliers.
Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
JavaServer Pages, Enterprise JavaBeans and the Java Coffee
Cup logo are trademarks or registered trademarks of Sun
Microsystems, Inc. in the U.S. and other countries.
Federal Acquisitions: Commercial Software - Government Users
Subject to Standard License Terms and Conditions.
</xsd:documentation>
</xsd:annotation>
<xsd:annotation>
<xsd:documentation>
(C) Copyright International Business Machines Corporation 2002
</xsd:documentation>
</xsd:annotation>
<!-- **************************************************** -->
<xsd:complexType name="port-component-refType">
<xsd:annotation>
<xsd:documentation>
The port-component-ref element declares a client dependency
on the container for resolving a Service Endpoint Interface
to a WSDL port. It optionally associates the Service Endpoint
Interface with a particular port-component. This is only used
by the container for a Service.getPort(Class) method call.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="service-endpoint-interface"
type="j2ee:fully-qualified-classType">
<xsd:annotation>
<xsd:documentation>
The service-endpoint-interface element defines a fully qualified
Java class that represents the Service Endpoint Interface of a
WSDL port.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="port-component-link"
type="j2ee:string"
minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
The port-component-link element links a port-component-ref
to a specific port-component required to be made available
by a service reference.
The value of a port-component-link must be the
port-component-name of a port-component in the same module
or another module in the same application unit. The syntax
for specification follows the syntax defined for ejb-link
in the EJB 2.0 specification.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:group name="service-refGroup">
<xsd:sequence>
<xsd:element name="service-ref"
type="j2ee:service-refType"
minOccurs="0" maxOccurs="unbounded">
<xsd:key name="service-ref_handler-name-key">
<xsd:annotation>
<xsd:documentation>
Defines the name of the handler. The name must be unique
within the module.
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="j2ee:handler"/>
<xsd:field xpath="j2ee:handler-name"/>
</xsd:key>
</xsd:element>
</xsd:sequence>
</xsd:group>
<!-- **************************************************** -->
<xsd:complexType name="service-refType">
<xsd:annotation>
<xsd:documentation>
The service-ref element declares a reference to a Web
service. It contains optional description, display name and
icons, a declaration of the required Service interface,
an optional WSDL document location, an optional set
of JAX-RPC mappings, an optional QName for the service element,
an optional set of Service Endpoint Interfaces to be resolved
by the container to a WSDL port, and an optional set of handlers.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="j2ee:descriptionGroup"/>
<xsd:element name="service-ref-name"
type="j2ee:jndi-nameType">
<xsd:annotation>
<xsd:documentation>
The service-ref-name element declares logical name that the
components in the module use to look up the Web service. It
is recommended that all service reference names start with
"service/".
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="service-interface"
type="j2ee:fully-qualified-classType">
<xsd:annotation>
<xsd:documentation>
The service-interface element declares the fully qualified class
name of the JAX-RPC Service interface the client depends on.
In most cases the value will be javax.xml.rpc.Service. A JAX-RPC
generated Service Interface class may also be specified.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="wsdl-file"
type="j2ee:xsdAnyURIType"
minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
The wsdl-file element contains the URI location of a WSDL
file. The location is relative to the root of the module.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="jaxrpc-mapping-file"
type="j2ee:pathType"
minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
The jaxrpc-mapping-file element contains the name of a file that
describes the JAX-RPC mapping between the Java interaces used by
the application and the WSDL description in the wsdl-file. The
file name is a relative path within the module file.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="service-qname"
type="j2ee:xsdQNameType"
minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
The service-qname element declares the specific WSDL service
element that is being refered to. It is not specified if no
wsdl-file is declared.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="port-component-ref"
type="j2ee:port-component-refType"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
The port-component-ref element declares a client dependency
on the container for resolving a Service Endpoint Interface
to a WSDL port. It optionally associates the Service Endpoint
Interface with a particular port-component. This is only used
by the container for a Service.getPort(Class) method call.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="handler"
type="j2ee:service-ref_handlerType"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Declares the handler for a port-component. Handlers can
access the init-param name/value pairs using the
HandlerInfo interface. If port-name is not specified, the
handler is assumed to be associated with all ports of the
service.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="service-ref_handlerType">
<xsd:annotation>
<xsd:documentation>
Declares the handler for a port-component. Handlers can access the
init-param name/value pairs using the HandlerInfo interface. If
port-name is not specified, the handler is assumed to be associated
with all ports of the service.
Used in: service-ref
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="j2ee:descriptionGroup"/>
<xsd:element name="handler-name"
type="j2ee:string">
<xsd:annotation>
<xsd:documentation>
Defines the name of the handler. The name must be unique
within the module.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="handler-class"
type="j2ee:fully-qualified-classType">
<xsd:annotation>
<xsd:documentation>
Defines a fully qualified class name for the handler
implementation.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="init-param"
type="j2ee:param-valueType"
minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="soap-header"
type="j2ee:xsdQNameType"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Defines the QName of a SOAP header that will be processed
by the handler.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="soap-role"
type="j2ee:string"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
The soap-role element contains a SOAP actor definition that
the Handler will play as a role.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="port-name"
type="j2ee:string"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
The port-name element defines the WSDL port-name that a
handler should be associated with.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
</xsd:schema>