Posts Tagged ‘XML Schema’
ABL to XML Schema Mapping
| ABL | XML Schema |
|---|---|
| CHARACTER | string |
| DATE | date |
| DATETIME | date |
| DATETIME-TZ | None |
| DECIMAL | decimal |
| INT64 | long |
| INTEGER | int |
| LOGICAL | boolean |
| MEMPTR | base64Binary |
http://fernandoribeiro.eti.br/2009/06/14/working-with-time-zones/
Specializing Complex Types with Mixed Content in JAXB
XML Schema
<xs:complexType name="Param" abstract="true" mixed="true">
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="ResultSetParam" mixed="true">
<xs:complexContent>
<xs:restriction base="tns:Param">
<xs:sequence>
<xs:element name="Row" type="tns:Row" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
Java
public abstract class Param {
@XmlMixed
@XmlAnyElement(lax = true)
protected List content;
...
public List getContent() {
...
}
}
public class ResultSetParam extends Param {
}
Refer to 6.12.5 and 6.12.7 sections of the spec for details.
Extending Mixed Complex Types in XML Schema in Apache Xerces2-J
If you get the org.xml.sax.SAXParseException: cos-ct-extends.1.4.3.2.2.1.a: The content type of a derived type and that of its base must both be mixed or both be element-only. Type '<Class Name>' is element only, but its base type is not. message, refer to the 3.4.6 section of the spec.
The constraint is actually numbered 1.4.3.2.2.1.1 (not a), as reported here (vote for it!).
21 Questions to Ask a BPM Vendor
- Does your product support a standard external interchange format for process definitions?
- Does your product support XPDL?
- Can the product import that standard format?
- Can the product export that standard format?
- When the product exports a process, and then imports it in again, does it look that same?
- How many other products read that export format?
- What other vendor tools have you demonstrated the ability to exchange process definitions?
- Can you add or modify a activity in a process instance while it is running? What other modifications can be made to the process definition?
- Can one process be invoked as a subprocess of another? How many levels deep can this go?
- What kind of historical data is available? Can you see past values of process variables?
- Is there a way to send log events to an external analytics engine (Business Activity Monitoring tool)?
- Does your product support Wf-XML?
- Can you extend the system with new capabilities, and call those capabilities from within a process? How is this accomplished?
- Are process definitions exposed as web services (without the need of an additional component)?
- Can every data type supported by the product be mapped to an XML Schema data type?
- Can a non-programmer create a workflow?
- What platforms are supported. Are process definitions platform independent? Can a process developed on one platform (eg. Macintosh) be run on another platform (Unix)?
- Can an activity contain a timer that sends a reminder to the person doing the activity (without canceling the activity)?
- Can multiple reminders be sent on a single activity?
- If an XPDL is read with foreign Extended Attributes are they preserved and re-written when exporting?
- Can activities and other element be named with Kanji and other non-European characters?
http://kswenson.wordpress.com/2009/05/06/questions-to-ask-a-bpm-vendor/
Minimum Requirements for Database Services in SOA
- Use the XML Schema types
- Execute ad-hoc queries and stored procedures with multiple result sets and/or update counts
- Optionally use column names as element names
- Support XML nulls
- Support transactions
- Report faults
Many of those are missing in Progress Sonic Database Service, the only one with a separate license, as long as I know.
elementFormDefault and attributeFormDefault in XML Schema
Qualification of local elements and attributes can be globally specified by a pair of attributes, elementFormDefault and attributeFormDefault, on the schema element, or can be specified separately for each local declaration using the form attribute. All such attributes’ values may each be set to unqualified or qualified, to indicate whether or not locally declared elements and attributes must be unqualified.
Representations of null in XML Schema
simpleType vs. complexType
In XML Schema, simple types only constrain the value spaces of built-in datatypes or other simple types, while complex types introduce new content models.
CDATA vs. PCDATA
XML
CDATA denotes sections that escape blocks of text containing characters which would otherwise be recognized as markup:
<![CDATA[Hello World!]]>
DTD
CDATA is a type which values are white space normalized strings, while PCDATA is a keyword that specifies mixed content.
XML Schema
CDATA is the same as in DTD, while PCDATA is replaced by an attribute.
int vs. integer
In XML Schema, while int is 2^31 -1, which maps to int in Java, for example, integer is infinite.
Like many other languages, Java doesn’t have a matching type for integer.