ECT7010 Fundamentals of E-Commerce Technologies. Introduction to XML

Similar documents
Building A Very Simple Website

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Database Forms and Reports Tutorial

XSL - Introduction and guided tour

Excel will open with the report displayed. You can format and/or save the report as desired.

INTRO TO XMLSPY (IXS)

Building A Very Simple Web Site

Composite.Community.Newsletter - User Guide

The Application Getting Started Screen is display when the Recruiting Matrix 2008 Application is Started.

Tutorial Build a simple IBM Rational Publishing Engine (RPE) template for IBM Rational DOORS

T XML in 2 lessons! %! " #$& $ "#& ) ' */,: -.,0+(. ". "'- (. 1

TABLE OF CONTENTS BACKGROUND: HIGH IMPACT 4.0 PROFESSIONAL AND ACT!. 3 SELECT MAIL MERGE OPTION ON THE MAIN SCREEN.0 TEMPLATE.

IMPLEMENTING AN XML COURSE IN THE COLLEGE OF BUSINESS

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

DbSchema Tutorial with Introduction in SQL Databases

Tutorial on Building a web Application with Jdeveloper using EJB, JPA and Java Server Faces By Phaninder Surapaneni

Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

How To Use The Unify Intelligence Center On A Pc Or Macbook Or Macrocessor On A Computer Or Macosade On A Macbook (For Macro Recipebook) On A Mobile Device On A Web Browser On A Desktop Or

Oracle Business Intelligence Publisher: Create Reports and Data Models. Part 1 - Layout Editor

Objectives. Understand databases Create a database Create a table in Datasheet view Create a table in Design view

Specify the location of an HTML control stored in the application repository. See Using the XPath search method, page 2.

Appendix K Introduction to Microsoft Visual C++ 6.0

Working with SQL Server Integration Services

Composite.Community.Newsletter - User Guide

By Nabil ADOUI, member of the 4D Technical Support team

HOW TO CREATE AN HTML5 JEOPARDY- STYLE GAME IN CAPTIVATE

What is a Mail Merge?

Xtreeme Search Engine Studio Help Xtreeme

Microsoft Office 2010

An Oracle White Paper May Creating Custom PDF Reports with Oracle Application Express and the APEX Listener

INFOPATH FORMS FOR OUTLOOK, SHAREPOINT, OR THE WEB

XML and Data Management

Crystal Reports Payroll Exercise

Access II 2007 Workshop

Information Exchange Network (IEN) System Operator Training Day 3

How to create pop-up menus

Content Author's Reference and Cookbook

1. Starting the management of a subscribers list with emill

Introduction to XML Applications

MICROSOFT ACCESS 2003 TUTORIAL

Oracle Fusion Middleware

Chapter 4 Accessing Data

Advanced Database Concepts Using Microsoft Access

XML and Tools. Muhammad Khalid Sohail Khan Mat #: University of Duisburg Essen Germany

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 6 Professional Graduate Diploma in IT WEB ENGINEERING

Google Sites. How to create a site using Google Sites

XSLT Mapping in SAP PI 7.1

Business Insight Report Authoring Getting Started Guide

Basics. a. Click the arrow to the right of the Options button, and then click Bcc.

IBM DB2 XML support. How to Configure the IBM DB2 Support in oxygen

WTP-101 Developing Rich Internet Applications with Java Web Frameworks

Tyler Dashboard. User Guide Version 6.2. For more information, visit

XML WEB TECHNOLOGIES

How to test and debug an ASP.NET application

XML for RPG Programmers: An Introduction

ARCONICS CONTENT MANAGEMENT SYSTEM FOR UL

Microsoft Excel 2013: Using a Data Entry Form

Handout: Creating Forms in Word 2010

1. Tutorial - Developing websites with Kentico Using the Kentico interface Managing content - The basics

How To Use Syntheticys User Management On A Pc Or Mac Or Macbook Powerbook (For Mac) On A Computer Or Mac (For Pc Or Pc) On Your Computer Or Ipa (For Ipa) On An Pc Or Ipad

SQL Server 2005: Report Builder

SQL Server Database Web Applications

ORACLE BUSINESS INTELLIGENCE WORKSHOP

A database is a collection of data organised in a manner that allows access, retrieval, and use of that data.

Sitecore InDesign Connector 1.1

Creating a Website with MS Publisher

Umbraco v4 Editors Manual

MAS 90 Demo Guide: Accounts Payable

Desktop, Web and Mobile Testing Tutorials

Using the Query Analyzer

E-Map Application CHAPTER. The E-Map Editor

MS OUTLOOK

Ingeniux Content Management System v5.0. User s Guide for the Author Client

Getting Started with the Aloha Community Template for Salesforce Identity

PeopleSoft Compare Process

IBM Tivoli Federated Identity Manager V6.2.2 Implementation. Version: Demo. Page <<1/10>>

Microsoft FrontPage 2003

USC Aiken CMS Manual. A manual on using the basic functions of the dotcms system. Office of Marketing and Community Relations-USC Aiken


Changes to Cecil Explorer since Dec 2003 Release

SAS BI Dashboard 4.3. User's Guide. SAS Documentation

COGNOS 8 Business Intelligence

CloudTest WebUI Tes0ng Tutorial

Altova XMLSpy Tutorial

Training Manual Version 1.0

HDAccess Administrators User Manual. Help Desk Authority 9.0

Get Success in Passing Your Certification Exam at first attempt!

Data Tool Platform SQL Development Tools

Create Reports Utilizing SQL Server Reporting Services and PI OLEDB. Tutorial

Contents. Launching FrontPage Working with the FrontPage Interface... 3 View Options... 4 The Folders List... 5 The Page View Frame...

Appointment Scheduler

Extending XSLT with Java and C#

AnswerPath Version 5 User Guide Copyright 2014 Hindin Solutions Ltd. User Guide

Creating a Participants Mailing and/or Contact List:

Hands-On Lab. Web Development in Visual Studio Lab version: Last updated: 12/10/2010. Page 1

WIX: Building a Website with a Template. Choosing a Template First you will need to choose a template from the Create section of the Wix website.

Transcription:

Introduction to XML Part 2: Stylus Studio Stylus Studio includes the following tools: XML editor, DTD editor, XML schema editor, XSLT stylesheet editor, etc. 1. To access Stylus Studio, click on START -> Programs -> excelon-> Stylus Studio 2. To create new XML or XML related documents, click File -> New and then select the corresponding document type. Below we will illustrate the special features provided by stylus studio using the following sample XML document students.xml: <?xml version="1.0"?> <students> <student> <name first_name="tai Man" last_name="chan"/> <department>e-commerce</department> <id>01234567</id> <birth>1981-10-05</birth> </student> <student> <name first_name="wai Ming" last_name="wong"/> <department>e-commerce</department> <id>02123456</id> <birth>1979-02-01</birth> </student> </students> 1

A. Opening Files 1. To open an existing document, select File -> Open. 2. The Open dialog box appears 3. Choose the xml document, click Open A. XML Editor Stylus Studio provides text, tree, grid or schema view for the XML documents 1) XML Text View You can directly modify the XML codes. Views 2

2) XML Editor Tree View a. You can modify the tree with the following buttons, or Add new Element Delete, change and move nodes with these buttons b. Select XML -> Tree Editing and select the appropriate actions 3) Grid View which provides table-like view of the xml document 4) Schema View In selecting the schema view, if the xml document does not specify its DTD or schema, a pop up window appears. It can automatically generate the DTD or XML schema for the xml document. 3

Generating Internal DTD 1. Generated DTD 2. If you click back to text view, you can see the following codes being added automatically to the students.xml <!DOCTYPE students [ <!ELEMENT name EMPTY> <!ATTLIST name first_name CDATA #REQUIRED last_name CDATA #REQUIRED> <!ELEMENT department (#PCDATA)> <!ELEMENT id (#PCDATA)> <!ELEMENT birth (#PCDATA)> <!ELEMENT student (name,department,id,birth)> <!ELEMENT students (student)+>]> 3. To validate the xml document, click XML -> Validate Document or the validate button. A pop up message appears. 4

Generating XML Schema 1. Type in the output file name 2. Generated schema 3. If click back to the text view, you can see the following code being added to the students.xml <students xmlns:xsi=http://www.w3.org/2001/xmlschema-instance xsi:nonamespaceschemalocation="students.xsd"> 4. An XML schema file students.xsd is created. To view the schema source, click XML -> Open Associated Schema or by clicking the button 5

B. Applying the XSL StyleSheet You can create a new xsl stylesheet file or open an existing one. Using the following sample xsl file -- students.xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/tr ansform"> <xsl:template match="students"> <html> <head><title>student Records</title></head> <body> <table width="80%" border="1"> <tr> <th>name</th> <th>id</th> </tr> <xsl:apply-templates/> </table> </body> </html> </xsl:template> <xsl:template match="student"> <tr align="center"> <td><xsl:apply-templates select="name"/></td> <td><xsl:value-of select="id"/></td> </tr> </xsl:template> <xsl:template match="name"> <xsl:value-of select="@first_name"/>, <xsl:value-of select="@last_name"/> </xsl:template> </xsl:stylesheet> a. Create new xsl stylesheet, click File -> New -> XSLT StyleSheet. Then type in the codings. A pop up window appears (see step 3) OR b. Open an existing file, click File -> Open. c. To edit the StyleSheet, besides directly modifying in the codes, you can also: 1. double-click an item in the XML schema pane to create a template for that element 2. drag an element from the XML schema pane into the template 3. To apply the XSL stylesheet on certain XML document, click the preview XSLT result button which can show the result of apply the XSL transformation. 4. A pop up window appears. In the source XML URL field, type in the name of the XML document you want to apply the stylesheet to. E.g. students.xml 6

5. Click OK, the results will be shown in XSLT Preview box, which provided different form of view: a) Preview in browser: display as the web browser Preview in browser XML schema b) Preview in text: display the resulted source Preview in text 7

6. Debugging XSLT StyleSheet You can debug a stylesheet. You can set breakpoints and stop through the processing by using the Debug menu and toolbar. Debug Menu Indication of Breakpoint and current instruction 8

D. Querying the XML Documents In XML Editor, it also support the querying on the XML documents. 1. Open an XML document 2. Type in the Xpath query and Enter 3. The results will be show in the Query Output box on the right. e.g. type in the query to view the all the name elements in students.xml: //name Input the Xpath query Results of Query Xpath is used to address parts of an XML document. It allows you to identify a node by matching with Xpath expression. e.g. To retrieve the name node with attribute value of first_name equal to Chan, we can use the Xpath /students/student/name[@first_name= Chan ] 9