PowerPoint 프레젠테이션

Similar documents
PowerPoint 프레젠테이션

Lab1

Week8-Extra

(Microsoft PowerPoint - JATSXML2PDF_\301\266\300\261\273\363.pptx)

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

한국학 온라인 디지털 자원 소개

PowerPoint 프레젠테이션

쉽게 풀어쓴 C 프로그래밍

What Is CSS? Stands for Cascading Style Sheets. Is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents. Styles define h

Overall Process

Ext JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF

이장에서다룰내용 테두리를제어하는스타일시트 외부여백 (Margin) 과내부여백 (Padding) 관련속성 위치관련속성 2

Microsoft PowerPoint - aj-lecture1-HTML-CSS-JS.ppt [호환 모드]

목 차 XSLT, XPath, XSL-FO 배경 XSLT 변환 / 프로세싱모델 XSLT Instruction 엘리먼트 XPath 이해 XPath 표현식 XPath 적용예 XSL-FO 이해 XSL-FO 포맷팅모델 XSL-FO Layout 체계 요약 2

한국학 온라인 디지털 자원 소개

Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일

<4D F736F F D C1A6BEC8BCAD20C0DBBCBAB0FA20C7C1B8AEC1A8C5D7C0CCBCC720B1E2B9FD2E646F63>

PowerPoint Presentation

쉽게 풀어쓴 C 프로그래밍

WEB HTML CSS Overview

SK Telecom Platform NATE

일반인을 위한 전자책 제작 방법

PowerPoint 프레젠테이션

Orcad Capture 9.x

예제로 배우는 xslt

Front-Side 웹개발의이해 (CSS Basic) 1. CSS 란?

step 1-1

PowerPoint Presentation

PowerPoint 프레젠테이션

쉽게 풀어쓴 C 프로그래밍

UNIST_교원 홈페이지 관리자_Manual_V1.0


Building Mobile AR Web Applications in HTML5 - Google IO 2012

DocsPin_Korean.pages

歯튜토리얼-이헌중.PDF

XE 스킨 제작 가이드

00Àâ¹°

00Àâ¹°

Week13

28 THE ASIAN JOURNAL OF TEX [2] ko.tex [5]

리포트_23.PDF

Mentor_PCB설계입문

PHP & ASP

DBPIA-NURIMEDIA

HTML5가 웹 환경에 미치는 영향 고 있어 웹 플랫폼 환경과는 차이가 있다. HTML5는 기존 HTML 기반 웹 브라우저와의 호환성을 유지하면서도, 구조적인 마크업(mark-up) 및 편리한 웹 폼(web form) 기능을 제공하고, 리치웹 애플리케이 션(RIA)을

USER GUIDE

쉽게 풀어쓴 C 프로그래밍

What is ScienceDirect? ScienceDirect는 세계 최대의 온라인 저널 원문 데이터베이스로 엘스비어에서 발행하는 약,00여 종의 Peer-reviewed 저널과,000여권 이상의 도서를 수록하고 있습니다. Peer review Subject 수록된

PowerPoint 프레젠테이션

C# Programming Guide - Types

Lab10

제이쿼리 (JQuery) 정의 자바스크립트함수를쉽게사용하기위해만든자바스크립트라이브러리. 웹페이지를즉석에서변경하는기능에특화된자바스크립트라이브러리. 사용법 $( 제이쿼리객체 ) 혹은 $( 엘리먼트 ) 참고 ) $() 이기호를제이쿼리래퍼라고한다. 즉, 제이쿼리를호출하는기호

슬라이드 1

Journal of Educational Innovation Research 2018, Vol. 28, No. 4, pp DOI: * A S

Introduction to KoreaMed, Synapse, KAMJE Press and XMlink

e-비즈니스 전략 수립

하둡을이용한파일분산시스템 보안관리체제구현

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE Jun.; 27(6),

NATE CP 가이드 1. WML 페이지에서줄바꿈문제 개요 WML 페이지에서줄바꿈은명시적으로 <br/> 태그를사용하여야한다. 설명그림 2 의의도로제작된페이지에서 Card Styles 텍스트와 Select 박스사이에명시적인 <br/> 태그가없어, 그림 1 과같이줄바꿈이되

04_이근원_21~27.hwp

Voice Portal using Oracle 9i AS Wireless

예스폼 프리미엄 템플릿

PubMed_Central-허선.hwp

접근성과 웹 The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. Tim Berners-Lee, the inventor

snmpgw1217

쉽게 풀어쓴 C 프로그래밍

PowerPoint 프레젠테이션

학술지 구성요소

1

975_983 특집-한규철, 정원호

08년csr3호

2 - KTF ME 브라우저로확인한결과. ( 주소입력시 로직접입력 ) Internet Explorer 로 확인한결과

AMP는 어떻게 빠른 성능을 내나.key

LXR 설치 및 사용법.doc

thesis

Javascript

Page 2 of 5 아니다 means to not be, and is therefore the opposite of 이다. While English simply turns words like to be or to exist negative by adding not,

Microsoft Word - P02.doc


SASS FOR WEB DESIGNERS By A Book Apart Copyright 2014 Dan Cederholm Korean Translation Edition 2014 Webactually Korea, Inc. All rights reserved. 이 책의

Microsoft Word - Westpac Korean Handouts.doc

Microsoft PowerPoint - ch10 - 이진트리, AVL 트리, 트리 응용 pm0600

MAX+plus II Getting Started - 무작정따라하기

Microsoft PowerPoint - web-part03-ch19-node.js기본.pptx

<3035B0AD D4C5F584D4C5FC0CEC5CDB3DDBAB8C3E6C7D0BDC0C0DAB7E12E687770>

EndNote X2 초급 분당차병원도서실사서최근영 ( )

BGP AS AS BGP AS BGP AS 65250

02 장. 글꼴문단지정하기 이번장에서는스타일시트속성중에서글꼴과관련한속성과문단에관련된속성을살펴보도록하자.

XML

DBPIA-NURIMEDIA

Coriolis.hwp

JavaPrintingModel2_JunoYoon.PDF

서론 34 2

DataBinding

소프트웨어개발방법론

untitled

슬라이드 1

Scene7 Media Portal 사용

Transcription:

How to construct XSL and/or CSS for style sheet of XML files based on the data type definition 조윤상 ( 과편협기획운영위원 ) 1

Table of Contents 1. XML, XSL and CSS? 2. What is XSL? XSLT? XPath? XSL-FO? 3. What is CSS? CSS Syntax How to use CSS? 2 15 th KCSE Editor s Workshop, Seoul 2015

XML? XML (Extensible Markup Language) 이란? 확장가능한마크업언어. 모양보다는내용과구조를표시하는 tag. 문법규칙이엄격. 다른형태로의변환에있어용이함.(DataBase Dump, PubReader, epub(ebook), PDF) Markup( 마크업 ) : 문서의논리적구조와배치양식에대한정보를표현하는것. DTD (Document Type Definition)? 문서형정의 : 문서에대한논리적구조 / 형태를정의 DTD 구성요소 1. Element 2. Attribute 3. Value <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE note SYSTEM "Note.dtd"> <person sex="male"> <firstname>gildong</firstname> <lastname>hong</lastname> </person> 위세가지에대한구조를정해놓고, XML 파일에 DTD 가연결이되면, DTD 로정의되어있는구조를따라야한다. 3 15 th KCSE Editor s Workshop, Seoul 2015

XML Tree structure XML document 는 root" 부터시작하고 leaves" 로확장되는트리구조 ArticleSet Article Article Journal ArticleTitle AuthorList ArticleIdList History Title Volume Issue PubDate Received date Accepted date Publish date Year Month Day Year Month Day 4 15 th KCSE Editor s Workshop, Seoul 2015

Example of XML Tree structure Folder shows tree structure ` XML Document shows tree structure 5 15 th KCSE Editor s Workshop, Seoul 2015

XML, XSL and CSS? The following shows the relationship between XSL and CSS files XML document XSL transformation XHTML output + CSS layout 6 15 th KCSE Editor s Workshop, Seoul 2015

What is XSL? XSL(eXtensible Style Language)? XML 문서를변환하고, 포맷팅정보를기술하기위해개발된 stylesheet 언어 XSL/XSLT 는기존의 XML 문서를다른형태의 XML 로변환하거나, 혹은 XML 문서를 HTML 이나그외의문서로변환하고자할때사용 원본문서는변화가없고새로운형식의문서를만들수있는기능을제공 원본 XML 문서는그대로있으면서, XSL 를이용하여원하는형태로변환하여사용함 The following shows difference between CSS and XSL CSS (Style Sheets for HTML) XSL (Style Sheets for XML) Tag 의정의 uses predefined tags does not use predefined tags tag 의의미 each tag is well understood each tag is not well understood 브라우저표시방법 browser knows how to display it browser does not know how to display it 7 15 th KCSE Editor s Workshop, Seoul 2015 7

XSL? XSL 기술을구성하는세가지언어 1. XSLT (XSL Transformations) - XML 문서를구조가다른 XML 문서등으로변환하기위한 XML 기반의마크업언어 2. XPath (XML Path Language) - XML 문서의특정부분 ( 요소, 속성, 텍스트등 ) 을지정하는언어. - XPath 는 XSLT 에서처리할 XML 문서의특정부분을지정하는데사용되고있음. 3. XSL-FO (XSL Formatting Objects ) - XSL-FO 는 XML 데이터를포맷팅하기위한언어. - 인간에게이해가능한형식의문서조판을설명하는 XML 기반의마크업언어. XSL Transforming Language XSLT Navigation Language XPath FO (Formatting object) XSL-FO HTML CSS 8 15 th KCSE Editor s Workshop, Seoul 2015

XSLT XSLT(XSL Transformations)? XSL의가장중요한부분 XML 문서를다른포맷의문서로변환하는언어 XPath를사용하여 XML 문서에서이동 W3C 권고안 - 새로운요소를추가하거나기존에존재하는요소들을제거할수있다. - XML 문서에존재하는요소들은 XSLT 에의해정렬되거나재배열될수있으 며보여지거나감춰질수있다. XSL Stylesheet 선언 <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform"> XSL Stylesheet 문서연결 <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="example1.xsl"?> 9 15 th KCSE Editor s Workshop, Seoul 2015

How to transform XML using XSLT into XHTML XML Document example1.xml <?xml version="1.0" encoding="utf-8"?> <articles> <article> <title>biochemia Medica indexed in PubMed Central (PMC)</title> <corresp>ana-maria Simundic</corresp> <pub_year>2014</pub_year> <volume>24</volume> <issue>1</issue> <fpage>5</fpage> </article> <article> <title>preanalytical Phase - an updated review of the current evidence</title> <corresp>ana-maria Simundic</corresp> <pub_year>2014</pub_year> <volume>24</volume> <issue>1</issue> <fpage>6</fpage> </article> </articles> 10 15 th KCSE Editor s Workshop, Seoul 2015

How to transform XML using XSLT into XHTML XSL Style Sheet 생성 example1.xsl <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform"> <xsl:template match="/"> Document Declaration <html> <body> <h2>article List - Sample 1</h2> <table border="1"> <tr bgcolor="#3399cc"> XPath expression <th>title</th> <th>corresponding author</th> <th>pubyear</th> <th>volume</th> <th>issue</th> <th>firstpage</th> </tr> <xsl:for-each select="articles/article"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="corresp"/></td> <td><xsl:value-of select="pub_year"/></td> <td><xsl:value-of select="volume"/></td> <td><xsl:value-of select="issue"/></td> <td><xsl:value-of select="fpage"/></td> </tr> </xsl:for-each> </table> </body> <xsl:value-of> Element </html> </xsl:template> </xsl:stylesheet> <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="example1.xsl"?> <articles> <article> <title>biochemia Medica indexed in PubMed Central (PMC)</title> <corresp>ana-maria Simundic</corresp> <pub_year>2014</pub_year> <volume>24</volume> <issue>1</issue> <fpage>5</fpage> </article>. </articles> 11 15 th KCSE Editor s Workshop, Seoul 2015

What is XPath XPath (XML Path Language)? ML 문서에특정 element나 attribute에접근하기위한경로를지정하는언어. XSLT의주요요소 W3C 권고안 XML문서는트리구조로구조화되어있기에.. 특정부분에접근하기위해 XPath라는 [ 약속된경로표기법 ] 을사용한다 XPath는 XML 문서의 nodes 또는 node-sets를선택하는경로표현을위해사용 http://www.w3schools.com/xpath 12 15 th KCSE Editor s Workshop, Seoul 2015

XPath 용어 - Nodes Seven kinds of nodes - element ArticleSet - attribute Article Article Journal - text - namespace - processing-instruction AuthorID List ArticleTitle FirstPage AccepdDate Issn Volume - comment - document nodes IdType Preanalytical Phase 5 2014-2-15 element nodes attribute nodes text nodes <articles> root element node <article> <title lang= en >Biochemia Medica indexed in PubMed Central (PMC)</title> <corresp>ana-maria Simundic</corresp> element node attribute node 13 15 th KCSE Editor s Workshop, Seoul 2015

Example of XPath Article List path="/articles/article[1]/title //article[1]/volume"; path="/articles/article[1]/*"; Example1 /articles/article[1]/title Example2 /articles/article[pub_year>2013]/title 14 15 th KCSE Editor s Workshop, Seoul 2015

What is XSL-FO? XSL-FO? XML 데이터를포맷팅하기위한언어 EXtensible Stylesheet Language Formatting Objects XML 에근거함 W3C 권고안 XSL-FO 는 XML 데이터를화면, 종이또는다른미디어에출력하기위한포맷팅을기술한 XML 기반마크업언어이다. XML document XSLT processor FO document FO procesor Final document (PDF, Print) XSL style 15 15 th KCSE Editor s Workshop, Seoul 2015

XML, XSLT and XSL-FO XML FO-Document PDF Dcoument Formatter FO-XSLT 16 15 th KCSE Editor s Workshop, Seoul 2015 16

What is CSS? CSS? - A stands for Cascading Style Sheets HTML 4.0 부터추가된문서전체의레이아웃을향상시킬수있는언어. 발전된디자인과동적인형식을부여할수있도록해준다. 전체웹페이지의관련된요소들의스타일속성을한꺼번에변경시킬수있어페이지유지관리시간을단축시킬수있다. What is CSS. Available from : http://www.shehairakoeiman.com/what-is-css/. [cited-by 2014 November 15] 17 15 th KCSE Editor s Workshop, Seoul 2015

CSS Syntax CSS 구문의 3 가지구성요소 CSS 적용후 Selector ( 선택자 ) Property ( 속성 ) Value ( 값 ) CSS 적용전 http://www.w3schools.com/css/css_syntax.asp 18 15 th KCSE Editor s Workshop, Seoul 2015

How to use CSS CSS 삽입하는방법 1.External Style Sheet <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> 2.Internal style sheet <head> <style> hr {color:sienna;} p {margin-left:20px;} body {background-image:url("images/background.gif");} </style> </head> 3.Inline style sheet <p style="color:sienna;margin-left:20px;">this is a paragraph.</p> 19 15 th KCSE Editor s Workshop, Seoul 2015

CSS selectors? CSS selectors 는선언된 CSS 가어디에적용될지가리키는역할을함 CSS selectors 형식 id, classes, types, attributes, values of attributes etc. h1 { text-align:center; color:red; } h2 { text-align:center; color:red; } p { text-align:center; color:red; } h1,h2,p { text-align:center; color:red; } <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1- transitional.dtd"> <style>. </style> </head> <body> <h1>publisher : Croatian Society of Medical Biochemistry and Laboratory Medicine</h1> <h2>journal Title : Biochemia Medica</h2> <p>title : Biochemia Medica indexed in PubMed Central (PMC)</p> </body> </html> 20 15 th KCSE Editor s Workshop, Seoul 2015

Example - 2 pubmed.xml <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="pubmed_list.xsl"?> <ArticleSet> <Article> <Journal> <PublisherName>Croatian Society of Medical Biochemistry and Laboratory Medicine</PublisherName> <JournalTitle>Biochemia Medica</JournalTitle> <Issn>1846-7482</Issn> <Volume>24</Volume> <Issue>1</Issue> <PubDate> <Year>2014</Year> <Month>2</Month> </PubDate> </Journal> <ArticleTitle>Biochemia Medica indexed in PubMed Central (PMC)</ArticleTitle> <FirstPage>5</FirstPage> <LastPage>5</LastPage> <Language>EN</Language> <AuthorList> <Author> <FirstName>Ana-Maria</FirstName> <LastName>Simundic</LastName> <Affiliation>Editor-in-chief, Biochemia Medica, Zagreb, Croatia </Affiliation> </Author> </AuthorList> <ArticleIdList> <ArticleId IdType="doi">10.11613/BM.2014.000</ArticleId> <ArticleId IdType="pii">biochem-24-1-5-1</ArticleId> </ArticleIdList> <History> <PubDate PubStatus="epublish"> <Year>2014</Year> <Month>2</Month> <Day>15</Day> </PubDate> </History> </Article> <Article> </Article> <Article> </Article> </ArticleSet> 21 15 th KCSE Editor s Workshop, Seoul 2015

Example - 2 : pubmed.xml, pubmed_list.xsl and pubmed_list.css 22 15 th KCSE Editor s Workshop, Seoul 2015

pubmed_list.xsl <xsl:template match="/"> <html> <head> Add the XSL style sheet reference ( pubmed_list.xml ) <title>article list - PubMed XML</title> <link rel="stylesheet" type="text/css" href="pubmed_list.css"/> </head> pubmed.xml <body> <xsl:apply-templates/> </body> </html> </xsl:template> <xsl:template match="article"> <div class="article"> <div class="articletitle"> <xsl:apply-templates select="articletitle"/> </div> <div class="authorlist"> <xsl:apply-templates select="authorlist"/> </div> <div class="etc"> <xsl:call-template name="etc"/> </div> </div> </xsl:template> 23 15 th KCSE Editor s Workshop, Seoul 2015

pubmed_list.css.article { }.ArticleTitle { }.AuthorList { }.Etc { width:100%; border:1px dotted #000000; padding: 10px 5px 10px 5px; margin-bottom: 5px; Selector Bottom margin 5px font-size: 15pt; font-weight: bold; margin-bottom: 5px; font-family: Times New Roman, Times, Arial, Tahoma, Sans-serif, Verdana; font-size: 12pt; font-style: normal; font-family: Times New Roman, Times, Arial, Tahoma, Sans-serif, Verdana; font-size: 10pt; font-family: Times New Roman, Times, Arial, Tahoma, Sans-serif, Verdana; }.JournalTitle { font-size: 10pt; font-weight: bold; font-style: italic; font-family: Times New Roman, Times, Arial, Tahoma, Sans-serif, Verdana; } top -10px, right-5px, bottom-10px, left-5px The font specify in Times New Roman. But, if there is no Times New Roman exist, use other fonts with the following order; Times, Arial. Journal title has to be shown Bold and font style in italic. 24 15 th KCSE Editor s Workshop, Seoul 2015

Thank you. younsang@m2comm.co.kr Reference 1. XML Tutorial. W3school website [cited by 2014.11.15]. Available from: http://www.w3schools.com/xml/. 2. XSLT Tutorial. W3school website [cited by 2014.11.15]. Available from: http://www.w3schools.com/xsl/. 3. CSS Tutorial. W3school website [cited by 2014.11.15]. Available from: http://www.w3schools.com/css/. 4. Lee YH. XSL & CSS. In: Huh S editor. The 9th Editor s Workshop; 2013 Jul 4-5; Seoul: KCSE; 2013. p.47-58 5. Cho YS. How to construct XSL and/or CSS style sheet of XML files based on the data type of definition: Huh S editor. 12th EASE General Assembly and Conference; 2014 June 12-13; Split, Croatia 25 15 th KCSE Editor s Workshop, Seoul 2015