Presentation is loading. Please wait.

Presentation is loading. Please wait.

IT Accessibility Committee XML as Content Management Presented by Michael B. Short May 11, 2006 Prepared by the NYS Forum IT Accessibility Committee

Similar presentations


Presentation on theme: "IT Accessibility Committee XML as Content Management Presented by Michael B. Short May 11, 2006 Prepared by the NYS Forum IT Accessibility Committee"— Presentation transcript:

1 IT Accessibility Committee XML as Content Management Presented by Michael B. Short May 11, 2006 Prepared by the NYS Forum IT Accessibility Committee http://www.nysforum.org/accessibility/resources/curriculum/xml

2 XML as Content Management Objective: the learner will state the accessibility advantage of using XML for content management Objective: the learner will state the accessibility advantage of using XML for content management

3 XML as Content Management A brief introduction to XML A brief introduction to XML How XML separates content from presentation How XML separates content from presentation Leveraging XML for accessible web sites Leveraging XML for accessible web sites

4 XML: an Introduction XML: XML: Extensible Markup Language Extensible Markup Language a tag-based language for describing the contents of documents a tag-based language for describing the contents of documents Two main flavors: Two main flavors: Pre-defined standards Pre-defined standards Self-defined grammars Self-defined grammars

5 XML: an Introduction Example Example Information Security Management Information Security Management Harold F. Tipton Harold F. Tipton Micki Krause Micki Krause <publisher>Auerbach</publisher><year>2000</year></book>

6 XML: an Introduction Consists of: Consists of: Elements (tags) Elements (tags) Attributes (similar to HTML) Attributes (similar to HTML) Must have: Must have: Root element Root element (book tag from the previous example) (book tag from the previous example)

7 XML: an Introduction <slide> XML: an Introduction XML: an Introduction </topic> </bullet></topic></slide>

8 XSLT Extensible Style sheet Language Translation Extensible Style sheet Language Translation XSL is XML XSL is XML Instructions for transforming XML into another form Instructions for transforming XML into another form Could be instructions from rendering a document in HTML Could be instructions from rendering a document in HTML Or perhaps PDF Or perhaps PDF Or virtually any other form Or virtually any other form

9 XSLT (Snippet) <ul> </ul></xsl:for-each>

10 How XML Solves Accessibility Issues One style sheet can be applied to a multitude of XML source documents One style sheet can be applied to a multitude of XML source documents More than one style sheet can be applied to the same source document More than one style sheet can be applied to the same source document

11 How XML Solves Accessibility Issues One style sheet can be applied to a multitude of XML source documents One style sheet can be applied to a multitude of XML source documents The style sheet can be constructed to render accessible, standard HTML The style sheet can be constructed to render accessible, standard HTML Once the style sheet is correct, any HTML document generated using the style sheet will be valid, standard and accessible Once the style sheet is correct, any HTML document generated using the style sheet will be valid, standard and accessible

12 XML can Separate Data from HTML When HTML is used to display data, the data is stored inside your HTML When HTML is used to display data, the data is stored inside your HTML With XML, your data is stored outside your HTML With XML, your data is stored outside your HTML

13 XML can Separate Data from HTML With XML, data can be stored in separate XML files With XML, data can be stored in separate XML files This way you can concentrate on using HTML for data layout and display, and be sure that changes in the underlying data will not require any changes to your HTML. This way you can concentrate on using HTML for data layout and display, and be sure that changes in the underlying data will not require any changes to your HTML.

14 XML can Separate Data from HTML XML data can also be stored inside HTML pages as "Data Islands". XML data can also be stored inside HTML pages as "Data Islands". You can still concentrate on using HTML only for formatting and displaying the data. You can still concentrate on using HTML only for formatting and displaying the data.

15 How XML Solves Accessibility Issues More than one style sheet can be applied to the same source document: More than one style sheet can be applied to the same source document: one style sheet to render HTML one style sheet to render HTML another style sheet to render PDF another style sheet to render PDF The same source document, guaranteeing the same content, can be used to generate more than one version for different uses The same source document, guaranteeing the same content, can be used to generate more than one version for different uses

16 How XML Solves Accessibility Issues Style sheets can be extended as new situations arise Style sheets can be extended as new situations arise Declare new tags to manage the new situation Declare new tags to manage the new situation Update the style sheet portfolio to render the new tags Update the style sheet portfolio to render the new tags Handle the situation once for each style sheet and all future documents meet the standard Handle the situation once for each style sheet and all future documents meet the standard

17 What happens today Modern browsers will perform the translation on the fly when the source document and style sheet are present Modern browsers will perform the translation on the fly when the source document and style sheet are present Older browsers display the source XML Older browsers display the source XML Thus, you cannot depend on client-side translation … yet Thus, you cannot depend on client-side translation … yet

18 Issues with Server-side XML XML requires a shift in thinking XML requires a shift in thinking Separation of content and presentation is pretty much complete Separation of content and presentation is pretty much complete Source documents must meet strict formatting requirements, requiring more discipline Source documents must meet strict formatting requirements, requiring more discipline Converting large sites requires a large effort Converting large sites requires a large effort


Download ppt "IT Accessibility Committee XML as Content Management Presented by Michael B. Short May 11, 2006 Prepared by the NYS Forum IT Accessibility Committee"

Similar presentations


Ads by Google