Open Office.Org What is the Open Office.org Source Project? Open source project through which Sun Microsystems is releasing the technology for the popular.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

Transforming XML XMLNamespaces, XSLT. XML Namespaces Sometimes it is necessary to mix XML elements –Different types of content –Use of markup to convey.
Applications of XSLT. generating Word documents WordML provides formatting and content elements Word 2003 can read WordML files XSLT can be used to transform.
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
XML: Extensible Markup Language
1 XSLT – eXtensible Stylesheet Language Transformations Modified Slides from Dr. Sagiv.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
XSLT (eXtensible Stylesheet Language Transformation) 1.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
An Introduction to XML Based on the W3C XML Recommendations.
XML Unit 6 October 31. XML, review XML is used to markup data Used to describe information Uses tags like HTML –But all tags are user-defined –Must be.
Tutorial 9 Working with XHTML
CSE 190: Internet E-Commerce Lecture 17: XML, XSL.
We Need Smart XML Processing HTML has ultra-complex semantics XML has no semantics Something must bridge the gap  A program ?  A clear set of data semantics?
XSL Concepts Lecture 7. XML Display Options What can XSL Transformations do? generation of constant text suppression of content moving text (e.g., exchanging.
XSL Unit 6 November 2. XSL –eXtensible Stylesheet Language –Basically a stylesheet for XML documents XSL has three parts: –XSLT –XPath –XSL-FO.
1 CA201 Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
ECA 228 Internet/Intranet Design I Intro to XSL. ECA 228 Internet/Intranet Design I XSL basics W3C standards for stylesheets – CSS – XSL: Extensible Markup.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
Introduction technology XSL. 04/11/2005 Script of the presentation Introduction the XSL The XSL standard Tools for edition of codes XSL Necessary resources.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
WORKING WITH XSLT AND XPATH
Session II Chapter 2 – Chapter 2 – XSLhttp://
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language)  XML is a markup language for creating documents containing structured information.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
 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,
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
ECA 228 Internet/Intranet Design I XSLT Example. ECA 228 Internet/Intranet Design I 2 CSS Limitations cannot modify content cannot insert additional text.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
Extensible Stylesheet Language Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University XSL-FO XSLT.
XML Part 2 Josh Steele CS 6704, Spring XML Part 2 XSL/XSLT –Structure Revisited –Definition –Example –Components XML’s Linking Languages XML’s Uses.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Applying eXtensible Style Sheets (XSL) Ellen Pearlman Eileen Mullin Programming.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
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 –
When we create.rtf document apart from saving the actual info the tool saves additional info like start of a paragraph, bold, size of the font.. Etc. This.
 XSL – Extensible Style Sheet Language  XSLT – XSL Transformations › Used to transform XML documents to other formats,like HTML or other XML documents.
Games: XML Presented by: Idham bin Mat Desa Mohd Sharizal bin Hamzah Mohd Radzuan bin Mohd Shaari Shukor bin Nordin.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
 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:
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
XML Extensible Markup Language
XML Schema – XSLT Week 8 Web site:
XML: Extensible Markup Language
Unit 4 Representing Web Data: XML
CIS 228 The Internet 9/20/11 XHTML 1.0.
Tutorial 9 Working with XHTML
XML Related Technologies
Chapter 7 Representing Web Data: XML
Tutorial 9 Working with XHTML
Unit 6 - XML Transformations
Presentation transcript:

Open Office.Org What is the Open Office.org Source Project? Open source project through which Sun Microsystems is releasing the technology for the popular Star Office(tm) productivity suite. Name of the overall project and is being hosted by CollabNet.

Features: downloadable sources and information the community and communication mechanisms for the project The governance body called the Open Office.org Foundation

Mission To create an open and ubiquitous XML- based file format for office documents and to provide an open reference implementation for this format. XML adopted as the new native file format for the Star Office suite, replacing the old binary file format.

Goal Two Fold Complete specification encompassing all Star Office components Provide an open standard for office documents

Why XML? Ideal open standard because of the free availability of XML specifications DTDs XSL, XSLT, XLink, SVG, MathML One single XML format can be applied to different types of documents

XML File Format Specification Name Spaces Structure Document Info

Name Spaces Office Style Api Table Meta Draw

Structure Element symbolizes structural components The structure applies to all applications Text,spreadsheet,drawing… all differ only by content and all are represented by the same structure

Document Root Root – document XML code DTD <!ELEMENT office:document (office:meta?,office:configs?,office:scr ipting?,…)>

Root element Attributes Class –identifies document application text on-line text Spreadsheet Drawing Presentation XML code: office:class

Version Gives the version of the file format XML code: office:version DTD :

Document Information Title Author Document creation date Specified using meta element XML code

Others Scripting Forms Styles Configuration management

Document Content body element contains content XML code : DTD ANY indicates any type of content

White Space processing & EOL handling White spaces ignored for elements that have element contents Preserved by default Line feed & carriage return for line ends Entity reference &#x0D

Document Validation If document is validated it must match the DTD Not appropriate to validate in following cases 1. Documents created by another version 2. Documents that contain a custom extension

Why not Validate? Both documents may contain elements & attributes that may be unknown to the application processing the file Forward compatible processing rules describes how to handle such elements

RULES Major version same as current major version & minor version same or less than current minor version then FCP is DISABLED The document may be validated

RULES If major version same as current major version and minor version greater than current minor version FCP ENABLED Document should not be validated The same thing holds good when major versions are not equal

Preserving unknown attributes Attributes preserved by default Some attributes corrupt document.These should not be preserved …. Is any valid xpath expression

Language element Language element specifies default document language XML Code DTD

DATA STYLES Displaying different types of data Number style Currency Date Boolean Text …

HANDLING HYPERLINKS Hyperlinks in text documents are represented by a simple XLink XML Code: Rules: If this element contains white-space characters, the characters are collapsed DTD:

ATTRIBUTES The attributes associated with the element are: Name Link locator Target frame Text styles

NAME A hyperlink can have a name, but it is not essential. The name attribute specifies the name of the hyperlink if one exists. This name can serve as a target for some other hyperlinks.

XML –CODE text:name DTD: Notes: This attribute is specified for compatibility with HTML where an element may serve as link source and target simultaneously

Target Frame The target frame name of the link is specified by a target- frame- name attribute XML Code: office:target-frame-name

RULES " _self referenced document replaces current frame " _blank referenced document displayed in a new frame " _parent referenced document displayed in the parent frame of the current frame

RULES " _top The referenced document is displayed in the uppermost frame A frame name referenced document is displayed in the named frame

XLINK SPECIFICATION xlink:show attribute is attached to the element DTD:

Link Locator The location of the link (URL) is specified by a href attribute XML Code: xlink:href

Link Locator DTD:

Text Styles –Every hyperlink has two text styles as follows:

Text Styles –" If the link location of the hyperlink has not been visited, a certain text style is applied to the text of the hyperlink " If the link location of the hyperlink has already been visited, a different text style is applied to the text of the hyperlink

DatabaseFields Display data from databases as text Star office databases are either tables or queries Every database has a name used for its identity

DatabaseFields DTD <!ENTITY % database-table text:database-name CDATA # REQUIRED text:table-name CDATA #REQUIRED >

Displaying databases database-display element used column-name attribute selects selects column DTD <!ATTLIST text:database- display text:column-name CDATA #REQUIRED

Graphic Content Configuring Graphic Document Info needs to be supplied Drawing Rectangle Line

Graphic Content Polygon Circle Ellipse

Rectangle rect element represents rectangular drawing shape DTD <!ATTLIST draw:rect %draw-position %draw-size %draw-style-name %draw-transform

LINE line element represents line DTD <!ATTLIST draw:line svg:x1 %coordinate; #IMPLIED svg:x2 %coordinate; #IMPLIED svg:y1 %coordinate; #IMPLIED svg:y2 %coordinate; #IMPLIED

POLYGON XML-CODE DTD <!ATTLIST draw:polygon %draw-position %draw-size draw:points %points; #REQUIRED

TRANSFORMATION transform attributes specifies list of transformations is the element XML CODE : svg:transform Value of it is a list of transform definitions separated by white spaces

TRANSFORM DEFINITIONS Matrix( ) Transformation matrix of six values Equivalent to [a b c d e f] Translate( [ ]) Scale( [ ]) Rotate( ) skewX( )

CHARTS Can exist as standalone docments or as documents inside XML documents To create a standalone chart document set the value of the office:class attribute to chart in the element Chart data is contained in element

CHART INSIDE SPREADSHEET To reference the correct table and cells you can use the table:cell-range- address attributes, which are applied to the elements that represent the data series in the chart

chart ELEMENT The chart element represents an entire chart, including titles, a legend, and the graphical object that visualizes the underlying data called the plot area. The class attribute specifies the chart type.

CLASS DTD: <!ENTITY % chart-class "(line|area|circle|ring|scatter|radar|bar|st ock|bubble)"> <!ATTLIST chart:chart

CLASS chart:class %chart-class; #REQUIRED svg:width %length; #IMPLIED svg:height %length; #IMPLIED chart:style-name %style-name; #IMPLIED >

DTDS Office.dtd is the main DTD file Chart.mod Text.mod Dtypes.mod Meta.mod Datastyle.mod

Namespace.mod Style.mod Table.mod Office.mod

Office.DTD %dtypes-mod; %nmspace-mod; %style-mod; %office-mod; …… Office.mod has the root element document

To-Do List · a validating parser component · a document clean and repair program · transformations from or into Open Office XML (such that they could also be used as Import or export filters for the applications)