170 likes | 338 Views
Click to edit Master title style. Multimedia Communication and Information Logistics for AFTER-SALES AND PRODUCT LIFE-CYCLE SUPPORT. www.remtec.fi. BUILDING WWW APPLICATIONS WITH XML FORMS. Kaisa Kostiainen XML Finland ‘99 Helsinki Fair Center 23.9.1999. CONTENTS. Introduction
E N D
Click to edit Master title style Multimedia Communication and Information Logistics for AFTER-SALES AND PRODUCT LIFE-CYCLE SUPPORT www.remtec.fi
BUILDING WWW APPLICATIONS WITH XML FORMS Kaisa Kostiainen XML Finland ‘99 Helsinki Fair Center 23.9.1999
CONTENTS • Introduction • Reporting Tool • RPX Forms architecture • RPX Forms examples • Conclusions
XML AND WWW APPLICATIONS • system-to-system interchange format • distributed, heterogenous data sources • database interface • lack of mechanism to update XML data according to user’s input
PROPOSALS POSTED TO W3C • XFA • http://www.w3.org/1999/05/XFA/xfa-template.htm • XFDL • http://www.w3.org/TR/NOTE-XFDL.html • both require a plug-in at the browser
CASE: REPORTING TOOL • WWW application for Wärtsilä NSD Service • enables the workflow of the service reports • forwards data as XML format to other applications • invoicing • document management • knowledge discovery • etc.
CASE: REPORTING TOOL • handles over hundred technical records • the structure of the technical data hard to generalize • creating and adding new technical records has to be easy • high quality of printing
DIFFERENT OPTIONS • HTML Forms • too labourious to write software • XSL Transformation from XML data • the lack of proper XSL development tools causes the creation of technical records very painful for the developer
RPX FORMS • form data is separated from user interface • form DTD is pre-defined • form data can be any XML data • uses RPX Form filter language for binding form input elements to data
EXAMPLE • <Form> • <Field label="Company name:" hint="Name of company"> • <rpxf:value-of select="/Customer/CompanyName"/> • </Field> • <Field label="Street address:"> • <rpxf:value-of select="/Customer/StreetAddress"/> • </Field> • </Form> • <Data> • <Customer> • <CompanyName>Remtec Systems<CompanyName> • <StreetAddress>Tekniikantie 12<StreetAddress> • </Customer> • </Data>
Form design Form DTD Form XML Form XSL Binding XML/XSL Transform Form XML Browser HTML Data Data Data Decoding Browser UI Data sources RPX Service RPX FORMS ARCHITECTURE
RPX FORMS ARCHITECTURE • the rpxf query patterns are resolved dynamically • a pattern identifies a value in a data source • a single form may refer to several data sources • when the form is posted to the server the server code automatically creates XML objects from the form data • business logic rules decide which data sources are available and which data sources are updated
RPX FORM DTD • similar to HTML • a form contains pages, which are divided vertically to sections • basic input elements: input field, radio group, drop-down list, etc. • title, paragraph, list, picture, … • XSL style sheet for presenting the form in the browser and for printing
RPX FORM FILTER LANGUAGE • very similar to XSL • RPX Form filter language elements:rpxf:value-of, rpxf:attribute, rpxf:insert, rpxf:repeat • syntax: <rpxf:value-of select=“pattern”> <rpxf:attribute name=“attribute-name”[ select=“pattern”]> <rpxf:insert select=“pattern”> <rpxf:repeat select=“pattern”>
RPX FORMS EXAMPLES • Input fields • <Field label="Company name:" hint="Name of company"> • <rpxf:value-of select="/Customer/CompanyName"/> • </Field> • <DropDown label="Application Type:"> • <rpxf:attribute name="selected” • select="/Installation/ApplicationType2"/> • </rpxf:attribute> • <rpxf:insert select="/Constants/ApplicationType2"/> • </DropDown>
RPX FORMS EXAMPLES • Creating dynamic lists • <List> • <rpxf:repeat select="/Customers/Customer[$$]"> • <ListItem type="read-only"> • <rpxf:value-of select="ContactPerson"/> • <ListItem> • </rpxf:repeat> • </List>
CONCLUSIONS • RPX Forms enables very easy way to develop WWW applications that update XML data • no plug-ins is needed at browser • see Reporting Tool at Remtec’s stand