Sample Auto-generated XForms With XQuery Date: 1/17/2009 Dan McCreary President Dan McCreary & Associates (952) 931-9198 M D Metadata.

Slides:



Advertisements
Similar presentations
Minnesota Department of Education Metadata Registry Case Study Date: October 31 st, 2008 Dan McCreary President Dan McCreary & Associates
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
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.
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:
RDF Tutorial.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
1 XML DTD & XML Schema Monica Farrow G30
Using oXygen Using oXygen to build and execute XQuery applications on eXist Date: September 2008 Dan McCreary President Dan McCreary & Associates
XSLT XML DBs, and Schemas Week 18 DSA. The Whisky Case study XSLT can be applied in the client. –Add a xml processing instruction to the xml to bind to.
DSA Semester 2. XML Tagged data Hello A really interesting course, well taught Interchange of data RSS, BPEL4WS, RossettaNet … Structure document representation.
CSE 636 Data Integration XML Schema. 2 XML Schemas W3C Recommendation: Generalizes DTDs Uses XML syntax Two documents: structure.
XRX: The Metadata Registry Example 21 October 2008 Jeremy Sutton Matt Steele.
A Simple Schema Design. First Schema Design Being a Dog Is a Full-Time Job Charles M. Schulz Snoopy Peppermint Patty extroverted beagle Peppermint.
2/9/00 EECS 684: Current Topics in Databases1 ( W3C Working Draft 17 December 1999 )
XML Workshop XSLT. XML Tagged data Hello A really interesting course, well taught Interchange of data RSS, BPEL4WS, RossettaNet … Structure document representation.
1 COS 425: Database and Information Management Systems XML and information exchange.
Cornell CS 502 More XML XML schema, XPATH, XSLT CS 502 – Carl Lagoze – Cornell University.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
Unit 4 – XML Schema XML - Level I Basic.
ACG 4401 XML Schemas XML Namespaces XMLink. + The XML Foundation Many participants – an extended family! XML Instance documents – carry data in context.
Overview of XPath Author: Dan McCreary Date: October, 2008 Version: 0.2 with TEI Examples M D.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
XML, distributed databases, and OLAP/warehousing The semantic web and a lot more.
Xforms Multumiri lui Dan McCreary.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
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.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation XML Schema 1 Lecturer.
Maziar Sanaii Ashtiani – SCT – EMU, Fall 2011/12.
Dr. Azeddine Chikh IS446: Internet Software Development.
Enterprise Service Bus Lowering the cost of integration Date: 9/1/2009 Dan McCreary President Dan McCreary & Associates (952)
Creating Data Schemas Presentation by Chad Borer 2/6/2006.
Styling XForms Using CSS to make your forms look great Date: 10/9/2008 Dan McCreary President Dan McCreary & Associates (952)
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
Metadata Management Case Study Date: 10/21/2008 Dan McCreary President Dan McCreary & Associates (952) M D Metadata Solutions.
Date : 3/3/2010 Web Technology Solutions Class: Application Syndication: Parse and Publish RSS & XML Data.
The One-to-many Relationship A relationship in which one object can reference several instances of another.
EXist Indexing Using the right index for you data Date: 9/29/2008 Dan McCreary President Dan McCreary & Associates (952) M.
Recursive Functions Creating Hierarchical Reports Date: 9/30/2008 Dan McCreary President Dan McCreary & Associates (952) M.
XQuery Functions Reusing XQuery Code Date: September, 2008 Dan McCreary President Dan McCreary & Associates (952) M D Metadata.
Auto-generation of Repeated Elements Part 2 of a series of XForms auto generation Date: 1/25/2008 Dan McCreary President Dan McCreary & Associates
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
ACG 6415 XSLT Presenting XML and XBRL. Re-Purpose  The main benefit of XML / XBRL Reusability of Data contained in Instance Document We need a method.
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.
Keyword Searching Weighted Federated Search with Key Word in Context Date: 10/2/2008 Dan McCreary President Dan McCreary & Associates
ACG 4401 XML Schemas XML Namespaces XLink. + The XML Foundation Many participants – an extended family! XML Instance documents – carry data in context.
XSD Presented by Kushan Athukorala. 2 Agenda XML Namespaces XML Schema XSD Indicators XSD Data Types XSD Schema References.
Tutorial 13 Validating Documents with Schemas
XRX Basic CRUDS Create, Read, Update and Delete and Search XML Data Date: May 2011 Dan McCreary President Dan McCreary & Associates
1 Tutorial 12 Working with Namespaces Combining XML Vocabularies in a Compound Document.
Using oXygen 12 with XQuery Using oXygen to build and execute XQuery XQuery applications on eXist Date: April 2011 Dan McCreary President Dan McCreary.
XSD: XML Schema Language Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
All Presentation Material Copyright Eurostep Group AB ® A Meta-model of EXPRESS in UML for MOF and UML to EXPRESS David Price April 2002.
XQuery Labs Basic Reporting Date: 9/29/2008 Dan McCreary President Dan McCreary & Associates (952) M D Metadata Solutions.
Friday, September 4 th, 2009 The Systems Group at ETH Zurich XML and Databases Exercise Session 5 courtesy of Ghislain Fourny/ETH © Department of Computer.
Agenda 1.WSDL & XML Schema Astronomicko-geofyzikálne observatórium, Modra An Order.
ACG 4401 XSLT Extensible Stylesheet Language for Transformations Presenting XML and XBRL.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
ACG 6415 XML Schemas XML Namespaces XMLink. The XML Foundation  Many participants – an extended family! XML documents – carry data in context  Each.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
CITA 330 Section 4 XML Schema. XML Schema (XSD) An alternative industry standard for defining XML dialects More expressive than DTD Using XML syntax Promoting.
1 XML and XML in DLESE Katy Ginger November 2003.
XML: Extensible Markup Language
Unit 4 Representing Web Data: XML
Dan McCreary President Dan McCreary & Associates (952) M D
Sequences in XQuery Core data structure of XQuery Date: 8/25/2009
More XML XML schema, XPATH, XSLT
XRX Diagrams Application Architecture Diagrams Date: Aug 21st, 2008
Presentation transcript:

Sample Auto-generated XForms With XQuery Date: 1/17/2009 Dan McCreary President Dan McCreary & Associates (952) M D Metadata Solutions

Agenda/Objective Demonstrate Samples of Auto-generated XForms Simple Forms are Simple Complex Forms are ….Complex

A Simple XML Schema A simple XML Schema.

Auto-generated Form

Sample Source (no CSS) XForms application generated from constraint schema. simple-test element1 : element2 : Save

Omitted For Clarity CSS Link Header div Breadcrumb div Footer div

What Was Omitted XRX Home XRX Test Stylesheet

Types Simple Elements

Typed Elements A simple XML Schema with several types.

Typed Elements Form

Generated Elements with class Attribute typed- elements anyURI : boolean : byte : date : dateTime : decimal : integer : positiveInteger : short : string : unsignedByte : Each input control has a class with an attribute that is indicative of its data type.

M D Copyright 2008 Dan McCreary & Associates12 Sample CSS /* make a URI wide for long URLs */.anyURI.xf-value,.xs\:anyURI.xf-value {width: 60ex;}.byte.xf-value,.xs\:byte.xf-value {width: 4ex;}.date.xf-value,.xs\:date.xf-value {width: 11ex;}.dateTime.xf-value,.xs\:dateTime.xf-value {width: 23ex;}.short.xf-value,.xs\:short.xf-value {width: 6ex;} /* align all the numerics to the right */.decimal.xf-value,.xs\:decimal.xf-value,.integer.xf-value,.xs\:integer.xf-value,.positiveInteger.xf-value,.xs\:positiveInteger.xf-value {text-align: right;} Stylesheets are designed to work with and without namespace prefix

M D Copyright 2008 Dan McCreary & Associates13 Complex XML Schemas

M D Copyright 2008 Dan McCreary & Associates14 Nested Groups

M D Copyright 2008 Dan McCreary & Associates15 Group with ref attribute OrganizationDocument OrganizationID : OrganizationName : Projects Project ProjectID : ProjectName : Goals Goal GoalID :

M D Copyright 2008 Dan McCreary & Associates16 Recursion Techniques (: recursive test function to process all complex elements in an XML Schema :) declare function s2f:group-hier($complex-element as node(), $base as xs:string) as node() { let $element-name := string($complex- return (: if there are any complex types under this complex type - recurse:) if ($complex-element/xs:complexType) then {$element-name} { for $sub-element in $complex-element/xs:complexType/*/xs:element return s2f:group-hier($sub-element, concat($base, '/', $element-name)) } else (s2f:element-name-to-xforms-type($element-name)) };

M D Copyright 2008 Dan McCreary & Associates17 Test Driver

M D Copyright 2008 Dan McCreary & Associates18 Known Issues Finding the root element Processing include files Dealing with refs Required instance generation Using –when there is multiple cardinality

Thank You! Please contact me for more information: Native XML Databases Metadata Management Metadata Registries Service Oriented Architectures Business Intelligence and Data Warehouse Semantic Web Dan McCreary, President Dan McCreary & Associates Metadata Strategy Development (952)