[prev in list] [next in list] [prev in thread] [next in thread] 

List:       castor-user
Subject:    [castor-user] complexContent restrictions
From:       "Hallander, Jon Eric (Eric)** CTR **" <ehallander () lucent ! com>
Date:       2005-03-23 21:21:44
Message-ID: 1B8C2E08B21B8743A2B3AED07407DA760A0CA3DD () nj7460exch002u ! ho ! lucent ! com
[Download RAW message or body]

This is a multi-part message in MIME format.

--MML_1111612966_17185@891.exolab.org
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C52FEE.50168B06"

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.


Can I do this with Castor??
 
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd=" http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> ">
        <xsd:simpleType name="AppEventType">
            <xsd:restriction base="xsd:token">
                <xsd:enumeration value="PropertyEvent"/>
                <xsd:enumeration value="ComponentEvent"/>
            </xsd:restriction>
        </xsd:simpleType>
        <xsd:complexType name="ApplicationEventType" abstract="true">
            <xsd:sequence>
                <xsd:element name="type" type="AppEventType"/>
            </xsd:sequence>
        </xsd:complexType>
        <xsd:complexType name="BasePropertyEventType" abstract="true">
            <xsd:complexContent>
                <xsd:extension base="ApplicationEventType">
                    <xsd:sequence>
                        <xsd:element name="propertyName" type="xsd:string"/>
                        <xsd:element name="propertyValue" type="xsd:string"/>
                    </xsd:sequence>
                </xsd:extension>
            </xsd:complexContent>
        </xsd:complexType>
        <xsd:complexType name="PropertyEventType">
            <xsd:complexContent>
                <xsd:restriction base="BasePropertyEventType">
                    <xsd:sequence>
                        <xsd:element name="type" type="AppEventType" fixed="PropertyEvent"/>
                        <xsd:element name="propertyName" type="xsd:string"/>
                        <xsd:element name="propertyValue" type="xsd:string"/>
                    </xsd:sequence>
                </xsd:restriction>
            </xsd:complexContent>
        </xsd:complexType>
</xsd:schema>
 
I am trying to come up with some derived types that have the "type" field set to specific values.
 
 
Eric 
732-949-7424 - Office
732-310-1839 - Personal Cell
mailto:ehallander@lucent.com <mailto:ehallander@lucent.com> 
 

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">


<META content="MSHTML 6.00.2800.1492" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=120421621-23032005><FONT face=Arial>Can I do this with 
Castor??</FONT></SPAN></DIV>
<DIV><SPAN class=120421621-23032005><FONT face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=120421621-23032005><FONT face=Arial>&lt;?xml version="1.0" 
encoding="UTF-8"?&gt;<BR>&lt;xsd:schema xmlns:xsd="<A 
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:simpleType 
name="AppEventType"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:restriction 
base="xsd:token"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:enumeration 
value="PropertyEvent"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:enumeration 
value="ComponentEvent"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;/xsd:restriction&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/xsd:simpleType&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;xsd:complexType name="ApplicationEventType" 
abstract="true"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:element name="type" 
type="AppEventType"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;/xsd:sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/xsd:complexType&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;xsd:complexType name="BasePropertyEventType" 
abstract="true"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:complexContent&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:extension 
base="ApplicationEventType"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:element name="propertyName" 
type="xsd:string"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:element name="propertyValue" 
type="xsd:string"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;/xsd:sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;/xsd:extension&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;/xsd:complexContent&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/xsd:complexType&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;xsd:complexType 
name="PropertyEventType"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:complexContent&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:restriction 
base="BasePropertyEventType"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:element name="type" type="AppEventType" 
fixed="PropertyEvent"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n \
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  \
&lt;xsd:element name="propertyName"  \
type="xsd:string"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;xsd:element name="propertyValue" 
type="xsd:string"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;/xsd:sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;/xsd:restriction&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 &lt;/xsd:complexContent&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/xsd:complexType&gt;<BR>&lt;/xsd:schema&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=120421621-23032005><FONT face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=120421621-23032005><FONT face=Arial>I am trying to come up with 
some derived types that have the "type" field set to specific 
values.</FONT></SPAN></DIV>
<DIV><SPAN class=120421621-23032005><FONT face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=120421621-23032005></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT face=Script size=6>Eric</FONT> </FONT></DIV>
<DIV><FONT face=Arial>732-949-7424 - Office</FONT></DIV>
<DIV><FONT face=Arial>732-310-1839 - Personal Cell</FONT></DIV>
<DIV><FONT face=Arial><A 
href="mailto:ehallander@lucent.com">mailto:ehallander@lucent.com</A></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>


["footer" (footer)]

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
minimalist@exolab.org with a subject of:
        unsubscribe castor-user

--MML_1111612966_17185@891.exolab.org--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic