QA


Q&A

Q.

Why is it so important to separate the presentation of a document from its content?

A.

It's been proven time and again that mixing data with its presentation severely hampers the structure and organization of the data because it becomes very difficult to draw a line between what is content and what is presentation. For example, it is currently difficult for search engines to extract meaningful information about web pages because most HTML documents are concerned solely with how information is to be displayed. If those documents were coded according to meaning, as opposed to worrying so much about presentation, the Web and its search engines would be much smarter. Of course, we all care about how information looks, especially on the Web, so no one ever said to do away with presentation. The idea is to make a clean separation between content and presentation so that both of them can be more easily managed. A good example of how this concept is being applied to a very practical web service is Yahoo!'s Flickr online photo service (http://www.flickr.com/), which allows you to associate keywords with photographs that you post online. As more and more people add context to their photographs via keywords, it will be increasingly possible to search the Web for the content of photographs, which is something previously impossible. With photographs, the content is inherently linked with the presentation but keywords allow you to tack on additional information about the content.

Q.

What does it mean to state that XSL-FO is a superset of CSS?

A.

When I say that XSL-FO is a superset of CSS, I mean that XSL-FO encompasses the functionality of CSS and also goes far beyond CSS. In other words, XSL-FO is designed to support the features of CSS along with many new features of its own. The idea behind this approach is to provide a smooth migration path between CSS and XSL-FO because XSL-FO inherently supports CSS features.




Sams Teach Yourself XML in 24 Hours
Sams Teach Yourself XML in 24 Hours, Complete Starter Kit (3rd Edition)
ISBN: 067232797X
EAN: 2147483647
Year: 2005
Pages: 266

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net