Validation schemas for Application Packaging Standard 1.0 in XML Schema format
Download validation schemas in XML Schema format: aps10-xsd-schemas.zip
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/apache" xmlns:apache="http://apstandard.com/ns/1/apache">
<xs:element name="htaccess">
<xs:complexType/>
</xs:element>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/apache" xmlns:apache="http://apstandard.com/ns/1/apache">
<xs:element name="required-module" type="xs:string"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/aspnet" xmlns:aspnet="http://apstandard.com/ns/1/aspnet">
<xs:element name="permissions">
<xs:complexType>
<xs:attribute name="writable">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="true"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/aspnet" xmlns:aspnet="http://apstandard.com/ns/1/aspnet">
<xs:element name="handler">
<xs:complexType>
<xs:choice>
<xs:element ref="aspnet:disabled"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="aspnet:extension"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="disabled">
<xs:complexType/>
</xs:element>
<xs:element name="extension" type="xs:string"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/aspnet" xmlns:aspnet="http://apstandard.com/ns/1/aspnet">
<xs:element name="version">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="1.0"/>
<xs:enumeration value="2.0"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1" xmlns:sa="http://apstandard.com/ns/1">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xs:group name="AnyElement">
<xs:sequence>
<xs:any namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:group>
<xs:group name="DefinedByAspect">
<xs:sequence>
<xs:group ref="sa:AnyElement"/>
</xs:sequence>
</xs:group>
<xs:group name="Requirement">
<xs:sequence>
<xs:group ref="sa:DefinedByAspect"/>
</xs:sequence>
</xs:group>
<xs:group name="UrlHandler">
<xs:sequence>
<xs:group ref="sa:DefinedByAspect"/>
</xs:sequence>
</xs:group>
<xs:group name="Permission">
<xs:sequence>
<xs:group ref="sa:DefinedByAspect"/>
</xs:sequence>
</xs:group>
<xs:element name="setting">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="name">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" maxOccurs="unbounded" name="description">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="sa:error-message"/>
<xs:element minOccurs="0" maxOccurs="unbounded" name="choice">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="name">
<xs:complexType mixed="true">
<xs:attribute ref="xml:lang"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" use="required"/>
<xs:attribute name="global">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="true"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="installation-only">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="true"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="min">
<xs:simpleType>
<xs:union memberTypes="xs:integer xs:float"/>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="max">
<xs:simpleType>
<xs:union memberTypes="xs:integer xs:float"/>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="type" use="required">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="boolean"/>
<xs:enumeration value="string"/>
<xs:enumeration value="password"/>
<xs:enumeration value="integer"/>
<xs:enumeration value="float"/>
<xs:enumeration value="email"/>
<xs:enumeration value="domain-name"/>
<xs:enumeration value="enum"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="min-length" type="xs:nonNegativeInteger"/>
<xs:attribute name="max-length" type="xs:nonNegativeInteger"/>
<xs:attribute name="regex" type="xs:string"/>
<xs:attribute name="charset" type="xs:string"/>
<xs:attribute name="default-value"/>
</xs:complexType>
</xs:element>
<xs:element name="error-message">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="group">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="name">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element maxOccurs="unbounded" ref="sa:setting"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="requirements">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="choice">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="requirements">
<xs:complexType>
<xs:group maxOccurs="unbounded" ref="sa:Requirement"/>
<xs:attribute name="id" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:group minOccurs="0" maxOccurs="unbounded" ref="sa:Requirement"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="mapping">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="sa:UrlHandler"/>
<xs:group ref="sa:Permission"/>
</xs:choice>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="sa:mapping"/>
</xs:sequence>
<xs:attribute name="url" use="required"/>
<xs:attribute name="path">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="virtual">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="virtual"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="application">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element minOccurs="0" ref="sa:packager-uri"/>
<xs:element name="version" type="xs:string"/>
<xs:element ref="sa:release"/>
<xs:element minOccurs="0" ref="sa:homepage"/>
<xs:element minOccurs="0" ref="sa:package-homepage"/>
<xs:element minOccurs="0" ref="sa:default-prefix"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="sa:summary"/>
<xs:element minOccurs="0" maxOccurs="unbounded" name="description">
<xs:complexType mixed="true">
<xs:attribute ref="xml:lang"/>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" ref="sa:icon"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="sa:screenshot"/>
<xs:element minOccurs="0" ref="sa:license"/>
<xs:element minOccurs="0" ref="sa:configuration-script-language"/>
<xs:choice minOccurs="0">
<xs:element ref="sa:patchable-from"/>
<xs:element maxOccurs="unbounded" ref="sa:patches"/>
</xs:choice>
<xs:choice minOccurs="0">
<xs:element ref="sa:upgradable-from"/>
<xs:element maxOccurs="unbounded" ref="sa:upgrades"/>
</xs:choice>
<xs:element ref="sa:changelog"/>
<xs:element minOccurs="0" ref="sa:entry-points"/>
<xs:element minOccurs="0" ref="sa:installed-size"/>
<xs:element minOccurs="0" ref="sa:categories"/>
<xs:element minOccurs="0" ref="sa:languages"/>
<xs:element ref="sa:settings"/>
<xs:element ref="sa:requirements"/>
<xs:element ref="sa:mapping"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="packager-uri" type="xs:anyURI"/>
<xs:element name="release" type="xs:string"/>
<xs:element name="homepage" type="xs:anyURI"/>
<xs:element name="package-homepage" type="xs:anyURI"/>
<xs:element name="default-prefix" type="xs:string"/>
<xs:element name="summary">
<xs:complexType mixed="true">
<xs:attribute ref="xml:lang"/>
</xs:complexType>
</xs:element>
<xs:element name="icon">
<xs:complexType>
<xs:attribute name="path" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="screenshot">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="description">
<xs:complexType mixed="true">
<xs:attribute ref="xml:lang"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="path" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="license">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="sa:text"/>
</xs:sequence>
<xs:attribute name="must-accept" use="required" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="text">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="name" type="xs:string"/>
<xs:choice>
<xs:element ref="sa:url"/>
<xs:element ref="sa:file"/>
</xs:choice>
</xs:sequence>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
</xs:element>
<xs:element name="url" type="xs:anyURI"/>
<xs:element name="file" type="xs:string"/>
<xs:element name="configuration-script-language" type="xs:string"/>
<xs:element name="patchable-from">
<xs:complexType>
<xs:attribute name="version" use="required"/>
<xs:attribute name="release" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="patches">
<xs:complexType>
<xs:attribute name="version" use="required"/>
<xs:attribute name="release" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="upgradable-from">
<xs:complexType>
<xs:attribute name="version" use="required"/>
<xs:attribute name="release" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="upgrades">
<xs:complexType>
<xs:attribute name="version" use="required"/>
<xs:attribute name="release" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="changelog">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="version">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="entry">
<xs:complexType mixed="true">
<xs:attribute ref="xml:lang"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="version" use="required"/>
<xs:attribute name="release" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="entry-points">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="entry">
<xs:complexType>
<xs:sequence>
<xs:element ref="sa:path"/>
<xs:element maxOccurs="unbounded" ref="sa:label"/>
<xs:element minOccurs="0" maxOccurs="unbounded" name="description">
<xs:complexType mixed="true">
<xs:attribute ref="xml:lang"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="path" type="xs:anyURI"/>
<xs:element name="label">
<xs:complexType mixed="true">
<xs:attribute ref="xml:lang"/>
</xs:complexType>
</xs:element>
<xs:element name="installed-size" type="xs:nonNegativeInteger"/>
<xs:element name="categories">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="sa:category"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="category" type="xs:string"/>
<xs:element name="languages">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="sa:language"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="language">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[a-z]{2,3}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="settings">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="sa:setting"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="sa:group"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/cgi" xmlns:cgi="http://apstandard.com/ns/1/cgi" xmlns:h="http://apstandard.com/ns/1/cgi/handlers">
<xs:import namespace="http://apstandard.com/ns/1/cgi/handlers" schemaLocation="h.xsd"/>
<xs:attributeGroup name="handlerType">
<xs:attribute ref="h:handler-type" use="required"/>
</xs:attributeGroup>
<xs:element name="handler">
<xs:complexType>
<xs:choice>
<xs:element ref="cgi:disabled"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="cgi:extension"/>
<xs:element ref="cgi:all-files"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="disabled">
<xs:complexType/>
</xs:element>
<xs:element name="extension">
<xs:complexType mixed="true">
<xs:attribute ref="h:handler-type"/>
</xs:complexType>
</xs:element>
<xs:element name="all-files">
<xs:complexType>
<xs:attribute ref="h:handler-type"/>
</xs:complexType>
</xs:element>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/db" xmlns:d="http://apstandard.com/ns/1/db">
<xs:element name="db">
<xs:complexType>
<xs:sequence>
<xs:element ref="d:id"/>
<xs:element minOccurs="0" ref="d:default-name"/>
<xs:element ref="d:can-use-tables-prefix"/>
<xs:element ref="d:server-type"/>
<xs:element ref="d:server-min-version"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="id" type="xs:string"/>
<xs:element name="default-name" type="xs:string"/>
<xs:element name="can-use-tables-prefix" type="xs:boolean"/>
<xs:element name="server-type" type="xs:string"/>
<xs:element name="server-min-version" type="xs:string"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/cgi/handlers" xmlns:cgi="http://apstandard.com/ns/1/cgi" xmlns:h="http://apstandard.com/ns/1/cgi/handlers">
<xs:import namespace="http://apstandard.com/ns/1/cgi" schemaLocation="cgi-urlhandler.xsd"/>
<xs:attribute name="handler-type">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="executable"/>
<xs:enumeration value="perl"/>
<xs:enumeration value="php"/>
<xs:enumeration value="python"/>
<xs:enumeration value="ssi"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="allow-url-fopen" type="xs:boolean"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="extension" type="xs:string"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="file-uploads" type="xs:boolean"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="function" type="xs:string"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="magic-quotes-gpc" type="xs:boolean"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="max-execution-time" type="xs:integer"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="memory-limit" type="xs:integer"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="permissions">
<xs:complexType>
<xs:attribute name="writable">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="true"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="readable">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="false"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="post-max-size" type="xs:integer"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="register-globals" type="xs:boolean"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="safe-mode" type="xs:boolean"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="short-open-tag" type="xs:boolean"/>
</xs:schema>
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="handler">
<xs:complexType>
<xs:choice>
<xs:element ref="php:disabled"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="php:extension"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="disabled">
<xs:complexType/>
</xs:element>
<xs:element name="extension" type="xs:string"/>
</xs:schema>
.xsd
Download
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://apstandard.com/ns/1/php" xmlns:php="http://apstandard.com/ns/1/php">
<xs:element name="version">
<xs:complexType>
<xs:attribute name="min"/>
<xs:attribute name="max-not-including"/>
</xs:complexType>
</xs:element>
</xs:schema>