blob: 9493b562b669ffba742495d0fefa856d4dfa50f4 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
The contents of this file are subject to the terms of the Common Development
and Distribution License (the License). You may not use this file except in
compliance with the License.
You can obtain a copy of the License at https://netbeans.org/cddl.html
or https://netbeans.org/cddl.txt.
When distributing Covered Code, include this CDDL Header Notice in each file
and include the License file at https://netbeans.org/cddl.txt.
If applicable, add the following below the CDDL Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
Microsystems, Inc. All Rights Reserved.
-->
<!--
XML Schema to define the project.xml for a freeform project.
Cf. http://projects.netbeans.org/buildsys/design.html#freeform
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://netbeans.org/ns/freeform-project-web/2"
xmlns="https://netbeans.org/ns/freeform-project-web/2"
elementFormDefault="qualified">
<xsd:element name="web-data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="web-module" minOccurs="0" maxOccurs="unbounded" type="web-module"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="web-module">
<xsd:sequence>
<xsd:element name="doc-root" maxOccurs="1" minOccurs="1" type="substitutable-text"/>
<xsd:element name="classpath" maxOccurs="1" minOccurs="0" type="substitutable-text"/>
<xsd:element name="context-path" maxOccurs="1" minOccurs="0" type="substitutable-text"/>
<xsd:element name="j2ee-spec-level" minOccurs="0" maxOccurs="1">
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="1.3"/>
<xsd:enumeration value="1.4"/>
<xsd:enumeration value="1.5"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="web-inf" minOccurs="0" maxOccurs="1" type="substitutable-text"/>
<!-- XXX other locations (web.xml, libraries,... -->
</xsd:sequence>
</xsd:complexType>
<!-- XXX: this type was copied from freeform-project-general.xsd -->
<!-- Some text that might be substituted with Ant property references. -->
<xsd:simpleType name="substitutable-text">
<xsd:restriction base="xsd:string">
<!-- XXX limit by regexp, perhaps -->
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>