Defining Dates Using Native Schema Constructs

Native Format Builder Wizard 6-33 01022003 03:04:05 Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:xmlns.oracle.compcbpelnxsdsmoketest elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=dateformat complexType sequence element name=StartDate type=dateTime nxsd:dateFormat=MMddyy nxsd:style=fixedLength nxsd:length=8 element name=EndDate type=dateTime nxsd:dateFormat=ddMMyy nxsd:style=terminated nxsd:terminatedBy={eol} element name=Milestone type=dateTime nxsd:dateFormat=MM-dd-yyyy nxsd:style=terminated nxsd:terminatedBy={eol} element name=DueDate type=dateTime nxsd:dateFormat=ddMMyyyy nxsd:style=terminated nxsd:terminatedBy={eol} element name=Date type=dateTime nxsd:dateFormat=MMddyyyy hh:mm nxsd:style=terminated nxsd:terminatedBy={eol} element name=Date type=dateTime nxsd:dateFormat=MMddyyyy hh:mm:ss nxsd:style=terminated nxsd:terminatedBy={eol} sequence complexType element schema Translated XML Using the Native Schema: dateformat xmlns=http:xmlns.oracle.compcbpelnxsdsmoketest StartDate2002-11-16T00:00:00StartDate EndDate2002-11-24T00:00:00EndDate Milestone2002-11-20T00:00:00Milestone DueDate2002-11-23T00:00:00DueDate Date2003-01-02T01:02:00Date Date2003-01-02T03:04:05Date dateformat The following example depicts the use of nxsd:dateParsingMode=laxstrict and locale support. Native Data Format to Be Translated: 111602241102 11-20-2002 23112002 01022003 01:02 01022003 03:04:05 Thu, 26 May 2005 15:50:11 India Standard Time Do, 26 Mai 2005 15:43:10 Indische Normalzeit Note: nxsd:dateParsingMode=laxstrict and locale support have been added to the existing date format. 6-34 Oracle Fusion Middleware Users Guide for Technology Adapters 20063202 Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:xmlns.oracle.compcbpelnxsdsmoketest elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=dateformat complexType sequence element name=StartDate type=date nxsd:dateFormat=MMddyy nxsd:localeLanguage=en nxsd:style=fixedLength nxsd:length=8 element name=EndDate type=date nxsd:dateFormat=ddMMyy nxsd:style=terminated nxsd:terminatedBy={eol} element name=Milestone type=dateTime nxsd:dateFormat=MM-dd-yyyy nxsd:style=terminated nxsd:terminatedBy={eol} element name=DueDate type=dateTime nxsd:dateFormat=ddMMyyyy nxsd:style=terminated nxsd:terminatedBy={eol} element name=Date type=dateTime nxsd:dateFormat=MMddyyyy hh:mm nxsd:style=terminated nxsd:terminatedBy={eol} element name=Date type=dateTime nxsd:dateFormat=MMddyyyy hh:mm:ss nxsd:style=terminated nxsd:terminatedBy={eol} element name=LongDateInEnglish type=dateTime nxsd:dateFormat=EEE, d MMM yyyy HH:mm:ss zzzz nxsd:localeLanguage=en nxsd:localeCountry=US nxsd:style=terminated nxsd:terminatedBy={eol} element name=LongDateInGerman type=dateTime nxsd:dateFormat=EEE, d MMM yyyy HH:mm:ss zzzz nxsd:localeLanguage=de nxsd:style=terminated nxsd:terminatedBy={eol} element name=InvalidDate type=dateTime nxsd:dateParsingMode=lax nxsd:dateFormat=yyyyMMdd nxsd:style=terminated nxsd:terminatedBy={eol} sequence complexType element schema Translated XML: dateformat xmlns=http:xmlns.oracle.compcbpelnxsdsmoketest StartDate2002-11-16StartDate EndDate2002-11-24EndDate Milestone2002-11-20T00:00:00Milestone DueDate2002-11-23T00:00:00DueDate Date2003-01-02T01:02:00Date Date2003-01-02T03:04:05Date LongDateInEnglish2005-05-26T15:50:11LongDateInEnglish LongDateInGerman2005-05-26T15:43:10LongDateInGerman InvalidDate2008-08-02T00:00:00InvalidDate dateformat Native Format Builder Wizard 6-35

6.2.2.8 Using Variables

This example shows how to use variables. Native Data Format to Be Translated: {,;}Fred,2 Old Street, Old Town,Manchester,20-08-1954;0161-499-1718 phone-2 phone-3 Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:xmlns.oracle.compcbpelnxsdsmoketest elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=variable annotation documentation 1. var1 - variable declaration 2. var2 - variable declaration with default value 3. EOL - variable declaration with referencing a system variable documentation appinfo junkies nxsd:variables nxsd:variable name=var1 nxsd:variable name=var2 value=, nxsd:variable name=SystemEOL value={system.line.separator} nxsd:variables junkies junkies junkies appinfo annotation complexType sequence element name=delims type=string nxsd:style=surrounded nxsd:leftSurroundedBy={ nxsd:rightSurroundedBy=} annotation appinfo junkies junkies junkies nxsd:variables nxsd:assign name=var1 value={0,1} nxsd:assign name=var2 value={1} nxsd:variables appinfo annotation element element name=PersonName type=string nxsd:style=terminated nxsd:terminatedBy={var1} nxsd:quotedBy=quot; 6-36 Oracle Fusion Middleware Users Guide for Technology Adapters element name=Address type=string nxsd:style=terminated nxsd:terminatedBy={var1} nxsd:quotedBy=quot; element name=DOB type=string nxsd:style=terminated nxsd:terminatedBy={var2} nxsd:quotedBy= element name=Telephone1 type=string nxsd:style=terminated nxsd:terminatedBy={eol} nxsd:quotedBy= element name=Telephone2 type=string nxsd:style=terminated nxsd:terminatedBy={eol} nxsd:quotedBy= element name=Telephone3 type=string nxsd:style=terminated nxsd:terminatedBy={eol} nxsd:quotedBy= sequence complexType element schema Translated XML Using the Native Schema: variable xmlns=http:xmlns.oracle.compcbpelnxsdsmoketest delims,;delims PersonNameFredPersonName Address2 Old Street, Old Town,ManchesterAddress DOB20-08-1954DOB Telephone10161-499-1718Telephone1 Telephone2phone-2Telephone2 Telephone3phone-3Telephone3 variable

6.2.2.9 Defining Prefixes and Suffixes

In native format, when data is read, the specified data is prefixed, suffixed, or both, as shown in the following example. Native Data to Be Translated: Fred, 2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718 Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:xmlns.oracle.compcbpelnxsdsmoketest elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=terminated complexType sequence element name=PersonName type=string nxsd:prefixWith=Mr. nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=quot; element name=Address type=string nxsd:suffixWith=]] nxsd:prefixWith=[[ nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=quot; element name=DOB type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=Telephone type=string nxsd:style=terminated nxsd:terminatedBy={eol} nxsd:quotedBy=