[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Implementing JAXB style parsing for aop-mc-int
kabir.khan@jboss.com
do-not-reply at jboss.com
Thu Mar 20 15:18:53 EDT 2008
"alex.loubyansky at jboss.com" wrote : I guess, it should be
| <xsd:group ref="..."/>
| instead of
| <xsd:group name="..."/>
|
| That's what makes the difference between the group definition and a reference to it.
The only group defined is valueGroup. In the aop beans schema I do:
| <xsd:redefine schemaLocation="jboss-beans-common_2_0.xsd">
| ...
| <xsd:group name="valueGroup"/>
| ...
| </xsd:redefine>
|
in the jboss-beans-common schema, the group is defined
| <xsd:group name="valueGroup">
| <xsd:annotation>
| <xsd:documentation>
| ...
| </xsd:documentation>
| </xsd:annotation>
| <xsd:choice>
| <!--<xsd:element name="bean" type="beanType"/>-->
| <!--<xsd:element name="lazy" type="lazyType"/>-->
| <xsd:element name="value" type="plainValueType"/>
| <xsd:element name="inject" type="injectionType"/>
| <xsd:element name="value-factory" type="valueFactoryType"/>
| <xsd:element name="collection" type="collectionType"/>
| <xsd:element name="list" type="listType"/>
| <xsd:element name="set" type="setType"/>
| <xsd:element name="array" type="arrayType"/>
| <xsd:element name="map" type="mapType"/>
| <xsd:element name="null">
| <xsd:complexType/>
| </xsd:element>
| <xsd:element name="this">
| <xsd:complexType/>
| </xsd:element>
| <xsd:any namespace="##other" processContents="strict">
| <xsd:annotation>
| <xsd:documentation>An extension value</xsd:documentation>
| </xsd:annotation>
| </xsd:any>
| </xsd:choice>
| </xsd:group>
|
Then everywhere it is used it uses 'ref', e.g.
| <xsd:complexType name="valueType" mixed="true">
| <xsd:annotation>
| <xsd:documentation>
| <![CDATA[
| A value that can take other values, i.e. properties and parameters.
|
| e.g.
| <parameter><value class="com.acme.MyClass">xxx</value></parameter>
| ]]>
| </xsd:documentation>
| </xsd:annotation>
| <xsd:complexContent>
| <xsd:extension base="plainValueType">
| <xsd:sequence>
| <xsd:choice minOccurs="0">
| <xsd:group ref="valueGroup"/>
| </xsd:choice>
| </xsd:sequence>
| </xsd:extension>
| </xsd:complexContent>
| </xsd:complexType>
|
There isn't any group called "global"?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138138#4138138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138138
More information about the jboss-dev-forums
mailing list