SGML and XMLSGML and XMLRichard Sapon-WhiteIntroduction to MetadataMay 13, 2013
SGMLSGMLStandardized General Markup Language, ametalanguageDTD (Document Type Definition) –identifies the scheme used to...
SGML (cont.)SGML (cont.)Uses start and end tags; attribute namesand valuesElements may include text, text +attribute, at...
SGML Advantages and DisadvantagesSGML Advantages and DisadvantagesAdvantages◦ Element names can be mnemonic, e.g. EADelem...
XMLXMLType of SGML with fewer features andoptions, for example:◦ End tags must be used◦ Attribute values always in quotat...
Examples: LC DTD for MARC21Examples: LC DTD for MARC21<mrcb245 i1=0 i2=4><mrcb245-a>Thehealth of dairy cattle /<mrcb245-c...
XML DevelopmentXML DevelopmentWorld Wide Web Consortium (W3C)actively developing XMLXML linking language, query language...
XML: TodayXML: TodayThe language of the WebWeb browsers and other applicationssupport XML-encoded documents8
Upcoming SlideShare
Loading in …5
×

Sgml and xml

1,348 views
1,206 views

Published on

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,348
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • SGML describes the syntax for encoding documents, but not specific tags.
  • Sgml and xml

    1. 1. SGML and XMLSGML and XMLRichard Sapon-WhiteIntroduction to MetadataMay 13, 2013
    2. 2. SGMLSGMLStandardized General Markup Language, ametalanguageDTD (Document Type Definition) –identifies the scheme used to define tagsand the rules for using themDTDs: EAD, HTML, DTD for MARC212
    3. 3. SGML (cont.)SGML (cont.)Uses start and end tags; attribute namesand valuesElements may include text, text +attribute, attributeElements (wrappers) may include otherelements (subelements)3
    4. 4. SGML Advantages and DisadvantagesSGML Advantages and DisadvantagesAdvantages◦ Element names can be mnemonic, e.g. EADelement <titleproper> (compare with 245 $a)◦ Hierarchical: can inherit data encoded athigher levelsDisadvantage◦ Difficult for programs to process; softwareapplications are complex4
    5. 5. XMLXMLType of SGML with fewer features andoptions, for example:◦ End tags must be used◦ Attribute values always in quotation marksEasier to process◦ Tags are case-sensitive◦ Attributes may contain UNICODE characters5
    6. 6. Examples: LC DTD for MARC21Examples: LC DTD for MARC21<mrcb245 i1=0 i2=4><mrcb245-a>Thehealth of dairy cattle /<mrcb245-c>editedby Anthony H. Andrews. [SGML]<mrcb245 i1=“0” i2=“4”><mrcb245-a>The health of dairy cattle/</mrcb245-a><mrcb245-c>edited by Anthony H.Andrews.</mrcb245-c></mrcb245>[XML]6
    7. 7. XML DevelopmentXML DevelopmentWorld Wide Web Consortium (W3C)actively developing XMLXML linking language, query language,stylesheet language, etc.XML Schema are an alternative to DTDsLC has developed MARCXML, an XMLSchema for MARC21 records7
    8. 8. XML: TodayXML: TodayThe language of the WebWeb browsers and other applicationssupport XML-encoded documents8

    ×