Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.
-
Upload
zachary-hayes -
Category
Documents
-
view
218 -
download
0
Transcript of Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.
![Page 1: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/1.jpg)
Copenhagen, 6 December 2004
Technological advances since 2000
Miruna Bădescu
Finsiel Romania
![Page 2: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/2.jpg)
XHTMLeXtensible HyperText Markup Language
![Page 3: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/3.jpg)
3
What is it?
HTML4 is regarded as the standard publishing language on the Web
SGML application conform with the ISO 8879 standardDefines a set of structural and semantic tags for authoring Web
documents
XML is also a SGML implementationConceived to standardize the data transferHandles semantics, not structure
XHTML is a family of document types that reproduce and extend HTML4 and are XML-based
Design to work with XML-based user agents
![Page 4: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/4.jpg)
4
Why use it?XHTML documents are XML conforming
=> can be validated using XML tools
Can utilize applications (e.g. scripts and applets) that rely on either the:
HTML Document Object Model XML Document Object Model
Can be used toghether with other namespaces (e.g. MathML)
Easier to interoperateAlternate ways of accessing the Internet are constantly being
introduced
New XHTML-compliant user agents are built to benefit from new and existing features
![Page 5: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/5.jpg)
5
Making XHTML compatible documents (1)
Must have a DOCTYPE declaration prior to the Root element
XHTML 1.0
XHTML 1.1
![Page 6: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/6.jpg)
6
Making XHTML compatible documents (2)
Can have an XML declaration when the character encoding is other that the default UTF-8 or UTF-16
The root element must be html XHTML 1.0:
XHTML 1.1:
![Page 7: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/7.jpg)
7
Making XHTML compatible documents (3)
When a user agent processes an XHTML document, it will recognize only attributes of type ID (i.e. id instead of name) as fragment identifier
If an element is not recognized, the element’s content must be processed
If an attribute is not recognized, it is ignored
If an attribute’s value is not recognized, the default value is used
![Page 8: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/8.jpg)
8
Differences with HTML4 (1)
The document must be well-formed: no nested tagsCorrect:<p>here is a <em>paragraph</em>.</p>Incorrect:<p>here is a <em>paragraph</p></em>.
Elements and attributes must be in lowercase (XML is case sensitive)Correct:<ul>Incorrect:<UL>
![Page 9: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/9.jpg)
9
Differences with HTML4 (2)
End tags are required for non-empty elementsCorrect:
<p>here is a paragraph</p><p>here is another</p>Incorrect:
<p>here is a paragraph<p>here is another
Attribute values must always be quotedCorrect:
<td colspan=“3”>Incorrect:
<td colspan=3>
![Page 10: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/10.jpg)
10
Differences with HTML4 (3)
XML does not support attribute minimizationCorrect:
<p wrap=“wrap”>Incorrect:
<p wrap>
Empty elements must have an end tagCorrect:
<br />Incorrect:
<br>
![Page 11: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/11.jpg)
11
Differences with HTML4 (4)
Script and style elements must have a #PCDATA content Correct:<script type=“text/javascript”>
<![CDATA[… unescaped script content …]]>
</script>
References to characters made using hexadecimal values Correct:&#xnn; &x20AC; (Euro sign) Incorrect:&#Xnn; &X20AC;
![Page 12: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/12.jpg)
12
Element prohibitions
SGML allows DTDs to exclude specific elements from being contained within an element
Examples:a must not contain another a element
pre must not contain elements like img, object, big, small, sub, sup
form must not contain another form element
Such prohibitions are not possible in XML
![Page 13: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/13.jpg)
13
Character encoding
The encoding of a HTML document is specified by the Web server via:
The charset parameter of the HTTP Content-Type header orThe meta element in the document itself
In XML documents, the character encoding is specified in the XML declaration
For XHTML, the server should provide correct headers. If not, the document must include both XML declaration and meta http-equiv statement
![Page 14: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/14.jpg)
14
Validate your documents
The free W3C validator is located at:
http://validator.w3.org
Validates on-line pages offline documents
![Page 15: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/15.jpg)
15
XHTML2 design aims
If a facility exists in XML, use it rather then duplicating it
Less presentation, more structureMore usabilityMore accessibilityBetter internationalizationMore device independenceLess scripting
![Page 16: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/16.jpg)
16
Upcoming features in XHTML 2
Moves towards semantically correct markup:new tags (non-backwards compatibility !!!)
e.g. line, n1 (navigation links)some existing tags will become deprecated
Makes another step towards accessibilityModularization: modules that together describe the
elements and attributes of the language and their content model. E.g.:XFormsXQueryXEvents
![Page 17: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/17.jpg)
XForms, XQuery
![Page 18: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/18.jpg)
18
What is XForms?
the next generation of HTML formsricher, more flexible
will be the forms standard in XHTML 2.0platform and device independent moduleseparates data and logic from presentationuses XML to define form data, stores and
transports data in XML documentscontains features like calculations and validations
of forms reduces the need for scripting
![Page 19: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/19.jpg)
19
XForms Model
A single device-independent XML form definition has the capability to work with a variety of standard or proprietary user interfaces
![Page 20: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/20.jpg)
20
How does it work With XForms, input data is described in two parts:
XForms model defines:what the form iswhat data it containswhat it should dothe structure of the instance data (workflow, auto-fill, pre-fill)
XForms user interface defines the input fields and how they should be displayed
XForms Processor (built into the browser) submits the XForms data to a target
![Page 21: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/21.jpg)
21
Example
![Page 22: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/22.jpg)
22
XQuery
Language for querying XML data
Built on XPath expressions
XQuery for XML is the SQL for databases
Not (yet) a Web Standard, XQuery 1.0 is still a W3C Working Draft
![Page 23: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/23.jpg)
Scalable Vector Graphics (SVG)
![Page 24: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/24.jpg)
24
What is SVG?
Used to define two-dimensional vector-based graphics for the Web in XML format
SVG graphics do NOT loose any quality if they are zoomed or resized
Every element and every attribute in SVG files can be animated
SVG is a World Wide Web Consortium (W3C) recommendation since 2003
SVG integrates with other W3C standards such as the DOM, CSS and XSL
![Page 25: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/25.jpg)
25
Advantages
SVG is scalable:zoom-able without degradationviewed and printed with high-quality on any
resolution
Selectable and searchable (good for maps)Small and comprehensible with respect to
non-vectorial formats (e.g. GIF, JPG)It’s an open standard, based on XML
![Page 26: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/26.jpg)
26
Comparison
Small PNG image Small SVG Image
Enlarged PNG image: Enlarged SVG image:
![Page 27: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/27.jpg)
27
Why?
Vector-based viewers are able to recalculate how the graphic should look based on the textual description of the shape found inside of the SVG graphic
Vector graphics are defined programmatically:provide a more efficient means for rendering print and
animationadding interaction (including panning and zooming)analytical capability
![Page 28: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/28.jpg)
28
Using SVG in Web pages
1. Stand-alone (type “image/svg+xml”) not picked up by search engines
2. Embedded by reference inside an img, object or applet tag
3. Embedded in-line directly in the XHTML page
Referenced from CSS or XLS e.g. as value of the “background-image”
property
![Page 29: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/29.jpg)
29
Embedded SVG example
File saved as circle.svg and embedded in an XHTML document:
![Page 30: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/30.jpg)
30
Basic types of shapes
<rect> - rectangle <circle> - circle <ellipse> - ellipse <line> - line <polyline> - list of lines <polygon> - closed list of lines<path> - curved line
Note: SVG can be used in combination with other namespaces (MathML, SMIL, etc.) to create rich graphical objects
![Page 31: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/31.jpg)
31
Internationalization of SVG
Based on XML1.0 thus supports Unicode SVG supports:
Horizontal, left-to-right text found in Roman scriptsVertical and vertical-ideographic text Bidirectional text (for languages such as Arabic and
Hebrew)
Multi-language SVG documents Localization: text in different language may appear
based on the client’s language setting
![Page 32: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/32.jpg)
32
SVG accessibility (1)
Possibility to define metadata for a SVG graphic (e.g. title, description)
Accessible animationnon-visual user agents interpret the animation’s
description and render it in an appropriate mannor
A SVG image is encoded in plain textPossibility to include navigational links in
image components and properly describe them
![Page 33: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/33.jpg)
33
SVG accessibility (2)
Who benefits:users with low visioncolor-blind or blind usersusers of assistive technologiesholders of non-traditional Web access devices:
PDAsmobile phonesetc.
![Page 34: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/34.jpg)
Examples
Shapes, texts and animation on the EIONET websitehttp://64.84.21.10:8080/AD14001/TheaterSVG
![Page 35: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/35.jpg)
CSS2
![Page 36: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/36.jpg)
36
What’s new in CSS2 (1)
Aural style sheets – if a customer comes to your Web page with a screen reader that is CSS2 enabled, you can define how your page will sound
Paging - possible to define how pages should be displayed or printed
Media Types - aural, braille, screen, print, tv, etc. International Accessibility Features – e.g. support
for bidirectional text, language-sensitive quotation marks
![Page 37: Copenhagen, 6 December 2004 Technological advances since 2000 Miruna Bădescu Finsiel Romania.](https://reader035.fdocuments.in/reader035/viewer/2022062404/55152f23550346a87d8b57cc/html5/thumbnails/37.jpg)
37
What’s new in CSS2 (2)
Font selection – intelligent font matching
Tables – CSS2 allows you to define any element as a table element
Positioning – allows you to create frame-like documents or place a signature on every page of a document
Cursors – you can define how the cursor should look over any element