13
SE 5145 – eXtensible Markup Language (XML ) DTD (Document Type Definitions) 2011-12/Spring, Bahçeşehir University, Istanbul

SE 5145 – eXtensible Markup Language ( XML )

  • Upload
    mala

  • View
    35

  • Download
    2

Embed Size (px)

DESCRIPTION

SE 5145 – eXtensible Markup Language ( XML ). DTD (Document Type Definitions). 2011-12/Spring, Bahçeşehir University , Istanbul. 2nd Assignment: CV. Preparing an XML/XSLT R esume - PowerPoint PPT Presentation

Citation preview

Page 1: SE 5145 –  eXtensible Markup  Language  ( XML )

SE 5145 – eXtensible Markup Language (XML )

DTD (Document Type Definitions)

2011-12/Spring, Bahçeşehir University, Istanbul

Page 2: SE 5145 –  eXtensible Markup  Language  ( XML )

2nd Assignment: CV Preparing an XML/XSLT Resume

Redesign your own resume as an XML document including at least five sections («education», «employment history», «social skills», «technical skills», «accomplishments», etc.) As you design your XML file, think about items that would be of more interest to a management reader and other items that would be of more interest to a technical reader. For example, a management reader might be more interested in your «social skills» while a technical reader would be more interested in «technical skills».

Create a Document Type Definition (DTD) file resume.dtd specifying the content of your resume.

Now create two stylesheets, manager.xsl and technical.xsl, which display the manager and technical "views" respectively. There will be some overlap (both classes of reader would want to know your name!) but there should be several differences as well.

How to Submit

Pay attention to naming your files: Keep your files under /Name.Surname/Assignment2 and send me one unique archived RAR file: Name.Surname.Assignment2.rar

Submit only SOFT COPY by uploading to asilkan.net till due date: Next lesson (2 weeks later)

Randomly selected students will be asked to present the solutions on the due date2

Page 3: SE 5145 –  eXtensible Markup  Language  ( XML )

3

DTD (Document Type Definitions)

Page 4: SE 5145 –  eXtensible Markup  Language  ( XML )

4

DTD Syntax & Content

Page 5: SE 5145 –  eXtensible Markup  Language  ( XML )

5

Format of a DTD

Page 6: SE 5145 –  eXtensible Markup  Language  ( XML )

6

Declaring Elements

Page 7: SE 5145 –  eXtensible Markup  Language  ( XML )

7

Declaring Elements - Examples-1

Page 8: SE 5145 –  eXtensible Markup  Language  ( XML )

8

Declaring Elements – Examples-2

Page 9: SE 5145 –  eXtensible Markup  Language  ( XML )

9

Declaring Attributes-1

Page 10: SE 5145 –  eXtensible Markup  Language  ( XML )

10

Declaring Attributes-2

Page 11: SE 5145 –  eXtensible Markup  Language  ( XML )

11

Declaring Attributes-3

Page 12: SE 5145 –  eXtensible Markup  Language  ( XML )

12

Exercise – Internal DTD

Page 13: SE 5145 –  eXtensible Markup  Language  ( XML )

13

Exercise – External DTD