[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> </DIV>
<DIV><SPAN class=120421621-23032005><FONT face=Arial><?xml version="1.0"
encoding="UTF-8"?><BR><xsd:schema xmlns:xsd="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"><BR> \
<xsd:simpleType
name="AppEventType"><BR> \
<xsd:restriction
base="xsd:token"><BR> \
<xsd:enumeration
value="PropertyEvent"/><BR> \
<xsd:enumeration
value="ComponentEvent"/><BR> \
</xsd:restriction><BR>
</xsd:simpleType><BR>
<xsd:complexType name="ApplicationEventType"
abstract="true"><BR> \
<xsd:sequence><BR> \
<xsd:element name="type"
type="AppEventType"/><BR> \
</xsd:sequence><BR>
</xsd:complexType><BR>
<xsd:complexType name="BasePropertyEventType"
abstract="true"><BR> \
<xsd:complexContent><BR> \
<xsd:extension
base="ApplicationEventType"><BR> \
<xsd:sequence><BR> \
<xsd:element name="propertyName"
type="xsd:string"/><BR> \
<xsd:element name="propertyValue"
type="xsd:string"/><BR> \
</xsd:sequence><BR> \
</xsd:extension><BR> \
</xsd:complexContent><BR>
</xsd:complexType><BR>
<xsd:complexType
name="PropertyEventType"><BR> \
<xsd:complexContent><BR> \
<xsd:restriction
base="BasePropertyEventType"><BR> \
<xsd:sequence><BR> \
<xsd:element name="type" type="AppEventType"
fixed="PropertyEvent"/><BR> &n \
bsp; \
<xsd:element name="propertyName" \
type="xsd:string"/><BR> \
<xsd:element name="propertyValue"
type="xsd:string"/><BR> \
</xsd:sequence><BR> \
</xsd:restriction><BR> \
</xsd:complexContent><BR>
</xsd:complexType><BR></xsd:schema></FONT></SPAN></DIV>
<DIV><SPAN class=120421621-23032005><FONT face=Arial></FONT></SPAN> </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> </DIV>
<DIV><SPAN class=120421621-23032005></SPAN> </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> </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