Simples Assim

Posts Tagged ‘XML Schema

ABL to XML Schema Mapping

leave a comment »

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/

http://fernandoribeiro.eti.br/2008/11/06/int-vs-integer/

Written by Fernando Ribeiro

November 2, 2009 at 11:13 am

Posted in Software

Tagged with ,

Specializing Complex Types with Mixed Content in JAXB

leave a comment »

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.

Written by Fernando Ribeiro

June 13, 2009 at 4:06 pm

Posted in Software

Tagged with ,

Extending Mixed Complex Types in XML Schema in Apache Xerces2-J

leave a comment »

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!).

Written by Fernando Ribeiro

May 24, 2009 at 9:03 pm

Posted in Software

Tagged with

21 Questions to Ask a BPM Vendor

leave a comment »

  1. Does your product support a standard external interchange format for process definitions?
  2. Does your product support XPDL?
  3. Can the product import that standard format?
  4. Can the product export that standard format?
  5. When the product exports a process, and then imports it in again, does it look that same?
  6. How many other products read that export format?
  7. What other vendor tools have you demonstrated the ability to exchange process definitions?
  8. 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?
  9. Can one process be invoked as a subprocess of another? How many levels deep can this go?
  10. What kind of historical data is available? Can you see past values of process variables?
  11. Is there a way to send log events to an external analytics engine (Business Activity Monitoring tool)?
  12. Does your product support Wf-XML?
  13. Can you extend the system with new capabilities, and call those capabilities from within a process? How is this accomplished?
  14. Are process definitions exposed as web services (without the need of an additional component)?
  15. Can every data type supported by the product be mapped to an XML Schema data type?
  16. Can a non-programmer create a workflow?
  17. What platforms are supported. Are process definitions platform independent? Can a process developed on one platform (eg. Macintosh) be run on another platform (Unix)?
  18. Can an activity contain a timer that sends a reminder to the person doing the activity (without canceling the activity)?
  19. Can multiple reminders be sent on a single activity?
  20. If an XPDL is read with foreign Extended Attributes are they preserved and re-written when exporting?
  21. 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/

http://xpdl.org/nugen/p/tkrzbtzwf/leaf.htm

http://wfmc.org/

Written by Fernando Ribeiro

May 11, 2009 at 1:29 am

Posted in Business, Software, Technology

Tagged with

Minimum Requirements for Database Services in SOA

leave a comment »

  • 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.

Written by Fernando Ribeiro

November 11, 2008 at 9:49 pm

Posted in Software

Tagged with

elementFormDefault and attributeFormDefault in XML Schema

leave a comment »

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.

http://www.w3.org/TR/xmlschema-0/#UnqualLocals

Written by Fernando Ribeiro

November 9, 2008 at 7:46 pm

Posted in Software

Tagged with

Representations of null in XML Schema

leave a comment »

Written by Fernando Ribeiro

November 7, 2008 at 12:41 pm

Posted in Software

Tagged with ,

simpleType vs. complexType

leave a comment »

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.

Written by Fernando Ribeiro

November 6, 2008 at 11:36 pm

Posted in Software

Tagged with

CDATA vs. PCDATA

leave a comment »

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.

Written by Fernando Ribeiro

November 6, 2008 at 8:42 pm

Posted in Software

Tagged with

int vs. integer

leave a comment »

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.

http://www.w3.org/TR/xmlschema-2/#int

http://www.w3.org/TR/xmlschema-2/#integer

Written by Fernando Ribeiro

November 6, 2008 at 6:37 pm

Posted in Software

Tagged with

Follow

Get every new post delivered to your Inbox.

Join 784 other followers