Author: scabanovich
Date: 2007-08-16 10:11:17 -0400 (Thu, 16 Aug 2007)
New Revision: 3175
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/async-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/bpm-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/components-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/framework-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/international-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/jms-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/mail-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/navigation-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pageflow-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pages-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pdf-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/persistence-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/remoting-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/seam-components_1_0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/security-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-seam-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/theme-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/transaction-2.0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/web-2.0.xsd
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java
Log:
JBIDE-789
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2007-08-16 14:02:52 UTC (rev
3174)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2007-08-16 14:11:17 UTC (rev
3175)
@@ -42,93 +42,146 @@
<extension point="org.eclipse.wst.xml.core.catalogContributions">
<catalogContribution id="default">
<uri
-
name="http://jboss.com/products/seam/components"
+
name="http://jboss.com/products/seam/components-1.2.xsd"
uri="schemas/components-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/components"
- uri="schemas/components-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/core"
+
name="http://jboss.com/products/seam/core-1.2.xsd"
uri="schemas/core-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/core"
- uri="schemas/core-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/drools"
+
name="http://jboss.com/products/seam/drools-1.2.xsd"
uri="schemas/drools-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/drools"
- uri="schemas/drools-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/framework"
+
name="http://jboss.com/products/seam/framework-1.2.xsd"
uri="schemas/framework-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/framework"
- uri="schemas/framework-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/jms"
+
name="http://jboss.com/products/seam/jms-1.2.xsd"
uri="schemas/jms-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/jms"
- uri="schemas/jms-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/mail"
+
name="http://jboss.com/products/seam/mail-1.2.xsd"
uri="schemas/mail-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/mail"
- uri="schemas/mail-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/pdf"
+
name="http://jboss.com/products/seam/pdf-1.2.xsd"
uri="schemas/pdf-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/pdf"
- uri="schemas/pdf-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/remoting"
+
name="http://jboss.com/products/seam/remoting-1.2.xsd"
uri="schemas/remoting-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/remoting"
- uri="schemas/remoting-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/security"
+
name="http://jboss.com/products/seam/security-1.2.xsd"
uri="schemas/security-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/security"
- uri="schemas/security-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/spring"
+
name="http://jboss.com/products/seam/spring-1.2.xsd"
uri="schemas/spring-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/spring"
- uri="schemas/spring-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/theme"
+
name="http://jboss.com/products/seam/theme-1.2.xsd"
uri="schemas/theme-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/theme"
- uri="schemas/theme-1.2.xsd"/>
<uri
-
name="http://jboss.com/products/seam/web"
+
name="http://jboss.com/products/seam/web-1.2.xsd"
uri="schemas/web-1.2.xsd"/>
- <public
-
publicId="http://jboss.com/products/seam/web"
- uri="schemas/web-1.2.xsd"/>
<public
publicId="-//JBoss/Seam Component Configuration DTD 1.1//EN"
uri="dtds/components-1.1.dtd"/>
+
+
+
+
+ <uri
+
name="http://jboss.com/products/seam/async-2.0.xsd"
+ uri="schemas/async-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/bpm-2.0.xsd"
+ uri="schemas/bpm-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/components-2.0.xsd"
+ uri="schemas/components-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/core-2.0.xsd"
+ uri="schemas/core-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/drools-2.0.xsd"
+ uri="schemas/drools-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/framework-2.0.xsd"
+ uri="schemas/framework-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/international-2.0.xsd"
+ uri="schemas/international-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/jms-2.0.xsd"
+ uri="schemas/jms-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/mail-2.0.xsd"
+ uri="schemas/mail-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/navigation-2.0.xsd"
+ uri="schemas/navigation-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/pageflow-2.0.xsd"
+ uri="schemas/pageflow-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/pages-2.0.xsd"
+ uri="schemas/pages-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/pdf-2.0.xsd"
+ uri="schemas/pdf-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/persistence-2.0.xsd"
+ uri="schemas/persistence-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/remoting-2.0.xsd"
+ uri="schemas/remoting-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/security-2.0.xsd"
+ uri="schemas/security-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/spring-2.0.xsd"
+ uri="schemas/spring-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/spring-seam-2.0.xsd"
+ uri="schemas/spring-seam-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/theme-2.0.xsd"
+ uri="schemas/theme-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/transaction-2.0.xsd"
+ uri="schemas/transaction-2.0.xsd"/>
+
+ <uri
+
name="http://jboss.com/products/seam/web-2.0.xsd"
+ uri="schemas/web-2.0.xsd"/>
+
+
</catalogContribution>
</extension>
</plugin>
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/async-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/async-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/async-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/async"
xmlns:async="http://jboss.com/products/seam/async"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="timer-service-dispatcher">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="components:attlist.ejbcomponent"/>
+ <xs:attributeGroup
ref="async:attlist.timerServiceDispatcher"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.timerServiceDispatcher">
</xs:attributeGroup>
+
+ <xs:element name="quartz-dispatcher">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="async:attlist.quartzDispatcher"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.quartzDispatcher">
</xs:attributeGroup>
+
+ <xs:element name="thread-pool-dispatcher">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup
ref="async:attlist.threadPoolDispatcher"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.threadPoolDispatcher">
+ <xs:attribute name="thread-pool-size"
type="xs:integer"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/bpm-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/bpm-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/bpm-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/bpm"
xmlns:bpm="http://jboss.com/products/seam/bpm"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="actor">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1"
ref="bpm:id"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="bpm:group-actor-ids"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="bpm:attlist.actor"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="id" type="xs:string"/>
+ <xs:element name="group-actor-ids"
type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.actor">
+ <xs:attribute name="group-actor-ids"> </xs:attribute>
+ </xs:attributeGroup>
+
+ <xs:element name="jbpm">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="bpm:process-definitions"/>
+ <xs:element ref="bpm:pageflow-definitions"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="bpm:attlist.jbpm"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="process-definitions"
type="components:multiValuedProperty"/>
+ <xs:element name="pageflow-definitions"
type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.jbpm"> </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/components-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/components-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/components-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/components"
+
xmlns:components="http://jboss.com/products/seam/components">
+ <xs:element name="components">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:component"/>
+ <xs:element ref="components:factory"/>
+ <xs:element ref="components:event"/>
+ <xs:any namespace="##other"
processContents="strict"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="component">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded"
ref="components:property"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="components:attlist.ejbcomponent"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attributeGroup name="attlist.ejbcomponent">
+ <xs:attribute name="jndi-name"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.component">
+ <xs:attribute name="name"/>
+ <xs:attribute name="class"/>
+ <xs:attribute name="scope">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="stateless"/>
+ <xs:enumeration value="event"/>
+ <xs:enumeration value="page"/>
+ <xs:enumeration value="conversation"/>
+ <xs:enumeration value="session"/>
+ <xs:enumeration value="business_process"/>
+ <xs:enumeration value="application"/>
+ <xs:enumeration value="STATELESS"/>
+ <xs:enumeration value="EVENT"/>
+ <xs:enumeration value="PAGE"/>
+ <xs:enumeration value="CONVERSATION"/>
+ <xs:enumeration value="SESSION"/>
+ <xs:enumeration value="BUSINESS_PROCESS"/>
+ <xs:enumeration value="APPLICATION"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="precedence"/>
+ <xs:attribute name="installed" default="true"/>
+ <xs:attribute name="auto-create" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="factory">
+ <xs:complexType>
+ <xs:attributeGroup ref="components:attlist.factory"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.factory">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="method"/>
+ <xs:attribute name="value"/>
+ <xs:attribute name="scope">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="stateless"/>
+ <xs:enumeration value="event"/>
+ <xs:enumeration value="page"/>
+ <xs:enumeration value="conversation"/>
+ <xs:enumeration value="session"/>
+ <xs:enumeration value="business_process"/>
+ <xs:enumeration value="application"/>
+ <xs:enumeration value="STATELESS"/>
+ <xs:enumeration value="EVENT"/>
+ <xs:enumeration value="PAGE"/>
+ <xs:enumeration value="CONVERSATION"/>
+ <xs:enumeration value="SESSION"/>
+ <xs:enumeration value="BUSINESS_PROCESS"/>
+ <xs:enumeration value="APPLICATION"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="auto-create" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="property">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:key"/>
+ <xs:element ref="components:value"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.property"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.property">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="key" type="xs:string"/>
+ <xs:element name="value" type="xs:string"/>
+
+ <xs:complexType name="multiValuedProperty">
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:value"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="mapProperty">
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:key"/>
+ <xs:element ref="components:value"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="event">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:action"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.event"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.event">
+ <xs:attribute name="type" use="required"/>
+ </xs:attributeGroup>
+
+ <xs:element name="action">
+ <xs:complexType>
+ <xs:attributeGroup ref="components:attlist.action"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.action">
+ <xs:attribute name="expression" use="required"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/core"
xmlns:core="http://jboss.com/products/seam/core"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="init">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.init"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.init">
+ <xs:attribute name="debug">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="jndi-pattern"/>
+ <xs:attribute name="transaction-management-enabled">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="user-transaction-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="manager">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.manager"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.manager">
+ <xs:attribute name="concurrent-request-timeout"
type="xs:integer"/>
+ <xs:attribute name="conversation-timeout"
type="xs:integer"/>
+ <xs:attribute name="conversation-id-parameter"/>
+ <xs:attribute name="parent-conversation-id-parameter"/>
+ </xs:attributeGroup>
+
+ <xs:element name="resource-bundle">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="core:bundle-names"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.resourceBundle"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="bundle-names"
type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.resourceBundle">
+ <xs:attribute name="bundle-names"> </xs:attribute>
+ </xs:attributeGroup>
+
+ <xs:element name="pojo-cache">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.pojoCache"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.pojoCache">
+ <xs:attribute name="cfg-resource-name"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/drools"
xmlns:drools="http://jboss.com/products/seam/drools"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="rule-base">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1"
ref="drools:rule-files"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="drools:attlist.RuleBase"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="rule-files"
type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.RuleBase">
+ <xs:attribute name="dsl-file" type="xs:string"/>
+ <xs:attribute name="rule-files" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="managed-working-memory">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup
ref="drools:attlist.ManagedWorkingMemory"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ManagedWorkingMemory">
+ <xs:attribute name="rule-base" type="xs:string"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/framework-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/framework-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/framework-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/framework"
+
xmlns:framework="http://jboss.com/products/seam/framework"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+
+ <xs:attributeGroup name="attlist.Home">
+ <xs:attribute name="entity-class" type="xs:string"/>
+ <xs:attribute name="new-instance" type="xs:string"/>
+ <xs:attribute name="created-message"
type="xs:string"/>
+ <xs:attribute name="updated-message"
type="xs:string"/>
+ <xs:attribute name="deleted-message"
type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.Query">
+ <xs:attribute name="ejbql" type="xs:string"/>
+ <xs:attribute name="max-results" type="xs:integer"/>
+ <xs:attribute name="order" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:element name="restrictions"
type="components:multiValuedProperty"/>
+ <xs:element name="hints" type="components:mapProperty"/>
+
+ <xs:element name="ejbql" type="xs:string"/>
+ <xs:element name="order" type="xs:string"/>
+
+ <xs:element name="entity-query">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:ejbql"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:order"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:restrictions"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:hints"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="framework:attlist.Query"/>
+ <xs:attributeGroup ref="framework:attlist.entityQuery"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.entityQuery">
+ <xs:attribute name="entity-manager" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="hibernate-entity-query">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:ejbql"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:order"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:restrictions"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="framework:attlist.Query"/>
+ <xs:attributeGroup
ref="framework:attlist.HibernateEntityQuery"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.HibernateEntityQuery">
+ <xs:attribute name="cacheable">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="cache-region" type="xs:string"/>
+ <xs:attribute name="fetch-size" type="xs:integer"/>
+ <xs:attribute name="session" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="created-message" type="xs:string"/>
+ <xs:element name="updated-message" type="xs:string"/>
+ <xs:element name="deleted-message" type="xs:string"/>
+ <xs:element name="new-instance" type="xs:string"/>
+
+ <xs:element name="entity-home">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="id" type="xs:string"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:created-message"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:updated-message"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:deleted-message"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:new-instance"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="framework:attlist.Home"/>
+ <xs:attributeGroup ref="framework:attlist.EntityHome"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.EntityHome">
+ <xs:attribute name="entity-manager" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="hibernate-entity-home">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="id" type="xs:string"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:created-message"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:updated-message"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:deleted-message"/>
+ <xs:element minOccurs="0" maxOccurs="1"
ref="framework:new-instance"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="framework:attlist.Home"/>
+ <xs:attributeGroup
ref="framework:attlist.HibernateEntityHome"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.HibernateEntityHome">
+ <xs:attribute name="session" type="xs:string"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/international-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/international-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/international-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/international"
xmlns:international="http://jboss.com/products/seam/international"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="locale-selector">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup
ref="international:attlist.localeSelector"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.localeSelector">
+ <xs:attribute name="locale-string"/>
+ <xs:attribute name="cookie-max-age">
+ <xs:attribute name="cookie-enabled">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+
+ <xs:element name="time-zone-selector">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup
ref="international:attlist.timeZoneSelector"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.timeZoneSelector">
+ <xs:attribute name="time-zone-id"/>
+ <xs:attribute name="cookie-max-age">
+ <xs:attribute name="cookie-enabled">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/jms-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/jms-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/jms-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/jms"
xmlns:jms="http://jboss.com/products/seam/jms"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="topic-connection">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="jms:attlist.TopicConnection"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.TopicConnection">
+ <xs:attribute name="topic-connection-factory-jndi-name"
type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="queue-connection">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="jms:attlist.QueueConnection"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.QueueConnection">
+ <xs:attribute name="queue-connection-factory-jndi-name"
type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="managed-topic-publisher">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="jms:attlist.ManagedTopicPublisher"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ManagedTopicPublisher">
+ <xs:attribute name="topic-jndi-name"
type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="managed-queue-sender">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="jms:attlist.ManagedQueueSender"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ManagedQueueSender">
+ <xs:attribute name="queue-jndi-name"
type="xs:string"/>
+ </xs:attributeGroup>
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/mail-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/mail-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/mail-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/mail"
+
xmlns:mail="http://jboss.com/products/seam/mail"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:attributeGroup name="attlist.mailSession">
+ <xs:attribute name="username" type="xs:string"/>
+ <xs:attribute name="password" type="xs:string"/>
+ <xs:attribute name="host" type="xs:string"/>
+ <xs:attribute name="port" type="xs:string"/>
+ <xs:attribute name="debug" type="xs:string"/>
+ <xs:attribute name="ssl" type="xs:boolean"/>
+ <xs:attribute name="session-jndi-name"
type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:element name="mail-session">
+ <xs:complexType>
+ <xs:attributeGroup ref="components:attlist.component" />
+ <xs:attributeGroup ref="mail:attlist.mailSession" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="users"
type="components:multiValuedProperty"/>
+ <xs:element name="meldware">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="mail:users" />
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="aliases"
type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.meldwareUser">
+ <xs:attribute name="username" type="xs:string" />
+ <xs:attribute name="password" type="xs:string" />
+ <xs:attribute name="admin" type="xs:boolean"
default="false"/>
+ </xs:attributeGroup>
+ <xs:element name="meldware-user">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="mail:aliases" />
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component" />
+ <xs:attributeGroup ref="mail:attlist.meldwareUser" />
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/navigation-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/navigation-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/navigation-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/navigation"
xmlns:navigation="http://jboss.com/products/seam/navigation"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="pages">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element ref="navigation:resources"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="navigation:attlist.pages"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="resources"
type="components:multiValuedProperty"/>
+
+ <xs:attributeGroup name="attlist.pages">
+ <xs:attribute name="no-conversation-view-id"/>
+ <xs:attribute name="login-view-id"/>
+ <xs:attribute name="http-port" type="xs:integer"/>
+ <xs:attribute name="https-port" type="xs:integer"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pageflow-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pageflow-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pageflow-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,336 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xs:schema
xmlns="http://jboss.com/products/seam/pageflow"
+
targetNamespace="http://jboss.com/products/seam/pageflow"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <!-- PAGEFLOW-DEFINITION -->
+ <!-- ################### -->
+ <xs:element name="pageflow-definition">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="start-node-elements" />
+ <xs:group ref="node-elements" />
+ <xs:group ref="end-node-elements" />
+ <xs:group ref="action-elements" />
+ <xs:element ref="event" />
+ <xs:element ref="exception-handler" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string"
use="required" />
+ </xs:complexType>
+ </xs:element>
+
+ <!-- NODES -->
+ <!-- ##### -->
+ <xs:element name="start-state">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="transition" />
+ <xs:element ref="event" />
+ <xs:element ref="exception-handler" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="end-state">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="event" />
+ <xs:element ref="exception-handler" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string"
use="required" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="process-state">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="sub-process" />
+ <xs:element ref="transition" />
+ <xs:element ref="event" />
+ <xs:element ref="exception-handler" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="sub-process">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string"
use="required" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="start-page">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="page-elements" />
+ </xs:choice>
+ <xs:attributeGroup ref="page-attributes" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="decision">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="handler" type="delegation" />
+ <xs:element ref="event" />
+ <xs:element ref="exception-handler" />
+ <xs:element name="transition">
+ <xs:complexType>
+ <xs:choice minOccurs="0"
+ maxOccurs="unbounded">
+ <xs:element name="condition">
+ <xs:complexType mixed="true">
+ <xs:sequence minOccurs="0"
+ maxOccurs="unbounded">
+ <xs:any processContents="lax"
+ minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="expression"
+ type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:group ref="action-elements" />
+ <xs:element ref="exception-handler" />
+ </xs:choice>
+ <xs:attribute name="to" type="xs:string"
+ use="required" />
+ <xs:attribute name="name" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string"
use="required" />
+ <xs:attribute name="expression" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="page">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element ref="end-conversation" />
+ </xs:choice>
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element ref="end-task" />
+ </xs:choice>
+ <xs:group ref="page-elements" />
+ </xs:sequence>
+ <xs:attributeGroup ref="page-attributes" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="redirect" />
+ <xs:element name="description" type="xs:string" />
+
+ <xs:element name="end-conversation">
+ <xs:complexType>
+ <xs:attribute name="before-redirect" type="booleanType" />
+ <xs:attribute name="create-process" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="end-task">
+ <xs:complexType>
+ <xs:attribute name="transition" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <!-- TRANSITION -->
+ <!-- ########## -->
+ <xs:element name="transition">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="action-elements" />
+ <xs:element ref="exception-handler" />
+ </xs:choice>
+ <xs:attribute name="to" type="xs:string"
use="required" />
+ <xs:attribute name="name" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <!-- ACTIONS -->
+ <!-- ####### -->
+ <xs:element name="action">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:any processContents="lax" minOccurs="0"
+ maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="config-type" default="field">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="field" />
+ <xs:enumeration value="bean" />
+ <xs:enumeration value="constructor" />
+ <xs:enumeration value="configuration-property" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="ref-name" type="xs:string" />
+ <xs:attribute name="accept-propagated-events"
+ type="booleanType" default="true" />
+ <xs:attribute name="expression" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="script">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:any processContents="lax" minOccurs="0"
+ maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="accept-propagated-events"
+ type="booleanType" default="true" />
+ </xs:complexType>
+ </xs:element>
+
+ <!-- EVENT -->
+ <!-- ##### -->
+ <xs:element name="event">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="action-elements" />
+ </xs:choice>
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:union>
+ <xs:simpleType>
+ <xs:restriction base="xs:string" />
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="node-enter" />
+ <xs:enumeration value="node-leave" />
+ <xs:enumeration value="process-start" />
+ <xs:enumeration value="process-end" />
+ <xs:enumeration value="task-create" />
+ <xs:enumeration value="task-assign" />
+ <xs:enumeration value="task-start" />
+ <xs:enumeration value="task-end" />
+ <xs:enumeration value="before-signal" />
+ <xs:enumeration value="after-signal" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- EXCEPTION-HANDLER -->
+ <!-- ################# -->
+ <xs:element name="exception-handler">
+ <xs:complexType>
+ <xs:choice minOccurs="1" maxOccurs="unbounded">
+ <xs:element ref="action" />
+ <xs:element ref="script" />
+ </xs:choice>
+ <xs:attribute name="exception-class" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <!-- TYPES AND GROUPS -->
+ <!-- ################ -->
+ <xs:complexType name="delegation" mixed="true">
+ <xs:sequence>
+ <xs:any processContents="lax" minOccurs="0"
+ maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="config-type" default="field">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="field" />
+ <xs:enumeration value="bean" />
+ <xs:enumeration value="constructor" />
+ <xs:enumeration value="configuration-property" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:simpleType name="configType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="field" />
+ <xs:enumeration value="bean" />
+ <xs:enumeration value="constructor" />
+ <xs:enumeration value="configuration-property" />
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="booleanType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="yes" />
+ <xs:enumeration value="no" />
+ <xs:enumeration value="true" />
+ <xs:enumeration value="false" />
+ <xs:enumeration value="on" />
+ <xs:enumeration value="off" />
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="enabledType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="enabled" />
+ <xs:enumeration value="disabled" />
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:group name="start-node-elements">
+ <xs:choice>
+ <xs:element ref="start-state" />
+ <xs:element ref="start-page" />
+ </xs:choice>
+ </xs:group>
+
+ <xs:group name="node-elements">
+ <xs:choice>
+ <xs:element ref="page" />
+ <xs:element ref="decision" />
+ <xs:element ref="process-state" />
+ </xs:choice>
+ </xs:group>
+
+ <xs:group name="end-node-elements">
+ <xs:choice>
+ <xs:element ref="end-state" />
+ </xs:choice>
+ </xs:group>
+
+ <xs:group name="action-elements">
+ <xs:choice>
+ <xs:element ref="action" />
+ </xs:choice>
+ </xs:group>
+
+ <xs:group name="page-elements">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="description" />
+ <xs:element ref="redirect" />
+ </xs:choice>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="event" />
+ <xs:element ref="exception-handler" />
+ <xs:element ref="transition" />
+ <xs:group ref="action-elements" />
+ </xs:choice>
+ </xs:sequence>
+ </xs:group>
+
+ <xs:attributeGroup name="page-attributes">
+ <xs:attribute name="redirect" type="booleanType" />
+ <xs:attribute name="switch" type="enabledType" />
+ <xs:attribute name="no-conversation-view-id" type="xs:string"
/>
+ <xs:attribute name="timeout" type="xs:int" />
+ <xs:attribute name="back" type="enabledType" />
+ <xs:attribute name="view-id" type="xs:string"
use="required" />
+ <xs:attribute name="name" type="xs:string"
use="required" />
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pages-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pages-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pages-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,430 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/pages"
+
xmlns:pages="http://jboss.com/products/seam/pages">
+ <xs:element name="pages">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0"
maxOccurs="unbounded">
+ <xs:element ref="pages:conversation"/>
+ <xs:element ref="pages:page"/>
+ </xs:choice>
+ <xs:element minOccurs="0" maxOccurs="unbounded"
ref="pages:exception"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="pages:attlist.pages"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.pages">
+ <xs:attribute name="no-conversation-view-id"/>
+ <xs:attribute name="login-view-id"/>
+ </xs:attributeGroup>
+ <xs:element name="exception">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0"
ref="pages:end-conversation"/>
+ <xs:choice>
+ <xs:element ref="pages:http-error"/>
+ <xs:element ref="pages:redirect"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attributeGroup ref="pages:attlist.exception"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.exception">
+ <xs:attribute name="class"/>
+ </xs:attributeGroup>
+ <xs:element name="conversation">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.conversation"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.conversation">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="parameter-name" use="required"/>
+ <xs:attribute name="parameter-value"/>
+ </xs:attributeGroup>
+ <xs:element name="page">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="pages:restrict"/>
+ <xs:element ref="pages:description"/>
+ <xs:element ref="pages:param"/>
+ <xs:element ref="pages:begin-conversation"/>
+ <xs:element ref="pages:end-conversation"/>
+ <xs:element ref="pages:start-task"/>
+ <xs:element ref="pages:begin-task"/>
+ <xs:element ref="pages:end-task"/>
+ <xs:element ref="pages:create-process"/>
+ <xs:element ref="pages:resume-process"/>
+ <xs:element ref="pages:in"/>
+ <xs:element ref="pages:raise-event"/>
+ <xs:element ref="pages:action"/>
+ <xs:element ref="pages:navigation"/>
+ </xs:choice>
+ <xs:attributeGroup ref="pages:attlist.page"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.page">
+ <xs:attribute name="action"/>
+ <xs:attribute name="view-id"/>
+ <xs:attribute name="switch" default="enabled">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="enabled"/>
+ <xs:enumeration value="disabled"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="no-conversation-view-id"/>
+ <xs:attribute name="conversation-required"
default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="login-required" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="scheme"/>
+ <xs:attribute name="timeout"/>
+ <xs:attribute name="bundle"/>
+ <xs:attribute name="conversation"/>
+ </xs:attributeGroup>
+ <xs:element name="param">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.param"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.param">
+ <xs:attribute name="name"/>
+ <xs:attribute name="value"/>
+ <xs:attribute name="converter"/>
+ <xs:attribute name="converterId"/>
+ <xs:attribute name="validator"/>
+ <xs:attribute name="validatorId"/>
+ <xs:attribute name="required" type="xs:boolean"/>
+ </xs:attributeGroup>
+ <xs:element name="action">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.action"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.action">
+ <xs:attribute name="if"/>
+ <xs:attribute name="execute" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="restrict" type="xs:string"/>
+ <xs:element name="navigation">
+ <xs:complexType>
+ <xs:choice>
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="pages:begin-conversation"/>
+ <xs:element ref="pages:end-conversation"/>
+ <xs:element ref="pages:start-task"/>
+ <xs:element ref="pages:begin-task"/>
+ <xs:element ref="pages:end-task"/>
+ <xs:element ref="pages:create-process"/>
+ <xs:element ref="pages:resume-process"/>
+ </xs:choice>
+ <xs:element minOccurs="0"
maxOccurs="unbounded" ref="pages:out"/>
+ <xs:element minOccurs="0"
ref="pages:raise-event"/>
+ <xs:choice minOccurs="0">
+ <xs:element ref="pages:render"/>
+ <xs:element ref="pages:redirect"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded"
ref="pages:rule"/>
+ </xs:choice>
+ <xs:attributeGroup ref="pages:attlist.navigation"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.navigation">
+ <xs:attribute name="from-action"/>
+ <xs:attribute name="evaluate"/>
+ </xs:attributeGroup>
+ <xs:element name="rule">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="pages:begin-conversation"/>
+ <xs:element ref="pages:end-conversation"/>
+ <xs:element ref="pages:start-task"/>
+ <xs:element ref="pages:begin-task"/>
+ <xs:element ref="pages:end-task"/>
+ <xs:element ref="pages:create-process"/>
+ <xs:element ref="pages:resume-process"/>
+ </xs:choice>
+ <xs:element minOccurs="0" maxOccurs="unbounded"
ref="pages:out"/>
+ <xs:element minOccurs="0"
ref="pages:raise-event"/>
+ <xs:choice minOccurs="0">
+ <xs:element ref="pages:render"/>
+ <xs:element ref="pages:redirect"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attributeGroup ref="pages:attlist.rule"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.rule">
+ <xs:attribute name="if-outcome"/>
+ <xs:attribute name="if"/>
+ </xs:attributeGroup>
+ <xs:element name="raise-event">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.raise-event"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.raise-event">
+ <xs:attribute name="type" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="begin-conversation">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.begin-conversation"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.begin-conversation">
+ <xs:attribute name="join" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="nested" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="pageflow"/>
+ <xs:attribute name="flush-mode">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="manual"/>
+ <xs:enumeration value="auto"/>
+ <xs:enumeration value="commit"/>
+ <xs:enumeration value="MANUAL"/>
+ <xs:enumeration value="AUTO"/>
+ <xs:enumeration value="COMMIT"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="if"/>
+ </xs:attributeGroup>
+ <xs:element name="end-conversation">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.end-conversation"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.end-conversation">
+ <xs:attribute name="before-redirect" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="if"/>
+ </xs:attributeGroup>
+ <xs:element name="begin-task">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.begin-task"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.begin-task">
+ <xs:attribute name="task-id"/>
+ <xs:attribute name="pageflow"/>
+ <xs:attribute name="flush-mode">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="manual"/>
+ <xs:enumeration value="auto"/>
+ <xs:enumeration value="commit"/>
+ <xs:enumeration value="MANUAL"/>
+ <xs:enumeration value="AUTO"/>
+ <xs:enumeration value="COMMIT"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="start-task">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.start-task"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.start-task">
+ <xs:attribute name="task-id"/>
+ <xs:attribute name="pageflow"/>
+ <xs:attribute name="flush-mode">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="manual"/>
+ <xs:enumeration value="auto"/>
+ <xs:enumeration value="commit"/>
+ <xs:enumeration value="MANUAL"/>
+ <xs:enumeration value="AUTO"/>
+ <xs:enumeration value="COMMIT"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="end-task">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.end-task"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.end-task">
+ <xs:attribute name="transition"/>
+ <xs:attribute name="before-redirect" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="create-process">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.create-process"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.create-process">
+ <xs:attribute name="definition"/>
+ </xs:attributeGroup>
+ <xs:element name="resume-process">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.resume-process"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.resume-process">
+ <xs:attribute name="process-id"/>
+ </xs:attributeGroup>
+ <xs:element name="in">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.in"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.in">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="scope">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="stateless"/>
+ <xs:enumeration value="event"/>
+ <xs:enumeration value="page"/>
+ <xs:enumeration value="conversation"/>
+ <xs:enumeration value="session"/>
+ <xs:enumeration value="business_process"/>
+ <xs:enumeration value="application"/>
+ <xs:enumeration value="STATELESS"/>
+ <xs:enumeration value="EVENT"/>
+ <xs:enumeration value="PAGE"/>
+ <xs:enumeration value="CONVERSATION"/>
+ <xs:enumeration value="SESSION"/>
+ <xs:enumeration value="BUSINESS_PROCESS"/>
+ <xs:enumeration value="APPLICATION"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="value" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="out">
+ <xs:complexType>
+ <xs:attributeGroup ref="pages:attlist.out"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.out">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="scope" default="CONVERSATION">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="stateless"/>
+ <xs:enumeration value="event"/>
+ <xs:enumeration value="page"/>
+ <xs:enumeration value="conversation"/>
+ <xs:enumeration value="session"/>
+ <xs:enumeration value="business_process"/>
+ <xs:enumeration value="application"/>
+ <xs:enumeration value="STATELESS"/>
+ <xs:enumeration value="EVENT"/>
+ <xs:enumeration value="PAGE"/>
+ <xs:enumeration value="CONVERSATION"/>
+ <xs:enumeration value="SESSION"/>
+ <xs:enumeration value="BUSINESS_PROCESS"/>
+ <xs:enumeration value="APPLICATION"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="value" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="render">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0"
ref="pages:message"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="pages:attlist.render"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.render">
+ <xs:attribute name="view-id"/>
+ </xs:attributeGroup>
+ <xs:element name="redirect">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0"
ref="pages:message"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded"
ref="pages:param"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="pages:attlist.redirect"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.redirect">
+ <xs:attribute name="view-id"/>
+ </xs:attributeGroup>
+ <xs:element name="http-error">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0"
ref="pages:message"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="pages:attlist.http-error"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.http-error">
+ <xs:attribute name="error-code"/>
+ </xs:attributeGroup>
+ <xs:element name="message">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="pages:attlist.message"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.message">
+ <xs:attribute name="for"/>
+ <xs:attribute name="severity" default="INFO">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="info"/>
+ <xs:enumeration value="warn"/>
+ <xs:enumeration value="error"/>
+ <xs:enumeration value="fatal"/>
+ <xs:enumeration value="INFO"/>
+ <xs:enumeration value="WARN"/>
+ <xs:enumeration value="ERROR"/>
+ <xs:enumeration value="FATAL"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="description" type="xs:string"/>
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pdf-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pdf-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pdf-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/pdf"
+
xmlns:pdf="http://jboss.com/products/seam/pdf"
+
xmlns:components="http://jboss.com/products/seam/components"
+ attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="document-store">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="pdf:attlist.docstore"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.docstore">
+ <xs:attribute name="error-page" type="xs:string"/>
+ <xs:attribute name="use-extensions" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="key-store-config">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="pdf:attlist.UseExtensions"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.UseExtensions">
+ <xs:attribute name="key-store" type="xs:string"/>
+ <xs:attribute name="key-store-password"
type="xs:string"/>
+ <xs:attribute name="key-password" type="xs:string"/>
+ <xs:attribute name="key-alias" type="xs:string"/>
+ </xs:attributeGroup>
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/persistence-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/persistence-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/persistence-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/persistence"
xmlns:persistence="http://jboss.com/products/seam/persistence"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="managed-persistence-context">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="persistence:filters"/>
+ <xs:element ref="persistence:persistence-unit-jndi-name"
/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attributeGroup
ref="persistence:attlist.ManagedPersistenceContext"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ManagedPersistenceContext">
+ <xs:attribute name="entity-manager-factory"/>
+ <xs:attribute name="persistence-unit-jndi-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="managed-hibernate-session">
+ <xs:complexType mixed="true">
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element ref="persistence:filters"/>
+ </xs:sequence>
+ <xs:attributeGroup
ref="persistence:attlist.ManagedHibernateSession"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="filters"
type="components:multiValuedProperty"/>
+
+ <xs:element name="persistence-unit-jndi-name" type="xs:string"
/>
+
+ <xs:attributeGroup name="attlist.ManagedHibernateSession">
+ <xs:attribute name="session-factory"/>
+ <xs:attribute name="session-factory-jndi-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="hibernate-session-factory">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="mapping-classes"
type="components:multiValuedProperty"/>
+ <xs:element name="mapping-files"
type="components:multiValuedProperty"/>
+ <xs:element name="mapping-jars"
type="components:multiValuedProperty"/>
+ <xs:element name="mapping-packages"
type="components:multiValuedProperty"/>
+ <xs:element name="mapping-resources"
type="components:multiValuedProperty"/>
+ <xs:element name="cfg-properties"
type="components:mapProperty"/>
+ </xs:choice>
+ <xs:attributeGroup
ref="persistence:attlist.HibernateSessionFactory"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.HibernateSessionFactory">
+ <xs:attribute name="cfg-resource-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="entity-manager-factory">
+ <xs:complexType mixed="true">
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element name="persistence-unit-properties"
type="components:mapProperty"/>
+ </xs:sequence>
+ <xs:attributeGroup
ref="persistence:attlist.EntityManagerFactory"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.EntityManagerFactory">
+ <xs:attribute name="persistence-unit-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="filter">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="name"
type="xs:string"/>
+ <xs:element minOccurs="0" name="parameters"
type="components:mapProperty"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="persistence:attlist.filter"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.filter">
+ <xs:attribute name="enabled"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/remoting-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/remoting-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/remoting-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/remoting"
xmlns:remoting="http://jboss.com/products/seam/remoting"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="remoting-config">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="remoting:attlist.remotingConfig"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.remotingConfig">
+ <xs:attribute name="poll-interval" />
+ <xs:attribute name="poll-timeout" />
+ <xs:attribute name="debug">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <!-- subscription registry -->
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/seam-components_1_0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/seam-components_1_0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/seam-components_1_0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- A prototype xsd schema for Seam components
+$Id: seam-components_1_0.xsd,v 1.1 2007/02/28 15:43:12 alesj Exp $ -->
+<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="urn:jboss:seam-components:1.0"
+ xmlns="urn:jboss:seam-components:1.0"
+ xmlns:mc="urn:jboss:bean-deployer:2.0"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="1.0"
+ >
+
+ <xsd:import namespace="urn:jboss:bean-deployer:2.0"/>
+
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A schema for constructing Seam components.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <xsd:element name="component" type="componentType" />
+
+ <xsd:complexType name="componentType">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A component.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="mc:beanType">
+ <xsd:attribute name="scope" type="xsd:string"
use="optional"/>
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:element name="lookup" type="lookupType" />
+
+ <xsd:complexType name="lookupType">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Inject Seam component into MC beans.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="mc:dependencyType">
+ <xsd:attribute name="scope" type="xsd:string"
use="optional"/>
+ <xsd:attribute name="create" type="xsd:boolean"
use="optional"/>
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+</xsd:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/security-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/security-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/security-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/security"
xmlns:security="http://jboss.com/products/seam/security"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="identity">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="security:attlist.identity"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.identity">
+ <xs:attribute name="authenticate-method" />
+ <xs:attribute name="remember-me" type="xs:boolean"/>
+ <xs:attribute name="authenticate-every-request"
type="xs:boolean"/>
+ <xs:attribute name="jaas-config-name"
type="xs:string"/>
+ <xs:attribute name="security-rules" type="xs:string"/>
+ <xs:attribute name="cookie-max-age" />
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/spring"
xmlns:spring="http://jboss.com/products/seam/spring"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="http://jboss.com/products/seam/components-2.0.xsd&qu...
+
+ <xs:element name="context-loader">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1"
ref="spring:config-locations"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attribute name="config-locations" type="xs:string"
use="optional" default="/WEB-INF/applicationContext.xml">
+ <xs:annotation>
+ <xs:documentation>
+ <![CDATA[
+ A single application context config location.
+ ]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="config-locations"
type="components:multiValuedProperty">
+ <xs:annotation>
+ <xs:documentation>
+ <![CDATA[
+ Allows you to specify many config-locations in nested value elements.
+ ]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="task-executor-dispatcher">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup
ref="core:attlist.taskExecutorDispatcher"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="core:attlist.taskExecutorDispatcher">
+ <xs:attribute name="task-executor" use="required"/>
+ <xs:attribute name="schedule-dispatcher"/>
+ </xs:attributeGroup>
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-seam-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-seam-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-seam-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
+
+<xsd:schema
xmlns="http://jboss.com/products/seam/spring-seam"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:tool="http://www.springframework.org/schema/tool"
targetNamespace="http://jboss.com/products/seam/spring-seam"
+ elementFormDefault="qualified"
attributeFormDefault="unqualified">
+
+ <xsd:import
namespace="http://www.springframework.org/schema/tool"
+
schemaLocation="http://www.springframework.org/schema/tool/spring-to...
/>
+
+ <xsd:element name="configure-scopes">
+ <xsd:annotation>
+ <xsd:documentation>Makes all the seam scopes available in
spring.</xsd:documentation>
+ <xsd:appinfo>
+ <tool:annotation>
+ <tool:exports />
+ </tool:annotation>
+ </xsd:appinfo>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:attribute name="prefix" type="xsd:string"
use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The prefix to use for the seam scopes. Default:
"seam."
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="instance">
+ <xsd:annotation>
+ <xsd:documentation>
+ Make an instance of a seam component available to spring beans for spring
injection.
+ </xsd:documentation>
+ <xsd:appinfo>
+ <tool:annotation>
+ <tool:exports />
+ </tool:annotation>
+ </xsd:appinfo>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:attribute name="id" type="xsd:ID">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The id to use when making this seam component instance
available in spring. The default will be the seam component name.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="name" type="xsd:string"
use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The seam component name to get an instance of.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="scope" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The optional scope to look for this seam component
instance in.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="STATELESS" />
+ <xsd:enumeration value="METHOD" />
+ <xsd:enumeration value="EVENT" />
+ <xsd:enumeration value="PAGE" />
+ <xsd:enumeration value="CONVERSATION" />
+ <xsd:enumeration value="SESSION" />
+ <xsd:enumeration value="APPLICATION" />
+ <xsd:enumeration value="BUSINESS_PROCESS" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:attribute>
+ <xsd:attribute name="type" type="xsd:string"
use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The class type to use when creating a proxy of this
instance. Useful when using
+ EL for the name because the type of the EL expression
may not be available when the
+ proxy is created.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="create" type="xsd:boolean"
use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Whether seam should create a new instance if one does
not already exist.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="proxy" type="xsd:boolean"
use="optional" default="false">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Whether to wrap this definition in a proxy for safe
injection into a spring singleton.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="component">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Makes the surrounding spring bean a seam component with the
scope managed by spring. Also helps to resolve cases where
+ the spring bean name must be different from the seam component
name or where the seam beanClass cannot be correctly
+ detected.
+ ]]>
+ </xsd:documentation>
+ <xsd:appinfo>
+ <tool:annotation>
+ <tool:exports />
+ </tool:annotation>
+ </xsd:appinfo>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:attribute name="name" type="xsd:string"
use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The seam component name to give this spring bean.
Optional unless the seam component name must be different from the
+ spring bean name.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="spring-name" type="xsd:string"
use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ What spring bean name should seam use to obtain an
instance of this bean. Only necessary when seam-spring cannot
+ property detect the name of the spring bean which some
spring NamespaceHandlers can do (eg. <aop:scoped-proxy/>, etc.).
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="class" type="xsd:string"
use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The component class seam will use to get annotations
from and to wrap it's interceptors around. Optional unless the
+ correct class is not being detected by seam-spring.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="intercept" type="xsd:boolean"
use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Determines whether Seam interceptors should be wrapped
around a bean, by overriding Seam's default rules.
+ Seldom do you want the seam interceptors wrapped around
a sprig singleton. Auto will use choose no
+ interception for a singleton and use Seam standard rules
otherwise.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="auto-create" type="xsd:boolean"
use="optional" default="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Should instances of this component be auto-created. Defaults to true since the
STATELESS
+ scope is going to be used most of the time when using this namespace handler.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="scope" use="optional"
default="STATELESS">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+The optional scope this component should have. STATELESS will allow spring to manage the
scope. ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="STATELESS" />
+ <xsd:enumeration value="EVENT" />
+ <xsd:enumeration value="PAGE" />
+ <xsd:enumeration value="CONVERSATION" />
+ <xsd:enumeration value="SESSION" />
+ <xsd:enumeration value="APPLICATION" />
+ <xsd:enumeration value="BUSINESS_PROCESS" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:attribute>
+ </xsd:complexType>
+ </xsd:element>
+</xsd:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/theme-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/theme-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/theme-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/theme"
xmlns:theme="http://jboss.com/products/seam/theme"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="theme-selector">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element ref="theme:available-themes"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="theme:attlist.themeSelector"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="available-themes"
type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.themeSelector">
+ <xs:attribute name="theme" type="xs:string"/>
+ <xs:attribute name="available-themes"
type="xs:string"/>
+ <xs:attribute name="cookie-max-age"/>
+ <xs:attribute name="cookie-enabled">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/transaction-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/transaction-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/transaction-2.0.xsd 2007-08-16
14:11:17 UTC (rev 3175)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/transaction"
xmlns:transaction="http://jboss.com/products/seam/transaction"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="ejb-transaction">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="components:attlist.ejbcomponent"/>
+ <xs:attributeGroup ref="transaction:attlist.transaction"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.transaction">
</xs:attributeGroup>
+
+ <xs:element name="hibernate-transaction">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup
ref="transaction:attlist.HibernateTransaction"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.HibernateTransaction">
+ <xs:attribute name="session" type="xs:string"
use="required"/>
+ </xs:attributeGroup>
+
+ <xs:element name="entity-transaction">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup
ref="transaction:attlist.EntityTransaction"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.EntityTransaction">
+ <xs:attribute name="entity-manager" type="xs:string"
use="required"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/web-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/web-2.0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/web-2.0.xsd 2007-08-16 14:11:17
UTC (rev 3175)
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/web"
xmlns:web="http://jboss.com/products/seam/web"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="multipart-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ <xs:attributeGroup ref="web:attlist.multipartFilter"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="redirect-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="exception-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="context-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="character-encoding-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ <xs:attribute name="encoding" type="xs:string"/>
+ <xs:attribute name="override-client"
type="xs:boolean"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="authentication-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ <xs:attribute name="realm" type="xs:string"/>
+ <xs:attribute name="key" type="xs:string"/>
+ <xs:attribute name="nonce-validity-seconds"
type="xs:int"/>
+ <xs:attribute name="auth-type" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="ajax4jsf-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ <xs:attributeGroup ref="web:attlist.ajax4jsfFilter"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attributeGroup name="attlist.filter">
+ <xs:attribute name="url-pattern" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.multipartFilter">
+ <xs:attribute name="create-temp-files">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="max-request-size"
type="xs:integer"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.ajax4jsfFilter">
+ <xs:attribute name="enable-cache">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="force-parser">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="log4j-init-file"
type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="servlet-session">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.servlet-session"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.servlet-session">
+ <xs:attribute name="invalidate-on-scheme-change"
type="xs:boolean"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java 2007-08-16
14:02:52 UTC (rev 3174)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java 2007-08-16
14:11:17 UTC (rev 3175)
@@ -34,11 +34,39 @@
if(body.indexOf(PUBLIC_ID_11) >= 0) {
return ENT_SEAM_COMPONENTS_11;
}
- if(is12(body)) return ENT_SEAM_COMPONENTS_12;
- if(is12Component(body)) return ENT_SEAM_COMPONENT_12;
+ if(!isComponentsSchema(body)) {
+ return null;
+ }
+
+ int i = body.indexOf("xsi:schemaLocation");
+ if(i < 0) return null;
+ int j = body.indexOf("\"", i);
+ if(j < 0) return null;
+ int k = body.indexOf("\"", j + 1);
+ if(k < 0) return null;
+ String schemaLocation = body.substring(j + 1, k);
+ boolean isSingleComponent = is12Component(body);
+
+ int i20 = schemaLocation.indexOf("2.0");
+ if(i20 >= 0) return null;
+
+ int i12 = schemaLocation.indexOf("1.2");
+ if(i12 >= 0) {
+ if(isSingleComponent) return ENT_SEAM_COMPONENT_12;
+ if(is12(body)) return ENT_SEAM_COMPONENTS_12;
+ }
return null;
}
+ private boolean isComponentsSchema(String body) {
+ int i = body.indexOf("<components");
+ if(i < 0) return false;
+ int j = body.indexOf(">", i);
+ if(j < 0) return false;
+ String s = body.substring(i, j);
+ return
s.indexOf("\"http://jboss.com/products/seam/components\"&q... > 0;
+ }
+
private boolean is12(String body) {
int i = body.indexOf("<components");
if(i < 0) return false;