Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms in X-Smiles Mikko Honkala Helsinki University.

Slides:



Advertisements
Similar presentations
WAP Next Generation
Advertisements

XML Technology in E-Commerce
XML 6.7 XForms 6. Motivation HTML forms deliver the interactive WWW Forms are what make electronic transactions possible HTML forms are long overdue for.
M. Honkala, A. Vainio XForms & SVG MITA Seminar, HUT SVG Introduction Features Benefits Simple Example Standardization Mobile Environment Current.
H E L S I N K I U N I V E R S I T Y O F T E C H N O L O G Y G O p r o j e c t : S e r v i c e A r c h i t e c t u r e f o r t h e N o m a d i c I n t e.
LYU0101 Wireless Digital Information System Lam Yee Gordon Yeung Kam Wah Supervisor Prof. Michael Lyu Second semester FYP Presentation 2001~2002.
Chapter Concepts Review Markup Languages
© 2010, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet 1.
XML Study-Session: Part IV Transforming XML Documents Copyright Quddus Chong 2001.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
AJAX & By – Anupama Sharma. Defining Ajax Ajax isn’t a technology. It’s really several technologies, each flourishing in its own right, coming together.
Web Page Behavior IS 373—Web Standards Todd Will.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Introduction to XSLT & its use in Grainger Library full-text & metadata projects Thomas G. Habing Grainger Engineering Library Presentation to ASIS&T,
Sheet 1XML Technology in E-Commerce 2001Lecture 6 XML Technology in E-Commerce Lecture 6 XPointer, XSLT.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
INTRODUCTION TO DHTML. TOPICS TO BE DISCUSSED……….  Introduction Introduction  UsesUses  ComponentsComponents  Difference between HTML and DHTMLDifference.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
Xforms Multumiri lui Dan McCreary.
XForms: A case study Rajiv Shivane & Pavitar Singh.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
W3C XForms Interactive Web Services; Powerful Client-side Interfaces Micah Dubinko Dave Navarro David Cleary.
Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms – the Future of XML Input
1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake.
XForms: The next generation of Web Forms Tyler St. John.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
Sheet 1XML Technology in E-Commerce 2001Lecture 7 XML Technology in E-Commerce Lecture 7 XSL Formatting Objects, Java Data Binding.
Copyright © Orbeon, Inc. All rights reserved. Erik Bruchez Applications of XML Pipelines XML Prague, June 16 th, 2007.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
The Document Object Model. The Web B.D, A.D. They aren’t web pages, they’re document objects A web browser interprets structured information. A server.
XML Browser 닉스테크 교육사업부 김찬
Petri Vuorimaa1 X-Smiles XML Browser Petri Vuorimaa Tel
SMIL 2.0 Kari Pihkala HIIT – XML Technologies.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
XML Extensible Markup Language
XRules An XML Business Rules Language Introduction Copyright © Waleed Abdulla All rights reserved. August 2004.
Web Services for Satellite Emulation Development Kathy J. LiszkaAllen P. Holtz The University of AkronNASA Glenn Research Center.
FYP: LYU0001 Wireless-based Mobile E-Commerce on the Web Supervisor: Prof. Michael R. Lyu By: Tony, Wat Hong Fai Harris, Yan Wai Keung.
Building Rich Web Applications with Ajax Linda Dailey Paulson IEEE – Computer, October 05 (Vol.38, No.10) Presented by Jingming Zhang.
Introduction to W3C XForms The Future of Web Forms Micah Dubinko.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
Justin Tilton uPortal Framework and User Interface Demonstration.
XML and SVG as an Aid to Distance Learning Lez Bullwer MSc Information Technology.
Strategies for Virtual Enterprises using XForms and the Semantic Web Albert Rainer, Jürgen Dorn & Peter Hrastnik.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
XSLT. XSLT stands for Extensible Stylesheet Language Transformations XSLT is used to transform XML documents into other kinds of documents. XSLT can produce.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
.:Virtual prototypes:. Juha Vierinen. -=:Issues:=- Media Convergence Devices with different constraints and context of use Accessibility of information.
1 Survey of Profiles from Other Domains XMSF Profile SG 13 January 2004 Curt Blais and NPS MV3250 (Introduction to XML, 1st Quarter 2005) Katherine L.
An Introduction to XForms Philadelphia XML Users' Group by Peter Meggitt.
Teaching slides Chapter 6. Chapter 6 Software user interface design & construction Contents Introduction Graphical user interface – Rich window based.
DHTML.
Topic Map & SMIL Prototypes KUL-ESAT-DOCARCH
Unit 4 Representing Web Data: XML
XML in Web Technologies
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Chapter 7 Representing Web Data: XML
DHTML Javascript Internet Technology.
DHTML Javascript Internet Technology.
XML Problems and Solutions
Why use Web Standards?.
Presentation transcript:

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms in X-Smiles Mikko Honkala Helsinki University Of Technology, Finland X-Smiles Workshop 17 th Sep 2001

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Outline of the Presentation Introduction –HIIT XML Devices project –W3C’s XForms XForms working draft XForms implementation in X-Smiles browser –Demos

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) HIIT XML Devices Researching the use of XML in small embedded devices –Handhelds, Digi-TV, NG mobile phones Porting X-Smiles XML browser into different devices Enhancing client-side interactivity through W3C’s XForms

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Introduction to XForms World Wide Web Consortium (W3C) creates Web standards. –HTML, XML, SVG, SMIL, etc... –over 500 member institutions. –co-steered by MIT (USA), KEIO (Japan) and INRIA (France). (vendor and market neutral). XForms. –W3C’s future Web forms technology. –Ideas from proprietary form languages (FML, Formsheets, XFA,XFDL). –Builds upon tested, pre-existing XML technologies rather than re-inventing the wheel. –X-Smiles in XForms WG

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Forms Example : purchaseOrder

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) What’s missing in the current Web forms No separation between content and presentation Validation must be done at the server: more round-trips Constraints and calculations between fields have to be programmed with scripts Most web services live in the XML world. Therefore a component is needed to map HTML forms into XML and vice versa

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) How does XForms solve these problems? Content is separated from the presentation Presentation is defined elsewhere in the document, it is only bound to the content Validation is done in the client using XML schema and inter-data constraints Constraints and calculations are defined declaratively in the markup. Let the XForms processor implement them rather than program them in JavaScript XForms capable client receives and sends XML directly

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms document components Instance – content (XML instance) Model – validation, constraints, calculations User Interface – embedded in host language In addition: –Binding – binding between the instance,model and UI Can be seen as a MVC

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms Use Cases Multipage Tax Input forms with calculations and validation Web shop order forms Interactive Vector Graphics Software configuration frontend ->... everything that needs user interaction within Web document formats

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms Example : purchaseOrder

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms Example : Instance Data X-Smiles desktop X-Smiles PDA

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms Example : Model

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms Example : The user interface Units Item name Price Total Enter the quantity of this item. Total price

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Validation Using XML Schema XML Schema is a W3C recommendation from Summer 2001 –Defines the structure of an XML document as well as datatypes ’xsd:date’ ( ) ’xsd:time’ ( 13:20: ) ’xsd:decimal’ ( ) –Datatypes can be created by the user with restrictions and unions e.g. An integer smaller than 1000 –Datatypes are more important to Xforms It is also possible to use a simpler ’schema for instance’ syntax

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Constraints Constraints apply to instance data in the model –calculate – parts of data calculated from other parts –relevant – is the item shown to the user –readOnly – can the user edit the item –isValid – is the data valid –required – is the data required for submission 0” />

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Binding & Constraints using XPath XPath is a W3C recommendation –Developed mainly for XSLT but very general is used to: –select a single node from an XML document /purchaseOrder/items/item[1] –select multiple nodes (nodeset) from an XML document /purchaseOrder/items/item –perform calculations with the data in XML sum(/purchaseOrder/items/item/total)

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms User Interface Very general level of user interface controls –selectOne –selectMany Can be used also in non-graphical environments (e.g VoiceXML) Meant to be embedded in XML languages Additional presentation hints with CSS stylesheets and presentation parameters

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) X-Smiles Browser XML Browser –XSL FO, SVG, SMIL, Xforms. –XSLT Transformations –ECMAScript Java-based –portability, available components, JMF Open Source Virtual prototype –Desktop, digi-TV, PDA, mobile phone

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms Implementation in X-Smiles The first browser implementation Supports most of the XForms features: –user inteface controls (textbox, selectOne,...) –validation –calculations –mouse events We are co-specifying XForms

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Embedding in different Markup languages It is possible to embed XForms in all XML languages supported by X-Smiles –SVG inside ’foreignObject’ element –SMIL As a content object –XSL FO Embedding within ’fo:declarations’ and ’fo:instream-foreign-object’

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Implementation details Schema validation is done using Xerces (Apache’s XML parser) XPath calculations use Xalan’s Xpath engine (Apache’s XSLT transformer) User interface implemented using Swing widgets Calculation order and circularity checking algorithms implemented natively

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms Features in X-Smiles FeatureNowFuture Form controls45 Datatype aware controls03 Schema validation55 Inline/ext instance & schema55 Host languages35 Constraints: calculate45 readOnly 0 5 relevant 0 3 required 0 5 validate 0 5 Switch 0 3 Repeat 0 4

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Future work Implement XForms processor on top of DOM Constraints: readOnly, relevant, required,validate Using datatype information in form controls –This information not currently available from Xerces Repeat Switch uploadMedia – submitting binary within XML data Styling with CSS

Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) Demos X-Smiles configuration file XForms in SMIL XForms in SVG / Scripting XForms calculations