강좌
클라우드/리눅스에 관한 강좌입니다.
프로그램 분류

ODF (Open Document Format)

작성자 정보

  • 웹관리자 작성
  • 작성일

컨텐츠 정보

본문





ODF (Open Document Format)






ㅇ 제작 : 리눅스포털(www.superuser.co.kr) 수퍼유저코리아 개발팀



SULINUX 홈페이지 : www.sulinux.net


ㅇ 리눅스포털 홈페이지 : www.superuser.co.kr

1. Open Document Format 이란?


오픈다큐먼트(OpenDocument) 포맷은 같은 해 5월에 국제 표준화 단체인 OASIS가 승인한

워드프로세서, 스프레드시트, 프레젠테이션 등 오피스 어플리케이션의 표준 문서 포맷이

오픈소스 기반이 아닌 소프트웨어에서도 사용가능하다.


Office 어플리케이션을 위해 XML 스키마의 형태로 최적화 되어 정의 되어 있다.


Open Document Format은 문서 수정 및 읽기등에 대해 적절한 고수준의 정보를

제공 하며 Open Office에 의해 사용되어지는 XML 구조는 XML base toolsXLST에서

변환하는 과정과 유사하다.


20059월에 미국 메사추세츠 주정부는 오픈다큐먼트를 의무화하여 200711일까지

5만대의 PC의 업무용 프로그램을 오픈다큐먼트와 호환되는 어플리케이션으로

전환할 계획이라 발표하였다.


리눅스 기반 `오픈 오피스'에서 가장 먼저 ODF를 지원한 데 이어 썬과 IBM 등도 잇달아 자사 오피스 프로그램에서 ODF 채택 방침을 밝히고 있.



2. Namespaces

전의된 XML namespaces

Prefix

Description

Namespace

office

For all common pieces of information that are not contained in another, more specific namespace.

urn:oasis:names:tc:opendocument:xmlns:office:1.0

meta

For elements and attributes that describe meta information.

urn:oasis:names:tc:opendocument:xmlns:meta:1.0

config

For elements and attributes that describe application specific settings.

urn:oasis:names:tc:opendocument:xmlns:config:1.0

text

For elements and attributes that may occur within text documents and text parts of other document types, such as the contents of a spreadsheet cell.

urn:oasis:names:tc:opendocument:xmlns:text:1.0

table

For elements and attributes that may occur within spreadsheets or within table definitions of a text document.

urn:oasis:names:tc:opendocument:xmlns:table:1.0

drawing

For elements and attributes that describe graphic content.

urn:oasis:names:tc:opendocument:xmlns:drawing:1.0

presentation

For elements and attributes that describe presentation content.

urn:oasis:names:tc:opendocument:xmlns:presentation:1.0

dr3d

For elements and attributes that describe 3D graphic content.

urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0

anim

For elements and attributes that describe animation content.

urn:oasis:names:tc:opendocument:xmlns:animation:1.0

chart

For elements and attributes that describe chart content.

urn:oasis:names:tc:opendocument:xmlns:chart:1.0

form

For elements and attributes that describe forms and controls.

urn:oasis:names:tc:opendocument:xmlns:form:1.0

script

For elements and attributes that represent scripts or events.

urn:oasis:names:tc:opendocument:xmlns:script:1.0

style

For elements and attributes that describe the style and inheritance model used by the OpenDocument format as well as some common formatting attributes.

urn:oasis:names:tc:opendocument:xmlns:style:1.0

number

For elements and attributes that describe data style information.

urn:oasis:names:tc:opendocument:xmlns:data style:1.0

manifest

For elements and attribute contained in the package manifest.

urn:oasis:names:tc:opendocument:xmlns:manifest:1.0



정의된 표준 어스트리뷰트


Prefix

Description

Namespace

fo

For attributes that are compatible to attributes defined in [XSL].

urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0

svg

For elements and attributes that are compatible to elements or attributes defined in [SVG].

urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0

smil

For attributes that are compatible to attributes defined in [SMIL20].

urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0


사용되어지는 Namespaces


Prefix

Description

Namespace

dc

The Dublin Core Namespace (see [DCMI]).

http://purl.org/dc/elements/1.1/

xlink

The XLink namespace (see [XLink]).

http://www.w3.org/1999/xlink

math

MathML Namespace (see [MathML])

http://www.w3.org/1998/Math/MathML

xforms

The XForms namespace (see [XForms]).

http://www.w3.org/2002/xforms



3. Relax-NG Schema


ODF 사용을 위한 정의된 XML스키마 임베이딩 하는 방법


<?xml version="1.0" encoding="UTF-8"?>

<!--

OASIS OpenDocument v1.1

OASIS Standard, 1 Feb 2007

Relax-NG Schema

$Id$

© 2002-2007 OASIS Open

© 1999-2007 Sun Microsystems, Inc.

-->

<grammar

xmlns="http://relaxng.org/ns/structure/1.0"

xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"

datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"

xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"

xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"

xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0"

OpenDocument-v1.1-os.odt 1 February 2007 Copyright © OASIS Open 2002 - 2007. All Rights Reserved. Page 35 of 738 12345 67 89 10 11 12 13 14 15 16 17 18 19 20 21

xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"

xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"

xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"

xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"

xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"

xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"

xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"

xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"

xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"

xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"

xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0"

xmlns:dc="http://purl.org/dc/elements/1.1/"

xmlns:xlink="http://www.w3.org/1999/xlink"

xmlns:math="http://www.w3.org/1998/Math/MathML"

xmlns:xforms="http://www.w3.org/2002/xforms"

xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"

xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"

xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"

>



4. 문서 처리


오픈 도큐멘트 문서를 처리하기 위해 스키마내에 엘레멘트나 어스트리부트를

함께 포함 시킨다.


<define name="office-process-content">

<optional>

<attribute name="office:process-content" a:defaultValue="true">

<ref name="boolean"/>

</attribute>

</optional>

</define>











관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,037 명
  • 현재 강좌수 :  35,806 개
  • 현재 접속자 :  94 명