[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Alternate Schema modified for 1.1
Here's the alternate schema we have been using for .NET (and now under systems running PHP and other scripting languages). I modified it to include the 1.1 fields. This was marked up on a unix system, so you may see some odd characters at the end of lines on windows systems. I suggest opening it with wordpad and saving it. This will reformat the crlf's. It should validate correctly (briefly checked on .NET 2004), but I have not had time to look deeper into this. 1.1 additions were diffed into the 1.0 schema. If you run a diff tool versus the original 1.1 the differences are mainly that simpletypes are not named (are we still beating that dead horse?) :-). e.g. <element name = "msgType"> <simpleType name = "msgType" > vs. <element name="msgType"> <simpleType> Cheers Kon
<?xml version = "1.0" encoding = "UTF-8"?> <schema xmlns = "http://www.w3.org/2001/XMLSchema" targetNamespace = "http://www.incident.com/cap/1.1" xmlns:cap = "http://www.incident.com/cap/1.1" xmlns:xs = "http://www.w3.org/2001/XMLSchema" elementFormDefault = "qualified" attributeFormDefault = "unqualified"> <element name = "alert"> <annotation> <documentation>CAP Alert Message (version 1.1)</documentation> </annotation> <complexType> <sequence> <element name = "identifier" form = "unqualified" type = "string"/> <element name = "sender" type = "string"/> <element name = "sent" type = "dateTime"/> <element name = "status"> <simpleType> <restriction base = "string"> <enumeration value = "Actual"/> <enumeration value = "Exercise"/> <enumeration value = "System"/> <enumeration value = "Test"/> </restriction> </simpleType> </element> <element name = "msgType"> <simpleType> <restriction base = "string"> <enumeration value = "Alert"/> <enumeration value = "Update"/> <enumeration value = "Cancel"/> <enumeration value = "Ack"/> <enumeration value = "Error"/> </restriction> </simpleType> </element> <element name = "source" type = "string" minOccurs = "0"/> <element name = "scope" minOccurs = "0"> <simpleType> <restriction base = "string"> <enumeration value = "Public"/> <enumeration value = "Restricted"/> <enumeration value = "Private"/> </restriction> </simpleType> </element> <element name = "restriction" type = "string" minOccurs = "0"/> <element name = "addresses" type = "string" minOccurs = "0"/> <element name = "code" type = "string" minOccurs = "0" maxOccurs = "unbounded"/> <element name = "note" type = "string" minOccurs = "0"/> <element name = "references" minOccurs = "0"> <simpleType> <restriction base = "string"/> </simpleType> </element> <element name = "incidents" minOccurs = "0"> <simpleType> <restriction base = "string"/> </simpleType> </element> <element name = "info" minOccurs = "0" maxOccurs = "unbounded"> <complexType> <sequence> <element name = "language" type = "language" default = "en-US" minOccurs = "0"/> <element name = "category" minOccurs = "1" maxOccurs = "unbounded"> <simpleType> <restriction base = "string"> <enumeration value = "Geo"/> <enumeration value = "Met"/> <enumeration value = "Safety"/> <enumeration value = "Security"/> <enumeration value = "Rescue"/> <enumeration value = "Fire"/> <enumeration value = "Health"/> <enumeration value = "Env"/> <enumeration value = "Transport"/> <enumeration value = "Infra"/> <enumeration value = "Other"/> </restriction> </simpleType> </element> <element name = "event" type = "string"/> <element name = "responseType"> <simpleType> <restriction base = "string"> <enumeration value = "Shelter"/> <enumeration value = "Evacuate"/> <enumeration value = "Prepare"/> <enumeration value = "Execute"/> <enumeration value = "Monitor"/> <enumeration value = "None"/> </restriction> </simpleType> </element> <element name = "urgency"> <simpleType> <restriction base = "string"> <enumeration value = "Immediate"/> <enumeration value = "Expected"/> <enumeration value = "Future"/> <enumeration value = "Past"/> <enumeration value = "Unknown"/> </restriction> </simpleType> </element> <element name = "severity"> <simpleType> <restriction base = "string"> <enumeration value = "Extreme"/> <enumeration value = "Severe"/> <enumeration value = "Moderate"/> <enumeration value = "Minor"/> <enumeration value = "Unknown"/> </restriction> </simpleType> </element> <element name = "certainty"> <simpleType> <restriction base = "string"> <enumeration value = "Observed"/> <enumeration value = "Likely"/> <enumeration value = "Possible"/> <enumeration value = "Unlikely"/> <enumeration value = "Unknown"/> </restriction> </simpleType> </element> <element name = "audience" type = "string" minOccurs = "0"/> <element name = "eventCode" type = "string" minOccurs = "0"/> <element name = "effective" type = "dateTime" minOccurs = "0" form = "qualified"/> <element name = "onset" type = "dateTime" minOccurs = "0"/> <element name = "expires" type = "dateTime" minOccurs = "0"/> <element name = "senderName" type = "string" minOccurs = "0"/> <element name = "headline" type = "string" minOccurs = "0"/> <element name = "description" type = "string" minOccurs = "0"/> <element name = "instruction" type = "string" minOccurs = "0"/> <element name = "web" type = "anyURI" minOccurs = "0"/> <element name = "contact" type = "string" minOccurs = "0"/> <element name = "parameter" type = "string" minOccurs = "0" maxOccurs = "unbounded"/> <element name = "resource" minOccurs = "0" maxOccurs = "unbounded"> <complexType> <sequence> <element name = "resourceDesc" type = "string"/> <element name = "mimeType" type = "string" minOccurs = "0"/> <element name = "size" type = "integer" minOccurs = "0"/> <element name = "uri" type = "anyURI" minOccurs = "0"/> <element name = "derefUri" type = "string" minOccurs = "0"/> <element name = "digest" type = "string" minOccurs = "0"/> </sequence> </complexType> </element> <element name = "area" minOccurs = "0" maxOccurs = "unbounded"> <complexType> <sequence> <element name = "areaDesc" type = "string"/> <element name = "polygon" minOccurs = "0" maxOccurs = "unbounded"> <simpleType> <restriction base = "string"/> </simpleType> </element> <element name = "circle" minOccurs = "0" maxOccurs = "unbounded"> <simpleType> <restriction base = "string"/> </simpleType> </element> <element name = "geocode" type = "string" minOccurs = "0" maxOccurs = "unbounded"/> <element name = "altitude" type = "string" minOccurs = "0"/> <element name = "ceiling" type = "string" minOccurs = "0"/> </sequence> </complexType> </element> </sequence> </complexType> </element> </sequence> </complexType> </element> </schema>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]