XMLSchema to TTCN-3 Mapping Importing XML schema based data types into TTCN-3.

Slides:



Advertisements
Similar presentations
Requirements. UC&R: Phase Compliance model –RIF must define a compliance model that will identify required/optional features Default.
Advertisements

Datatypes for OGSA Dr Martin Westhead Principal Consultant, EPCC Telephone: Fax:
SE 5145 – eXtensible Markup Language (XML ) XML Schema /Spring, Bahçeşehir University, Istanbul.
XML Schema Heewon Lee. Contents 1. Introduction 2. Concepts 3. Example 4. Conclusion.
Managing XML and Semistructured Data Lecture 12: XML Schema Prof. Dan Suciu Spring 2001.
ISO DSDL ISO – Document Schema Definition Languages (DSDL) Martin Bryan Convenor, JTC1/SC18 WG1.
4 XML Schema.
1 Web Data Management XML Schema. 2 In this lecture XML Schemas Elements v. Types Regular expressions Expressive power Resources W3C Draft:
XML 6.5 XML Schema (XSD) 6. What is XML Schema? The origin of schema  XML Schema documents are used to define and validate the content and structure.
Microsoft Access Course 1. Introduction to the user interface.
Copyright © Open Applications Group, Inc. All rights reserved 1 OAGi XML Schema User Report June 21, Michael.
API Birds of a Feather, XML Robert C. Leif, Ph.D. Vice President R &D, Newport Instruments & Ada_Med Tel. (619)
CSE 636 Data Integration XML Schema. 2 XML Schemas W3C Recommendation: Generalizes DTDs Uses XML syntax Two documents: structure.
2/9/00 EECS 684: Current Topics in Databases1 ( W3C Working Draft 17 December 1999 )
XML Simple Types CSPP51038 shortcourse. Simple Types Recall that simple types are composed of text-only values. All attributes are of simple type Elements.
XML Schema Matthias Hauswirth. Agenda 4 W3C Process 4 XML Schema Requirements 4 The Specifications 4 Schema Tools.
1 XML Schemas Marco Mesiti This Presentation has been extracted from Roger L. Costello (XML Technologies Course)
XML Schemas and Namespaces Lecture 11, 07/10/02. BookStore.dtd.
Software Engineering Recitation 2 Suhit Gupta. Today we will be covering… XML II Sockets, Server – Client relationships, Servers capable of handling multiple.
XML Schema Notes Lecture 13, 07/16/02. (see example05)
Sunday, June 28, 2015 Abdelali ZAHI : FALL 2003 : XML Schemas XML Schemas Presented By : Abdelali ZAHI Instructor : Dr H.Haddouti.
Processing of structured documents Spring 2003, Part 3 Helena Ahonen-Myka.
17 Apr 2002 XML Schema Andy Clark. What is it? A grammar definition language – Like DTDs but better Uses XML syntax – Defined by W3C Primary features.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
IS432 Semi-Structured Data Lecture 3: XSchema Dr. Gamal Al-Shorbagy.
XML Schema Vinod Kumar Kayartaya. What is XML Schema?  XML Schema is an XML based alternative to DTD  An XML schema describes the structure of an XML.
Chapter 4: Document Type Definitions. Chapter 4 Objectives Learn to create DTDs Validate an XML document against a DTD Use DTDs to create XML documents.
XML Open Computing Institute, Inc. 1 eXtensible Markup Language (XML)
Dr. Azeddine Chikh IS446: Internet Software Development.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation XML Schema 2 Lecturer.
Abstract Syntax Notation ASN.1 Week-5 Ref: “SNMP…” by Stallings (Appendix B)
XML and Web Services CS409 Application Services Even Semester 2007.
XML. 2 XML- Some Links XML Tutorials – Some Links me=htmlhttp://
XML Schema. Why Schema? To define a class of XML documents Serve same purpose as DTD “Instance document" used for XML document conforming to schema.
An OO schema language for XML SOX W3C Note 30 July 1999.
XML – Part III. The Element … This type of element either has the element content or the mixed content (child element and data) The attributes of the.
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 5 XML Schema (Based on Møller and Schwartzbach,
Sheet 1XML Technology in E-Commerce 2001Lecture 2 XML Technology in E-Commerce Lecture 2 Logical and Physical Structure, Validity, DTD, XML Schema.
XML 2nd EDITION Tutorial 4 Working With Schemas. XP Schemas A schema is an XML document that defines the content and structure of one or more XML documents.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
Tutorial 13 Validating Documents with Schemas
Management of XML and Semistructured Data Lecture 11: Schemas Wednesday, May 2nd, 2001.
TTCN-3 Language Maintenance and Evolution TTCN-3 User Conference 2011, Bled Gyorgy Rethy STF 430 Leader
Introduction to the NCIP DTDs and XML Schemas Tony O’Brien Oct 2 nd 2002.
XML Validation II Schemas Robin Burke ECT 360. Outline Namespaces Documents  Data types XML Schemas Elements Attributes Derived data types RELAX NG.
Primer on XML Schema CSE 544 April, XML Schemas Generalizes DTDs Uses XML syntax Two parts: structure and datatypes Very complex –criticized –alternative.
Introduction to XML Schema John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
CSE 6331 © Leonidas Fegaras XML Schema 1 XML Schema Leonidas Fegaras.
XSD: XML Schema Language Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
XML Validation II Advanced DTDs + Schemas Robin Burke ECT 360.
Lecture 0 W3C XML Schema. Topics Status Motivation Simple type vs. complex type.
 Serialization Programming Model for WCF  Similar to ISerializable (also supported by WCF)  Can generate from/to WSDL/XSD using svctool  Example:
Agenda 1.WSDL & XML Schema Astronomicko-geofyzikálne observatórium, Modra An Order.
XML Validation III Schemas + RELAX NG Robin Burke ECT 360.
XML Schema – Simple Type Web site:
DFDL WG Session 1 Summary of Status Mike Beckerle Ascential Software.
DFDL WG Session 3 Mike Beckerle Ascential Software Two note-takers please?
1 Nikolay Pakulin/ ISPRAS Bogdan Stanca-Kaposta/ Testing Technologies Bostjan Pintar / Sintesio Tomas Urban / Elvior TTCN-XML CONFORMANCE TEST SUITE STF.
1 XML and XML in DLESE Katy Ginger November 2003.
Anytype – what does it mean? Currently, anytype is a union of all known types in the context of the reference to the type anytype (excluding imported name-clashing.
Jaringan Telekomunikasi, Sukiswo ST, MT Sukiswo
Dept. of Computer Science and Engineering
Data Modeling II XML Schema & JAXB Marc Dumontier May 4, 2004
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
THE DATATYPES OF XML SCHEMA A Practical Introduction
ETSI ES Using XML schema with TTCN-3
XML Technologies X-Schema.
XML Examples AIXM 5 RC2.
New Perspectives on XML
Presentation transcript:

XMLSchema to TTCN-3 Mapping Importing XML schema based data types into TTCN-3

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) Importing XMLSchema based Datatypes into TTCN-3 Overview XMLSchema built-in datatypes XMLSchema data type components Examples

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) Overview TTCN-3 core notation ASN.1 Types and Values IDL Interfaces and Types XMLSchema Types Other Types & Values Tabular Format Graphical Format Other Presentation Formats Plain Text TTCN-3 User

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) XMLSchema BuiltIn Types I anyType anySimpleType durationdateTimetimedate gYearMonthgYeargMonthDaygDaygMonth boolean base64Binary hexBinaryfloatdoubleanyURIQNameNOTATION all complex types stringdecimal integer long int short byte nonNegativeInteger nonPositiveInteger negativeInteger unsignedLong unsignedInt unsignedShort normalizedString token language Name NMToken NCName NMTokens positiveInteger unsignedByte EntityIDREF ID EntitiesIDREFS primitive types derived by restrictions derived by lists hexstring charstring type integer positiveInteger (0.. infinity) type set of NMToken NMTokens float

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) XMLSchema Build-in Types II XSDAUX.ttcn3 module XSDAUX { /* 1.string */ type charstring string; /* 2.boolean */ type integer bitXSD(1,0); type union booleanXSD { bitXSD bit, boolean bool } /* 3.decimal */ type float decimal;..... }

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) XMLSchema datatype components minInclusive, maxExclusive pattern, enumeration, length... schema all list sequence choice groupattributecomplexType element include importsimpleTypeattributeGroup attribute attributeGroup restriction union complexContent all choice sequence simpleContent extension restriction extension group attribute attributeGroup allchoice sequencegroupattribute attributeGroup simpleTypefacets minInclusive, maxExclusive pattern, enumeration, length... attributeattributeGroup set union record union set of … record, union or set facets Subtype definition with length, or list restrictions. Ex: Type_string.ttcn3 Subtype definition with length, or list restrictions. Ex: Type_string.ttcn3

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) Example type union cust__Global_Group { XSDAUX.string e1, XSDAUX.string e2, XSDAUX.string e3, XSDAUX.string e4 } type record SEQUENCE__1 { cust__Global_Group sequence__1, XSDAUX.byte E } type union CHOICE__2 { SEQUENCE__1 choice__1, XSDAUX.int E } type charstring A__Attribute__1 with {extension "Attribute"}; type set ORDER { CHOICE__2 choice, A__Attribute__1 A optional } XMLSchema TTCN-3

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) The Work Done Initial work by FOKUS in internal research and diploma thesis, Discussion of mapping in the TTmedal consortium, 2003-now Implementation and case studies Draft prepared, March 2005 Face-to-face meeting, March 2005

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) The Document 1Scope1Scope 2References2References 3Abbreviations3Abbreviations 4Approach4Approach 5Mapping XSD Schemas5Mapping XSD Schemas 6Ignored schema components and properties6Ignored schema components and properties 7TTCN-3 module and namespaces7TTCN-3 module and namespaces 8Name conversion8Name conversion 9Mapping of built-in data types9Mapping of built-in data types 10 Mapping of data type components10 Mapping of data type components Annex A (normative): Mapping of Built-In TypesAnnex A (normative): Mapping of Built-In Types Annex B (normative): XSDAUX.ttcn3Annex B (normative): XSDAUX.ttcn3 Annex C (informative): ReferencesAnnex C (informative): References Annex D (informative): ExamplesAnnex D (informative): Examples

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) Contributors/Reviewers FOKUS NetHawk Nokia Fraunhofer ESK University of Göttingen

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) XML Meeting Review of the draft Discussion what to do with non supported features support for XML values

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) One issue for all mapping documents Name clashes with TTCN-3 keywords Consistent resolving rules for all mappings would be helpful Proposal to use a _ postfix together with an extension attribute indicating the original name i.e. type boolean boolean_ with { extension "XSD:boolean" }

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) Further TTCN-3 extensions?! Pattern for float and integer Length for integer (number of decimal digits) Different lengths for float (number of fractional digits, etc.) ? min and max facets of XML directly added to TTCN-3 for string types, integer and float ? whitspace facets for string types ? a more generic approach to subtyping with facets could be useful

ETSI MTS #40, Berlin, Mar 2005 © FOKUS (2005) Timing Completion till Oct Adoption for ETSI MTS #41