SlideShare a Scribd company logo
1 of 21
Download to read offline
1
NeDiMAH workshop:
Editing texts in a digital world: Text encoding and visualisation
Cluj-Napoca, 27.4.2015 to 2.5.2015
Roman Bleier, Trinity College Dublin
Email: bleierr@tcd.ie
What is a markup
language and
Introducing the oXygen
environment
2
Often used example scriptura continua – white
space and punctuation as markup
What is the use of a markup
language?
Spring and Fall (1880) by Gerard
Manley Hopkins (taken from wikipedia,
s.v. Scriptio_continua)
3
● For computers plain text is just a series of
whitespace and characters
● We humans understand the following line as
address information. What does a computer
understand?
David G. Curtin Esq.R.D.C Stagmount House Rockchapel
Co. Cork Ireland
Computers do not understand texts
in the same way as humans do
4
● Markup languages (ML) are not programming
languages
● Tags or elements are used to add information to
content, e.g. HTML to structure text, images, etc.
on a webpage
● These tags or elements have to be interpreted
by processing software (e.g. web browser)
What is a markup language?
5
● A ML must specify how markup is to be
distinguished from text/content
● Examples:
● HTML: <h1>This is a heading</h1>
● LaTeX: begin{document} Text end{document}
● A ML must specify what markup is allowed and
what is required (e.g. XML root element is
required for XML documents)
What is a markup language?
6
● Procedural markup: defines what processing is
to be carried out at particular points in a
document
● Descriptive or semantic markup: describes the
content
Different types of markup
Example based on J. Flanders, Descriptive Markup (2007).
Procedural markup says: "center this text"
Descriptive markup says "just FYI, this text is a
(centered) heading"
7Letters of 1916, letter envelop 1590 (L1916_1590)
8
HTML encoding of the address information
<div>
<p>David G. Curtin Esq.R.D.C,</p>
<p>Stagmount House.</p>
<p>Rockchapel.</p>
<p>Co. Cork.</p>
</div>
HTML elements do not
add meaning to the
text, proceedureal
markup
9
Semantic encoding of
address information with XML
<div facs="#L1916_1590_img_4">
<ab>
<address>
<addrLine>David G. Curtin Esq.R.D.C,</addrLine>
<addrLine>Stagmount House.</addrLine>
<addrLine>Rockchapel.</addrLine>
<addrLine>Co. Cork.</addrLine>
</address>
</ab>
</div>
<div facs="#L1916_1590_img_4">
<ab>
<address>
<persName ref="#P11">David G. Curtin
<roleName type="title">Esq.R.D.C</roleName>
</persName>
<street>Stagmount House</street>
<settlement>Rockchapel</settlement>
<region>Co. Cork</region>
</address>
</ab>
</div>
10
● Word processing software (Microsoft Word,
Libre Office, LaTeX)
● Web authoring (HTML)
● For describing graphics (SVG)
● Storage, description and exchange of metadata
(Dublin-Core, RDF, MARCXML)
● Modelling of humanities data and digital scholary
editing (TEI, EpiDoc, MENOTA)
Applications of markup languages
11
oXygen XML editor: initial setup
● oXygen is a XML editor and development
environment with a lot of support for TEI
● Support for XML development
(XSLT, XPath, XQuery, XSL-FO, etc.)
● supports many other languages
(HTML, CSS, JavaScript, etc.)
● Download and install the trial version of oXygen:
http://www.oxygenxml.com/download.html
12
oXygen XML editor: first project
● Create a project folder somewhere on your
harddrive
● Name it 'TEI workshop April 2015'
● In the project folder create the folder 'Intro to
XML'
● Start oXygen and create a new project, name it
'TEIworkshopApril2015'
● The following slides show step-by-step how this
is done.
13
oXygen XML editor: open Project panel
14
oXygen XML editor: create new project
15
oXygen XML editor: create new project
In the pop-up window 'New Project', enter the name of your project and select a
place where you would like to save the project file.
Project folder name:
TEI workshop April 2015
In project folder create
another folder:
Intro to XML
Give your project file a file
name: e.g.
TEIworkshopApril2015.xpr
.xpr is the extension for
oXygen project files
16
oXygen XML editor: add a folder
Add Folder/Add Files:
You can add individual folder or
files to your project
If a folder is added the folder
content is also added to your
project
Add the folder 'Intro to XML'
17
oXygen XML editor: create first XML file
In the pop-up window choose 'XML
Document' and give the document the
file name: helloWorld.xml
Press the button 'Create'
18
oXygen XML editor: create first XML file
19
oXygen XML editor: validate XML file
If you validate your XML file you
should get an error message:
„There is no schema or DTD
associated with document...“
„A well-formed document requires a
root element.“
20
oXygen XML editor: add a DTD
Add a simple DOCTYPE
declaration:
<!DOCTYPE text [
<!ELEMENT text (#PCDATA)>
]>
If you validate your document now
you should still get the Error:
„A well-formed document requires a
root element.“
21
oXygen XML editor: add a root element
We will learn this afternoon what a
root element is. However, if you
add the following line of XML code
your document should be valid:
<text>Hello World!</text>
Try to validate your document
again. There should be no more
error messages and a 'green lights'
on bottom an right side will show
you that the XML document is
indeed valid XML.
Valid XML

More Related Content

What's hot

What's hot (15)

“Library 2.0: Let's get connected!”
“Library 2.0: Let's get connected!”“Library 2.0: Let's get connected!”
“Library 2.0: Let's get connected!”
 
Xml
XmlXml
Xml
 
Xml dtd
Xml dtdXml dtd
Xml dtd
 
XML Introduction
XML IntroductionXML Introduction
XML Introduction
 
DTD
DTDDTD
DTD
 
Xml
XmlXml
Xml
 
SQL Server - Querying and Managing XML Data
SQL Server - Querying and Managing XML DataSQL Server - Querying and Managing XML Data
SQL Server - Querying and Managing XML Data
 
Dirk Goldhahn: Introduction to the German Wortschatz Project
Dirk Goldhahn: Introduction to the German Wortschatz ProjectDirk Goldhahn: Introduction to the German Wortschatz Project
Dirk Goldhahn: Introduction to the German Wortschatz Project
 
Html tag
Html tagHtml tag
Html tag
 
Validating the OntoLex-lemon lexicography module with K Dictionaries’ multili...
Validating the OntoLex-lemon lexicography module with K Dictionaries’ multili...Validating the OntoLex-lemon lexicography module with K Dictionaries’ multili...
Validating the OntoLex-lemon lexicography module with K Dictionaries’ multili...
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Xml2
Xml2Xml2
Xml2
 
Web Information Systems XML
Web Information Systems XMLWeb Information Systems XML
Web Information Systems XML
 
Basic xml syntax
Basic xml syntaxBasic xml syntax
Basic xml syntax
 
01 Xml Begin
01 Xml Begin01 Xml Begin
01 Xml Begin
 

Viewers also liked

Launch Event FrameMaker 10 Overview
Launch Event FrameMaker 10 OverviewLaunch Event FrameMaker 10 Overview
Launch Event FrameMaker 10 Overviewtmaldous
 
Adobe FrameMaker Workshop TC Camp 2015
Adobe FrameMaker Workshop TC Camp 2015Adobe FrameMaker Workshop TC Camp 2015
Adobe FrameMaker Workshop TC Camp 2015Maxwell Hoffmann
 
FrameMaker and the DITA Open Toolkit
FrameMaker and the DITA Open ToolkitFrameMaker and the DITA Open Toolkit
FrameMaker and the DITA Open ToolkitContrext Solutions
 
XML - EXtensible Markup Language
XML - EXtensible Markup LanguageXML - EXtensible Markup Language
XML - EXtensible Markup LanguageReem Alattas
 
Adobe DITA World: Templates, DITA, and FrameMaker 2015
Adobe DITA World: Templates, DITA, and FrameMaker 2015Adobe DITA World: Templates, DITA, and FrameMaker 2015
Adobe DITA World: Templates, DITA, and FrameMaker 2015Publishing Smarter
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5Nir Elbaz
 
Introduction to structured authoring
Introduction to structured authoringIntroduction to structured authoring
Introduction to structured authoringRob Hanna, ECMs
 

Viewers also liked (8)

Launch Event FrameMaker 10 Overview
Launch Event FrameMaker 10 OverviewLaunch Event FrameMaker 10 Overview
Launch Event FrameMaker 10 Overview
 
Adobe FrameMaker Workshop TC Camp 2015
Adobe FrameMaker Workshop TC Camp 2015Adobe FrameMaker Workshop TC Camp 2015
Adobe FrameMaker Workshop TC Camp 2015
 
FrameMaker and the DITA Open Toolkit
FrameMaker and the DITA Open ToolkitFrameMaker and the DITA Open Toolkit
FrameMaker and the DITA Open Toolkit
 
FrameMaker and numbering
FrameMaker and numberingFrameMaker and numbering
FrameMaker and numbering
 
XML - EXtensible Markup Language
XML - EXtensible Markup LanguageXML - EXtensible Markup Language
XML - EXtensible Markup Language
 
Adobe DITA World: Templates, DITA, and FrameMaker 2015
Adobe DITA World: Templates, DITA, and FrameMaker 2015Adobe DITA World: Templates, DITA, and FrameMaker 2015
Adobe DITA World: Templates, DITA, and FrameMaker 2015
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
 
Introduction to structured authoring
Introduction to structured authoringIntroduction to structured authoring
Introduction to structured authoring
 

Similar to Introduction to markup language and oXygen XML editor

Decoding and developing the online finding aid
Decoding and developing the online finding aidDecoding and developing the online finding aid
Decoding and developing the online finding aidkgerber
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Modelchomas kandar
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Modelchomas kandar
 
WP Solutions- Adi.pdf
WP Solutions- Adi.pdfWP Solutions- Adi.pdf
WP Solutions- Adi.pdfAdiseshaK
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to JavascriptSeble Nigussie
 
sphinx-i18n — The True Story
sphinx-i18n — The True Storysphinx-i18n — The True Story
sphinx-i18n — The True StoryRobert Lehmann
 
HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project Ankit Gupta
 
Domain specific languages in eclipse with Xtext (Zeus, UGent)
Domain specific languages in eclipse with Xtext (Zeus, UGent)Domain specific languages in eclipse with Xtext (Zeus, UGent)
Domain specific languages in eclipse with Xtext (Zeus, UGent)Sigasi
 
Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )
Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )
Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )ShubhamAthawane
 
Make the move from basic documents to structured documents
Make the move from basic documents to structured documentsMake the move from basic documents to structured documents
Make the move from basic documents to structured documentsPublishing Smarter
 
epicenter2010 Open Xml
epicenter2010   Open Xmlepicenter2010   Open Xml
epicenter2010 Open XmlCraig Murphy
 
"Technical Challenges behind Visual IDE for React Components" Tetiana Mandziuk
"Technical Challenges behind Visual IDE for React Components" Tetiana Mandziuk"Technical Challenges behind Visual IDE for React Components" Tetiana Mandziuk
"Technical Challenges behind Visual IDE for React Components" Tetiana MandziukFwdays
 

Similar to Introduction to markup language and oXygen XML editor (20)

HTML Basics.pdf
HTML Basics.pdfHTML Basics.pdf
HTML Basics.pdf
 
Decoding and developing the online finding aid
Decoding and developing the online finding aidDecoding and developing the online finding aid
Decoding and developing the online finding aid
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
WP Solutions- Adi.pdf
WP Solutions- Adi.pdfWP Solutions- Adi.pdf
WP Solutions- Adi.pdf
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
sphinx-i18n — The True Story
sphinx-i18n — The True Storysphinx-i18n — The True Story
sphinx-i18n — The True Story
 
Xml
XmlXml
Xml
 
Words in Code
Words in CodeWords in Code
Words in Code
 
HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project
 
Domain specific languages in eclipse with Xtext (Zeus, UGent)
Domain specific languages in eclipse with Xtext (Zeus, UGent)Domain specific languages in eclipse with Xtext (Zeus, UGent)
Domain specific languages in eclipse with Xtext (Zeus, UGent)
 
PRESENTATION WORK ON COMPUTER APPLICATION IN PHARMACY.pdf
PRESENTATION WORK ON COMPUTER APPLICATION IN PHARMACY.pdfPRESENTATION WORK ON COMPUTER APPLICATION IN PHARMACY.pdf
PRESENTATION WORK ON COMPUTER APPLICATION IN PHARMACY.pdf
 
Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )
Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )
Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )
 
XML-Unit 1.ppt
XML-Unit 1.pptXML-Unit 1.ppt
XML-Unit 1.ppt
 
Make the move from basic documents to structured documents
Make the move from basic documents to structured documentsMake the move from basic documents to structured documents
Make the move from basic documents to structured documents
 
Markup For Dummies (Russ Ward)
Markup For Dummies (Russ Ward)Markup For Dummies (Russ Ward)
Markup For Dummies (Russ Ward)
 
epicenter2010 Open Xml
epicenter2010   Open Xmlepicenter2010   Open Xml
epicenter2010 Open Xml
 
Xml Lecture Notes
Xml Lecture NotesXml Lecture Notes
Xml Lecture Notes
 
"Technical Challenges behind Visual IDE for React Components" Tetiana Mandziuk
"Technical Challenges behind Visual IDE for React Components" Tetiana Mandziuk"Technical Challenges behind Visual IDE for React Components" Tetiana Mandziuk
"Technical Challenges behind Visual IDE for React Components" Tetiana Mandziuk
 

Recently uploaded

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 

Recently uploaded (20)

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 

Introduction to markup language and oXygen XML editor

  • 1. 1 NeDiMAH workshop: Editing texts in a digital world: Text encoding and visualisation Cluj-Napoca, 27.4.2015 to 2.5.2015 Roman Bleier, Trinity College Dublin Email: bleierr@tcd.ie What is a markup language and Introducing the oXygen environment
  • 2. 2 Often used example scriptura continua – white space and punctuation as markup What is the use of a markup language? Spring and Fall (1880) by Gerard Manley Hopkins (taken from wikipedia, s.v. Scriptio_continua)
  • 3. 3 ● For computers plain text is just a series of whitespace and characters ● We humans understand the following line as address information. What does a computer understand? David G. Curtin Esq.R.D.C Stagmount House Rockchapel Co. Cork Ireland Computers do not understand texts in the same way as humans do
  • 4. 4 ● Markup languages (ML) are not programming languages ● Tags or elements are used to add information to content, e.g. HTML to structure text, images, etc. on a webpage ● These tags or elements have to be interpreted by processing software (e.g. web browser) What is a markup language?
  • 5. 5 ● A ML must specify how markup is to be distinguished from text/content ● Examples: ● HTML: <h1>This is a heading</h1> ● LaTeX: begin{document} Text end{document} ● A ML must specify what markup is allowed and what is required (e.g. XML root element is required for XML documents) What is a markup language?
  • 6. 6 ● Procedural markup: defines what processing is to be carried out at particular points in a document ● Descriptive or semantic markup: describes the content Different types of markup Example based on J. Flanders, Descriptive Markup (2007). Procedural markup says: "center this text" Descriptive markup says "just FYI, this text is a (centered) heading"
  • 7. 7Letters of 1916, letter envelop 1590 (L1916_1590)
  • 8. 8 HTML encoding of the address information <div> <p>David G. Curtin Esq.R.D.C,</p> <p>Stagmount House.</p> <p>Rockchapel.</p> <p>Co. Cork.</p> </div> HTML elements do not add meaning to the text, proceedureal markup
  • 9. 9 Semantic encoding of address information with XML <div facs="#L1916_1590_img_4"> <ab> <address> <addrLine>David G. Curtin Esq.R.D.C,</addrLine> <addrLine>Stagmount House.</addrLine> <addrLine>Rockchapel.</addrLine> <addrLine>Co. Cork.</addrLine> </address> </ab> </div> <div facs="#L1916_1590_img_4"> <ab> <address> <persName ref="#P11">David G. Curtin <roleName type="title">Esq.R.D.C</roleName> </persName> <street>Stagmount House</street> <settlement>Rockchapel</settlement> <region>Co. Cork</region> </address> </ab> </div>
  • 10. 10 ● Word processing software (Microsoft Word, Libre Office, LaTeX) ● Web authoring (HTML) ● For describing graphics (SVG) ● Storage, description and exchange of metadata (Dublin-Core, RDF, MARCXML) ● Modelling of humanities data and digital scholary editing (TEI, EpiDoc, MENOTA) Applications of markup languages
  • 11. 11 oXygen XML editor: initial setup ● oXygen is a XML editor and development environment with a lot of support for TEI ● Support for XML development (XSLT, XPath, XQuery, XSL-FO, etc.) ● supports many other languages (HTML, CSS, JavaScript, etc.) ● Download and install the trial version of oXygen: http://www.oxygenxml.com/download.html
  • 12. 12 oXygen XML editor: first project ● Create a project folder somewhere on your harddrive ● Name it 'TEI workshop April 2015' ● In the project folder create the folder 'Intro to XML' ● Start oXygen and create a new project, name it 'TEIworkshopApril2015' ● The following slides show step-by-step how this is done.
  • 13. 13 oXygen XML editor: open Project panel
  • 14. 14 oXygen XML editor: create new project
  • 15. 15 oXygen XML editor: create new project In the pop-up window 'New Project', enter the name of your project and select a place where you would like to save the project file. Project folder name: TEI workshop April 2015 In project folder create another folder: Intro to XML Give your project file a file name: e.g. TEIworkshopApril2015.xpr .xpr is the extension for oXygen project files
  • 16. 16 oXygen XML editor: add a folder Add Folder/Add Files: You can add individual folder or files to your project If a folder is added the folder content is also added to your project Add the folder 'Intro to XML'
  • 17. 17 oXygen XML editor: create first XML file In the pop-up window choose 'XML Document' and give the document the file name: helloWorld.xml Press the button 'Create'
  • 18. 18 oXygen XML editor: create first XML file
  • 19. 19 oXygen XML editor: validate XML file If you validate your XML file you should get an error message: „There is no schema or DTD associated with document...“ „A well-formed document requires a root element.“
  • 20. 20 oXygen XML editor: add a DTD Add a simple DOCTYPE declaration: <!DOCTYPE text [ <!ELEMENT text (#PCDATA)> ]> If you validate your document now you should still get the Error: „A well-formed document requires a root element.“
  • 21. 21 oXygen XML editor: add a root element We will learn this afternoon what a root element is. However, if you add the following line of XML code your document should be valid: <text>Hello World!</text> Try to validate your document again. There should be no more error messages and a 'green lights' on bottom an right side will show you that the XML document is indeed valid XML. Valid XML