session 1: introduction to markup, xml, and xml editing...

137
Session 1: Introduction to Markup, XML, and XML Editing Options Overview of all sessions Markup XML Editing Options Session 1: Introduction to Markup, XML, and XML Editing Options

Upload: others

Post on 17-Aug-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Session 1: Introduction to Markup, XML,and XML Editing Options

Page 2: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Overview of all sessions

Session 1: Textual markup, XML, and XML EditorsSession 2: Intro to TEI XML, Core elements and TEI

HeaderSession 3: Markup concerns for medievalists and textual

scholarsSession 4: People, Places, Names and Dates; Facsimile

markupSession 5: Customising TEI: Schemas, DTDs, TEI ODD

and RomaSession 6: Transforming, Querying, and Publishing XML;

Discussion.

Page 3: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Aims for entire workshop

1 Examine the concept of markup and XML encoding2 Provide hands-on experience in using XML markup3 Introduce the TEI, its assumptions, and how it is

organised4 Survey TEI recommendations that may be of interest5 Demonstrate the benefits of project-specific

customisation of the TEI6 Survey the ways in which people transform, query, and

publish XML7 Provide a brief overview so that you can explore in

more depth later8 Give a chance for questions and discussion of

participants concerns

Page 4: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Workshop Acknowledgements

The slides, and ideas, in this workshop borrow heavily fromprevious presentations/workshops by:

Lou BurnardSebastian RahtzDot Porter

And the slides from this workshop are licensed for re-use byothers should they desire it.

Page 5: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Markup

In order to talk about texts, markup and encoding of texts,we need to understand what we mean by these basicconcepts. When we talk about text encoding, what do wemean by a text? What is in a text and what assumptions dowe make in reading them?

Page 6: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What’s in a text?

Page 7: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What’s in a text (2)?

Page 8: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What’s in a text (3)?

Page 9: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The ontology of text

Where is the text?in the shape of letters and their layout?in the original from which this copy derives?in the stories we read into it? or in its author’sintentions?

A "text" is an abstraction, created by or for a community ofreaders. Markup encodes and makes concrete suchabstractions.

Page 10: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The ontology of text

Where is the text?in the shape of letters and their layout?in the original from which this copy derives?in the stories we read into it? or in its author’sintentions?

A "text" is an abstraction, created by or for a community ofreaders. Markup encodes and makes concrete suchabstractions.

Page 11: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The ontology of text

Where is the text?in the shape of letters and their layout?in the original from which this copy derives?in the stories we read into it? or in its author’sintentions?

A "text" is an abstraction, created by or for a community ofreaders. Markup encodes and makes concrete suchabstractions.

Page 12: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Encoding of texts

Texts are more than sequences of encoded glyphsThey have structure and contentThey also have multiple readings

Encoding, or markup, is a way of making these thingsexplicitOnly that which is explicit can be reliably processed

Page 13: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Encoding of texts

Texts are more than sequences of encoded glyphsThey have structure and contentThey also have multiple readings

Encoding, or markup, is a way of making these thingsexplicitOnly that which is explicit can be reliably processed

Page 14: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Encoding of texts

Texts are more than sequences of encoded glyphsThey have structure and contentThey also have multiple readings

Encoding, or markup, is a way of making these thingsexplicitOnly that which is explicit can be reliably processed

Page 15: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Encoding of texts

Texts are more than sequences of encoded glyphsThey have structure and contentThey also have multiple readings

Encoding, or markup, is a way of making these thingsexplicitOnly that which is explicit can be reliably processed

Page 16: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Styles of markup

In the beginning there was procedural markupRED INK ON; print balance; RED INK OFF

which being generalised became descriptive markup<balance type=’overdrawn’>some numbers</balance>also known as encoding or annotation

descriptive markup allows for easier re-use of data

Page 17: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Styles of markup

In the beginning there was procedural markupRED INK ON; print balance; RED INK OFF

which being generalised became descriptive markup<balance type=’overdrawn’>some numbers</balance>also known as encoding or annotation

descriptive markup allows for easier re-use of data

Page 18: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Styles of markup

In the beginning there was procedural markupRED INK ON; print balance; RED INK OFF

which being generalised became descriptive markup<balance type=’overdrawn’>some numbers</balance>also known as encoding or annotation

descriptive markup allows for easier re-use of data

Page 19: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Some more definitions

Markup makes explicit the distinctions we want to makewhen processing a string of bytesMarkup is a way of naming and characterizing the partsof a text in a formalized wayIt’s (usually) more useful to markup what we thinkthings are than what they look like

Page 20: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Some more definitions

Markup makes explicit the distinctions we want to makewhen processing a string of bytesMarkup is a way of naming and characterizing the partsof a text in a formalized wayIt’s (usually) more useful to markup what we thinkthings are than what they look like

Page 21: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Some more definitions

Markup makes explicit the distinctions we want to makewhen processing a string of bytesMarkup is a way of naming and characterizing the partsof a text in a formalized wayIt’s (usually) more useful to markup what we thinkthings are than what they look like

Page 22: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What’s the point of markup?

To make explicit (to a machine) what is implicit (to aperson)To add value by supplying multiple annotationsTo facilitate re-use of the same material

in different formatsin different contextsby different users

Page 23: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What’s the point of markup?

To make explicit (to a machine) what is implicit (to aperson)To add value by supplying multiple annotationsTo facilitate re-use of the same material

in different formatsin different contextsby different users

Page 24: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What’s the point of markup?

To make explicit (to a machine) what is implicit (to aperson)To add value by supplying multiple annotationsTo facilitate re-use of the same material

in different formatsin different contextsby different users

Page 25: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What’s the point of markup?

To make explicit (to a machine) what is implicit (to aperson)To add value by supplying multiple annotationsTo facilitate re-use of the same material

in different formatsin different contextsby different users

Page 26: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What’s the point of markup?

To make explicit (to a machine) what is implicit (to aperson)To add value by supplying multiple annotationsTo facilitate re-use of the same material

in different formatsin different contextsby different users

Page 27: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Separation of form and content

Presentational markup cares more about fonts andlayout than meaningDescriptive markup says what things are, and leavesthe rendition of them for a separate stepSeparating the form of something from its contentmakes its re-use more flexibleIt also allows easy changes of presentation across alarge number of documents

Page 28: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Separation of form and content

Presentational markup cares more about fonts andlayout than meaningDescriptive markup says what things are, and leavesthe rendition of them for a separate stepSeparating the form of something from its contentmakes its re-use more flexibleIt also allows easy changes of presentation across alarge number of documents

Page 29: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Separation of form and content

Presentational markup cares more about fonts andlayout than meaningDescriptive markup says what things are, and leavesthe rendition of them for a separate stepSeparating the form of something from its contentmakes its re-use more flexibleIt also allows easy changes of presentation across alarge number of documents

Page 30: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Separation of form and content

Presentational markup cares more about fonts andlayout than meaningDescriptive markup says what things are, and leavesthe rendition of them for a separate stepSeparating the form of something from its contentmakes its re-use more flexibleIt also allows easy changes of presentation across alarge number of documents

Page 31: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Markup as a scholarly activity

The application of markup to a document can be anintellectual activityIn deciding what markup to apply, and how thisrepresents the original, one is undertaking the task ofan editorThere is (almost) no such thing as neutral markup – allof it involves interpretationMarkup can assist in answering research questions,and the deciding what markup is needed to enablesuch questions to be answered can be a researchactivity in itselfGood textual encoding is never as easy or quick aspeople would believeDetailed document analysis is needed before encodingfor the resulting markup to be useful

Page 32: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Markup as a scholarly activity

The application of markup to a document can be anintellectual activityIn deciding what markup to apply, and how thisrepresents the original, one is undertaking the task ofan editorThere is (almost) no such thing as neutral markup – allof it involves interpretationMarkup can assist in answering research questions,and the deciding what markup is needed to enablesuch questions to be answered can be a researchactivity in itselfGood textual encoding is never as easy or quick aspeople would believeDetailed document analysis is needed before encodingfor the resulting markup to be useful

Page 33: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Markup as a scholarly activity

The application of markup to a document can be anintellectual activityIn deciding what markup to apply, and how thisrepresents the original, one is undertaking the task ofan editorThere is (almost) no such thing as neutral markup – allof it involves interpretationMarkup can assist in answering research questions,and the deciding what markup is needed to enablesuch questions to be answered can be a researchactivity in itselfGood textual encoding is never as easy or quick aspeople would believeDetailed document analysis is needed before encodingfor the resulting markup to be useful

Page 34: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Markup as a scholarly activity

The application of markup to a document can be anintellectual activityIn deciding what markup to apply, and how thisrepresents the original, one is undertaking the task ofan editorThere is (almost) no such thing as neutral markup – allof it involves interpretationMarkup can assist in answering research questions,and the deciding what markup is needed to enablesuch questions to be answered can be a researchactivity in itselfGood textual encoding is never as easy or quick aspeople would believeDetailed document analysis is needed before encodingfor the resulting markup to be useful

Page 35: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Markup as a scholarly activity

The application of markup to a document can be anintellectual activityIn deciding what markup to apply, and how thisrepresents the original, one is undertaking the task ofan editorThere is (almost) no such thing as neutral markup – allof it involves interpretationMarkup can assist in answering research questions,and the deciding what markup is needed to enablesuch questions to be answered can be a researchactivity in itselfGood textual encoding is never as easy or quick aspeople would believeDetailed document analysis is needed before encodingfor the resulting markup to be useful

Page 36: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Markup as a scholarly activity

The application of markup to a document can be anintellectual activityIn deciding what markup to apply, and how thisrepresents the original, one is undertaking the task ofan editorThere is (almost) no such thing as neutral markup – allof it involves interpretationMarkup can assist in answering research questions,and the deciding what markup is needed to enablesuch questions to be answered can be a researchactivity in itselfGood textual encoding is never as easy or quick aspeople would believeDetailed document analysis is needed before encodingfor the resulting markup to be useful

Page 37: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What does markup capture?

Compare

<hi rend="dropcap">H</hi>&amp;amp;WYN;ÆT WE GARDE<lb/>na in gear-dagum þeod-cyninga<lb/>þrym gefrunon, hu ða æþelingas<lb/>ellen fremedon. oft scyld scefing sceaþe<add>na</add><lb/>þreatum, moneg<expan>um</expan> mægþummeodo-setl<add>a</add><lb/>of<damage desc="blot"/>teah egsode<sic>eorl</sic> syððan ærest wear<add>þ</add><lb/>fea sceaft funden...

and

<lg><l>Hwæt! we Gar-dena in gear-dagum</l><l>þeod-cyninga þrym gefrunon,</l><l>hu ða æþelingas ellen fremedon,</l>

</lg><lg><l>Oft Scyld Scefing sceaþena þreatum,</l><l>monegum mægþum meodo-setla ofteah;</l><l>egsode Eorle, syððan ærest wearþ</l><l>feasceaft funden...</l>

</lg>

Page 38: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

A useful mental exercise

Imagine you are going to markup several thousand pages ofcomplex material....

Which features are you going to markup?Why are you choosing to markup this feature?How reliably and consistently can you do this?

Now, imagine your budget has been halved. Repeat theexercise!

Page 39: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Some alphabet soup

SGML Standard Generalized Markup LanguageHTML Hypertext Markup LanguageW3C World Wide Web ConsortiumXML eXtensible Markup LanguageDTD Document Type Definition (or Declaration)CSS Cascading Style SheetXpath XML Path LanguageXSLT eXtensible Stylesheet Language - TransformationsXQuery XML QueryingRELAXNG Regular Expression Language for XML (New Generation)

Oh, and then there’s also TEI, the Text Encoding Initiative

Page 40: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML

Extensible Markup Language (XML) is a simple, veryflexible text format derived from SGML (ISO 8879).Originally designed to meet the challenges of large-scaleelectronic publishing, XML is also playing an increasinglyimportant role in the exchange of a wide variety of data onthe Web and elsewhere.

Page 41: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML: what it is and why you should care

XML is structured data represented as strings of textXML looks like HTML, except that:-

XML is extensibleXML must be well-formedXML can be validated

XML is application-, platform-, and vendor- independentXML empowers the content provider and facilitates dataintegration

Page 42: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML: what it is and why you should care

XML is structured data represented as strings of textXML looks like HTML, except that:-

XML is extensibleXML must be well-formedXML can be validated

XML is application-, platform-, and vendor- independentXML empowers the content provider and facilitates dataintegration

Page 43: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML: what it is and why you should care

XML is structured data represented as strings of textXML looks like HTML, except that:-

XML is extensibleXML must be well-formedXML can be validated

XML is application-, platform-, and vendor- independentXML empowers the content provider and facilitates dataintegration

Page 44: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML: what it is and why you should care

XML is structured data represented as strings of textXML looks like HTML, except that:-

XML is extensibleXML must be well-formedXML can be validated

XML is application-, platform-, and vendor- independentXML empowers the content provider and facilitates dataintegration

Page 45: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML: what it is and why you should care

XML is structured data represented as strings of textXML looks like HTML, except that:-

XML is extensibleXML must be well-formedXML can be validated

XML is application-, platform-, and vendor- independentXML empowers the content provider and facilitates dataintegration

Page 46: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML: what it is and why you should care

XML is structured data represented as strings of textXML looks like HTML, except that:-

XML is extensibleXML must be well-formedXML can be validated

XML is application-, platform-, and vendor- independentXML empowers the content provider and facilitates dataintegration

Page 47: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML terminology

An XML document may contain:-elements, possibly bearing attributesprocessing instructionscommentsentity referencesmarked sections (CDATA, IGNORE, INCLUDE)

An XML document must be well-formed and may be valid

Page 48: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML terminology

An XML document may contain:-elements, possibly bearing attributesprocessing instructionscommentsentity referencesmarked sections (CDATA, IGNORE, INCLUDE)

An XML document must be well-formed and may be valid

Page 49: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML terminology

An XML document may contain:-elements, possibly bearing attributesprocessing instructionscommentsentity referencesmarked sections (CDATA, IGNORE, INCLUDE)

An XML document must be well-formed and may be valid

Page 50: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML terminology

An XML document may contain:-elements, possibly bearing attributesprocessing instructionscommentsentity referencesmarked sections (CDATA, IGNORE, INCLUDE)

An XML document must be well-formed and may be valid

Page 51: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML terminology

An XML document may contain:-elements, possibly bearing attributesprocessing instructionscommentsentity referencesmarked sections (CDATA, IGNORE, INCLUDE)

An XML document must be well-formed and may be valid

Page 52: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML terminology Example

<?xml version="1.0"?><root><element attribute="value"> content </element><!- comment -></root>

Page 53: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The rules of the XML Game

An XML document represents a (kind of) treeIt has a single root and many nodesEach node can be

a subtreea single element (possibly bearing some attributes)a string of character data

Each element has a name or generic identifierAttribute names are predefined for a given element;values can also be constrained

Page 54: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The rules of the XML Game

An XML document represents a (kind of) treeIt has a single root and many nodesEach node can be

a subtreea single element (possibly bearing some attributes)a string of character data

Each element has a name or generic identifierAttribute names are predefined for a given element;values can also be constrained

Page 55: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The rules of the XML Game

An XML document represents a (kind of) treeIt has a single root and many nodesEach node can be

a subtreea single element (possibly bearing some attributes)a string of character data

Each element has a name or generic identifierAttribute names are predefined for a given element;values can also be constrained

Page 56: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The rules of the XML Game

An XML document represents a (kind of) treeIt has a single root and many nodesEach node can be

a subtreea single element (possibly bearing some attributes)a string of character data

Each element has a name or generic identifierAttribute names are predefined for a given element;values can also be constrained

Page 57: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The rules of the XML Game

An XML document represents a (kind of) treeIt has a single root and many nodesEach node can be

a subtreea single element (possibly bearing some attributes)a string of character data

Each element has a name or generic identifierAttribute names are predefined for a given element;values can also be constrained

Page 58: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The rules of the XML Game

An XML document represents a (kind of) treeIt has a single root and many nodesEach node can be

a subtreea single element (possibly bearing some attributes)a string of character data

Each element has a name or generic identifierAttribute names are predefined for a given element;values can also be constrained

Page 59: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The rules of the XML Game

An XML document represents a (kind of) treeIt has a single root and many nodesEach node can be

a subtreea single element (possibly bearing some attributes)a string of character data

Each element has a name or generic identifierAttribute names are predefined for a given element;values can also be constrained

Page 60: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Representing an XML tree

An XML document is encoded as a linear string ofcharactersIt begins with a special processing instructionElement occurrences are marked by start- andend-tagsThe characters < and & are Magic and must always be"escaped" if you want to use them as themselvesComments are delimited by <!- - and - ->CDATA sections are delimited by <![CDATA[ and ]]>Attribute name/value pairs are supplied on the start-tagand may be given in any orderEntity references are delimited by & and ;

Page 61: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Parts of an XML document

<?xml version="1.0"?><greetings xmlns="http://www.example.org/ns/nonTEI"><hello type="sarcastic">hello world!</hello></greetings>

The XML declarationNamespace declarationsThe root element of the document itselfOther elements and contentAttribute and value

Page 62: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Parts of an XML document

<?xml version="1.0"?><greetings xmlns="http://www.example.org/ns/nonTEI"><hello type="sarcastic">hello world!</hello></greetings>

The XML declarationNamespace declarationsThe root element of the document itselfOther elements and contentAttribute and value

Page 63: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Parts of an XML document

<?xml version="1.0"?><greetings xmlns="http://www.example.org/ns/nonTEI"><hello type="sarcastic">hello world!</hello></greetings>

The XML declarationNamespace declarationsThe root element of the document itselfOther elements and contentAttribute and value

Page 64: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Parts of an XML document

<?xml version="1.0"?><greetings xmlns="http://www.example.org/ns/nonTEI"><hello type="sarcastic">hello world!</hello></greetings>

The XML declarationNamespace declarationsThe root element of the document itselfOther elements and contentAttribute and value

Page 65: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Parts of an XML document

<?xml version="1.0"?><greetings xmlns="http://www.example.org/ns/nonTEI"><hello type="sarcastic">hello world!</hello></greetings>

The XML declarationNamespace declarationsThe root element of the document itselfOther elements and contentAttribute and value

Page 66: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The XML declaration

An XML document must begin with an XML declarationwhich does two things:

specifies that this is an XML document, and whichversion of the XML standard it followsspecifies which character encoding the document uses

<?xml version="1.0" ?><?xml version="1.0" encoding="iso-8859-1" ?>The default, and recommended, encoding is UTF-8

Page 67: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Namespace declarations

All TEI documents are declared within the TEI namespace:<TEI xmlns="http://www.tei-c.org/ns/1.0">... </TEI>XML documents can include elements declared in differentname spaces.

a namespace declaration associates a namespaceprefix with an external URI-like identifierthe default namespace may be declared using a xmlns

other name spaces must all use a specially declaredprefix

<TEI xmlns="http://www.tei-c.org/ns/1.0"xmlns:math="http://www.mathml.org"><p>...<math:expr>...</math:expr>...</p>...</TEI>

The xml namespace is used by the TEI for global attributes@xml:id and @xml:lang

Page 68: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

The Doctype Declaration

In DTD world, you may sometimes find an optional"Document Type" declaration:<?xml version="1.0" ?><!DOCTYPE greeting [<!ELEMENT greeting (#PCDATA)>]><greeting>hello world

</greeting>

The DTD is one way of associating the document withits schema (but is not used by W3C or RELAXNG forthis purpose)The DTD subset is used to provide declarationsadditional to those in the schema, for example forexternal filesThe DTD subset may be internal, external, or both

DTDs are now considered old-fashioned – RelaxNGschemas are all the rage!

Page 69: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Chaucer’s Poem to Adam

<?xml version="1.0" encoding="utf-8" ?><div type="poem" xml:id="Cha012"><head><name>Chaucer’s</name> Words Unto

<name>Adam</name>, His Owne Scriveyn</head><lg><l><name>Adam</name> scriveyn, if ever it thee

bifalle</l><l><title>Boece</title> or <title>Troylus</title>

for to wryten newe,</l><l>Under thy long lokkes thou most have the

scalle,</l><cb ed="#Riverside"/><l>But after my makyng thow wryte more trewe;</l><l>So ofte adaye I mot thy werk renewe,</l><l>It to correcte and eke to rubbe and scrape,</l><l>And all is thorugh thy negligence and rape.</l>

</lg><!- I should mark up modern punctuation in this poem.-></div>

Page 70: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Example deconstructed: root node

<?xml version="1.0" encoding="utf-8" ?><div type="poem" xml:id="Chau012"><head><name>Chaucer’s</name> Words Unto

<name>Adam</name>,His Owne Scriveyn</head>

<!- Stuff missing -></div>

Page 71: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Example deconstructed: head

<head><name>Chaucer’s</name> Words Unto <name>Adam</name>,

His Owne Scriveyn</head><!- Stuff missing ->

Page 72: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Example deconstructed: line-group and acouple lines

<lg><l><name>Adam</name> scriveyn, if ever it thee

bifalle</l><l><title>Boece</title> or <title>Troylus</title> for

to wryten newe,</l><!- Stuff missing -></lg>

Page 73: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Example deconstructed: some more lines

<lg><!- Stuff missing -><l>Under thy long lokkes thou most have the

scalle,</l><cb ed="#Riverside"/><l>But after my makyng thow wryte more trewe;</l><l>So ofte adaye I mot thy werk renewe,</l><l>It to correcte and eke to rubbe and scrape,</l><l>And all is thorugh thy negligence and rape.</l>

</lg>

Page 74: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

An XML Tree For Chaucer

Page 75: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML syntax: the small print

What does it mean to be well-formed?1 there is a single root node containing the whole of an

XML document2 each subtree is properly nested within the root node3 names are always case sensitive4 start-tags and end-tags are always mandatory (except

that a combined start-and-end tag may be used forempty nodes)

5 attribute values are always quoted

Note: You can be valid in addition to being well-formed. Thismeans you obey the rules of a specified schema, such asthe TEI.

Page 76: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 77: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 78: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 79: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 80: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 81: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 82: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 83: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 84: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 85: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 86: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Test your XML knowledge

Which are correct?<seg>some text</seg><seg><foo>some</foo><bar>text</bar></seg><seg><foo>some <bar></foo>text</bar></seg><seg type="text">some text</seg><seg type=’text’>some text</seg><seg type=text>some text</seg><seg type = "text">some text</seg><seg type="text">some text<seg/><seg type="text">some text<gap/></seg><seg type="text">some text< /seg><seg type="text">some text</Seg>

Page 87: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

XML is an international standard

XML requires use of ISO 10646 (also known asUnicode)

a 31 bit character repertoire including most humanwriting systemsencoded as UTF8 or UTF16

other encodings may be specified at the document levellanguage may be specified at the element level using@xml:lang

The @xml:id attribute is another W3C-defined attribute.

Page 88: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Editing Options

This section provides a brief overview of technology forediting in XML, especially for TEI XML users, and issuesrelated to that in the area of data capture and editing.

Page 89: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Summary

How does a TEI user do the following?Data captureEditing

Page 90: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Summary

How does a TEI user do the following?Data captureEditing

Page 91: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What tools do we need?

Appropriately expressive vocabularies (eg TEI XML)Syntax-checking document creation tools (ie editors)Document transformation toolsDocument delivery toolsDocument storage and management toolsProgramming interfacesSpecialized applications

Page 92: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What tools do we need?

Appropriately expressive vocabularies (eg TEI XML)Syntax-checking document creation tools (ie editors)Document transformation toolsDocument delivery toolsDocument storage and management toolsProgramming interfacesSpecialized applications

Page 93: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What tools do we need?

Appropriately expressive vocabularies (eg TEI XML)Syntax-checking document creation tools (ie editors)Document transformation toolsDocument delivery toolsDocument storage and management toolsProgramming interfacesSpecialized applications

Page 94: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What tools do we need?

Appropriately expressive vocabularies (eg TEI XML)Syntax-checking document creation tools (ie editors)Document transformation toolsDocument delivery toolsDocument storage and management toolsProgramming interfacesSpecialized applications

Page 95: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What tools do we need?

Appropriately expressive vocabularies (eg TEI XML)Syntax-checking document creation tools (ie editors)Document transformation toolsDocument delivery toolsDocument storage and management toolsProgramming interfacesSpecialized applications

Page 96: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What tools do we need?

Appropriately expressive vocabularies (eg TEI XML)Syntax-checking document creation tools (ie editors)Document transformation toolsDocument delivery toolsDocument storage and management toolsProgramming interfacesSpecialized applications

Page 97: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What tools do we need?

Appropriately expressive vocabularies (eg TEI XML)Syntax-checking document creation tools (ie editors)Document transformation toolsDocument delivery toolsDocument storage and management toolsProgramming interfacesSpecialized applications

Page 98: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Two stages to get a TEI text

capture the textcreate the markup

Often they occur simultaneously; but often not.Note that the markup does not necessarily all have to be inthe same file.

Page 99: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Two stages to get a TEI text

capture the textcreate the markup

Often they occur simultaneously; but often not.Note that the markup does not necessarily all have to be inthe same file.

Page 100: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Categories of creation tools

scanning/OCRdata-entry vendorssoftware to add tagging automaticallyeditors

followed byvalidators, well-formedness checkersproofing aids, data integrity checkers

Page 101: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Categories of creation tools

scanning/OCRdata-entry vendorssoftware to add tagging automaticallyeditors

followed byvalidators, well-formedness checkersproofing aids, data integrity checkers

Page 102: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Categories of creation tools

scanning/OCRdata-entry vendorssoftware to add tagging automaticallyeditors

followed byvalidators, well-formedness checkersproofing aids, data integrity checkers

Page 103: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Categories of creation tools

scanning/OCRdata-entry vendorssoftware to add tagging automaticallyeditors

followed byvalidators, well-formedness checkersproofing aids, data integrity checkers

Page 104: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Categories of creation tools

scanning/OCRdata-entry vendorssoftware to add tagging automaticallyeditors

followed byvalidators, well-formedness checkersproofing aids, data integrity checkers

Page 105: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

OCR/Data Entry

Scanning and OCR software generally produce onlyminimal HTML or Word (e.g., recognizing paragraphbreaks, font changes etc).Data-entry vendors in theory would insert whatevermarkup you wanted, but at a price. They generallyprefer HTML or TEI Lite or some such well-known DTD.TEI is creating a standard slimed-down vocabulary forinitial encoding that may be useful in mass-digitisationprojects called ’TEI tite’.

Page 106: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

OCR/Data Entry

Scanning and OCR software generally produce onlyminimal HTML or Word (e.g., recognizing paragraphbreaks, font changes etc).Data-entry vendors in theory would insert whatevermarkup you wanted, but at a price. They generallyprefer HTML or TEI Lite or some such well-known DTD.TEI is creating a standard slimed-down vocabulary forinitial encoding that may be useful in mass-digitisationprojects called ’TEI tite’.

Page 107: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

OCR/Data Entry

Scanning and OCR software generally produce onlyminimal HTML or Word (e.g., recognizing paragraphbreaks, font changes etc).Data-entry vendors in theory would insert whatevermarkup you wanted, but at a price. They generallyprefer HTML or TEI Lite or some such well-known DTD.TEI is creating a standard slimed-down vocabulary forinitial encoding that may be useful in mass-digitisationprojects called ’TEI tite’.

Page 108: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Editor types

Editing tools cover a wide spectrum:Basic text editorsGeneral programmers’ editorsXML-aware programmers’ editorsXML-specific editorsWord-processors which can export XMLData-entry formsImage-specific editors

it is likely that people in different roles need different tools.

Page 109: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Editor types

Editing tools cover a wide spectrum:Basic text editorsGeneral programmers’ editorsXML-aware programmers’ editorsXML-specific editorsWord-processors which can export XMLData-entry formsImage-specific editors

it is likely that people in different roles need different tools.

Page 110: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Editor types

Editing tools cover a wide spectrum:Basic text editorsGeneral programmers’ editorsXML-aware programmers’ editorsXML-specific editorsWord-processors which can export XMLData-entry formsImage-specific editors

it is likely that people in different roles need different tools.

Page 111: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Editor types

Editing tools cover a wide spectrum:Basic text editorsGeneral programmers’ editorsXML-aware programmers’ editorsXML-specific editorsWord-processors which can export XMLData-entry formsImage-specific editors

it is likely that people in different roles need different tools.

Page 112: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Editor types

Editing tools cover a wide spectrum:Basic text editorsGeneral programmers’ editorsXML-aware programmers’ editorsXML-specific editorsWord-processors which can export XMLData-entry formsImage-specific editors

it is likely that people in different roles need different tools.

Page 113: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Editor types

Editing tools cover a wide spectrum:Basic text editorsGeneral programmers’ editorsXML-aware programmers’ editorsXML-specific editorsWord-processors which can export XMLData-entry formsImage-specific editors

it is likely that people in different roles need different tools.

Page 114: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Editor types

Editing tools cover a wide spectrum:Basic text editorsGeneral programmers’ editorsXML-aware programmers’ editorsXML-specific editorsWord-processors which can export XMLData-entry formsImage-specific editors

it is likely that people in different roles need different tools.

Page 115: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Things to look for in specialist XML editors

schema-awareconstraining element entryIDE featurescustomizablevalidation, preferably continualMultiple display views (as tree, with tags, formatted etc)folding structurescontext-sensitive help

For XML editing, Emacs, oXygen, jEdit, XMetaL, XMLSpy,Stylus Studio, Arbortext Adept are all worth a look.For image editing, try University of Victoria Image MarkupTool or Edition Production and Presentation Technology(EPPT).

Page 116: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Things to look for in specialist XML editors

schema-awareconstraining element entryIDE featurescustomizablevalidation, preferably continualMultiple display views (as tree, with tags, formatted etc)folding structurescontext-sensitive help

For XML editing, Emacs, oXygen, jEdit, XMetaL, XMLSpy,Stylus Studio, Arbortext Adept are all worth a look.For image editing, try University of Victoria Image MarkupTool or Edition Production and Presentation Technology(EPPT).

Page 117: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Things to look for in specialist XML editors

schema-awareconstraining element entryIDE featurescustomizablevalidation, preferably continualMultiple display views (as tree, with tags, formatted etc)folding structurescontext-sensitive help

For XML editing, Emacs, oXygen, jEdit, XMetaL, XMLSpy,Stylus Studio, Arbortext Adept are all worth a look.For image editing, try University of Victoria Image MarkupTool or Edition Production and Presentation Technology(EPPT).

Page 118: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Things to look for in specialist XML editors

schema-awareconstraining element entryIDE featurescustomizablevalidation, preferably continualMultiple display views (as tree, with tags, formatted etc)folding structurescontext-sensitive help

For XML editing, Emacs, oXygen, jEdit, XMetaL, XMLSpy,Stylus Studio, Arbortext Adept are all worth a look.For image editing, try University of Victoria Image MarkupTool or Edition Production and Presentation Technology(EPPT).

Page 119: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Things to look for in specialist XML editors

schema-awareconstraining element entryIDE featurescustomizablevalidation, preferably continualMultiple display views (as tree, with tags, formatted etc)folding structurescontext-sensitive help

For XML editing, Emacs, oXygen, jEdit, XMetaL, XMLSpy,Stylus Studio, Arbortext Adept are all worth a look.For image editing, try University of Victoria Image MarkupTool or Edition Production and Presentation Technology(EPPT).

Page 120: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Things to look for in specialist XML editors

schema-awareconstraining element entryIDE featurescustomizablevalidation, preferably continualMultiple display views (as tree, with tags, formatted etc)folding structurescontext-sensitive help

For XML editing, Emacs, oXygen, jEdit, XMetaL, XMLSpy,Stylus Studio, Arbortext Adept are all worth a look.For image editing, try University of Victoria Image MarkupTool or Edition Production and Presentation Technology(EPPT).

Page 121: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Things to look for in specialist XML editors

schema-awareconstraining element entryIDE featurescustomizablevalidation, preferably continualMultiple display views (as tree, with tags, formatted etc)folding structurescontext-sensitive help

For XML editing, Emacs, oXygen, jEdit, XMetaL, XMLSpy,Stylus Studio, Arbortext Adept are all worth a look.For image editing, try University of Victoria Image MarkupTool or Edition Production and Presentation Technology(EPPT).

Page 122: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Things to look for in specialist XML editors

schema-awareconstraining element entryIDE featurescustomizablevalidation, preferably continualMultiple display views (as tree, with tags, formatted etc)folding structurescontext-sensitive help

For XML editing, Emacs, oXygen, jEdit, XMetaL, XMLSpy,Stylus Studio, Arbortext Adept are all worth a look.For image editing, try University of Victoria Image MarkupTool or Edition Production and Presentation Technology(EPPT).

Page 123: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

oXygen screenshot 1

Page 124: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

oXygen screenshot 2

Page 125: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

oXygen screenshot 3

Page 126: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Tagless editing in oXygen

Page 127: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

EPPT

Page 128: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

UVic IMT screenshot 1

Page 129: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

UVic IMT screenshot 2

Page 130: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What is missing, or hard, in the TEI editingworld

Only a few editors like oXygen9 or XMetaL whichcombine visual feedback with code editingVisual, or WYSIWYG, editors embedded in webapplications (eg in a CMS); most web editors are forXHTML (cf Google Docs)Reliable conversion to and from Word and OpenOfficestyles. Note:

the general inability of word-processors to nest inlineinside inline, or block inside blockthe difficulty of extrapolating a hierarchical structurefrom a sequence of free-standing headings at assortedlevelsthe tedious programming required to trace the ancestryof styles in Word and OOthe lack of a facility in OO to stop the user formatting byhand

Page 131: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What is missing, or hard, in the TEI editingworld

Only a few editors like oXygen9 or XMetaL whichcombine visual feedback with code editingVisual, or WYSIWYG, editors embedded in webapplications (eg in a CMS); most web editors are forXHTML (cf Google Docs)Reliable conversion to and from Word and OpenOfficestyles. Note:

the general inability of word-processors to nest inlineinside inline, or block inside blockthe difficulty of extrapolating a hierarchical structurefrom a sequence of free-standing headings at assortedlevelsthe tedious programming required to trace the ancestryof styles in Word and OOthe lack of a facility in OO to stop the user formatting byhand

Page 132: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What is missing, or hard, in the TEI editingworld

Only a few editors like oXygen9 or XMetaL whichcombine visual feedback with code editingVisual, or WYSIWYG, editors embedded in webapplications (eg in a CMS); most web editors are forXHTML (cf Google Docs)Reliable conversion to and from Word and OpenOfficestyles. Note:

the general inability of word-processors to nest inlineinside inline, or block inside blockthe difficulty of extrapolating a hierarchical structurefrom a sequence of free-standing headings at assortedlevelsthe tedious programming required to trace the ancestryof styles in Word and OOthe lack of a facility in OO to stop the user formatting byhand

Page 133: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What is missing, or hard, in the TEI editingworld

Only a few editors like oXygen9 or XMetaL whichcombine visual feedback with code editingVisual, or WYSIWYG, editors embedded in webapplications (eg in a CMS); most web editors are forXHTML (cf Google Docs)Reliable conversion to and from Word and OpenOfficestyles. Note:

the general inability of word-processors to nest inlineinside inline, or block inside blockthe difficulty of extrapolating a hierarchical structurefrom a sequence of free-standing headings at assortedlevelsthe tedious programming required to trace the ancestryof styles in Word and OOthe lack of a facility in OO to stop the user formatting byhand

Page 134: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What is missing, or hard, in the TEI editingworld

Only a few editors like oXygen9 or XMetaL whichcombine visual feedback with code editingVisual, or WYSIWYG, editors embedded in webapplications (eg in a CMS); most web editors are forXHTML (cf Google Docs)Reliable conversion to and from Word and OpenOfficestyles. Note:

the general inability of word-processors to nest inlineinside inline, or block inside blockthe difficulty of extrapolating a hierarchical structurefrom a sequence of free-standing headings at assortedlevelsthe tedious programming required to trace the ancestryof styles in Word and OOthe lack of a facility in OO to stop the user formatting byhand

Page 135: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

What is missing, or hard, in the TEI editingworld

Only a few editors like oXygen9 or XMetaL whichcombine visual feedback with code editingVisual, or WYSIWYG, editors embedded in webapplications (eg in a CMS); most web editors are forXHTML (cf Google Docs)Reliable conversion to and from Word and OpenOfficestyles. Note:

the general inability of word-processors to nest inlineinside inline, or block inside blockthe difficulty of extrapolating a hierarchical structurefrom a sequence of free-standing headings at assortedlevelsthe tedious programming required to trace the ancestryof styles in Word and OOthe lack of a facility in OO to stop the user formatting byhand

Page 136: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Brief demo/tour of oXygen

If I have time at this point I should do a brief demo/tour ofoXygen.

Page 137: Session 1: Introduction to Markup, XML, and XML Editing Optionstei.oucs.ox.ac.uk/Talks/2007-12-Poznan/session1.pdf · 2018. 5. 29. · Session 1: Introduction to Markup, XML, and

Session 1:Introduction toMarkup, XML,

and XMLEditingOptions

Overview ofall sessions

Markup

XML

EditingOptions

Exercise 1: Editing an XML file

1 Go to http://tei.oucs.ox.ac.uk/Oxford/2007-12-Poznan/exercise1.xml

2 Read and follow the instructions (take your time.)3 If you have any questions, just raise your hand!