Hour9.XML Formatting Strategies


Hour 9. XML Formatting Strategies

XML is like a VW Jetta: environmentally sensitive, slow, dependable, and terminally uncool. Lasts a lifetime.

Nat Torkington

As terminally uncool as XML may be perceived by some, one aspect of XML that certainly isn't uncool is XML formatting. The reason is because you can dress up XML quite a bit by formatting it properly. There are two fundamentally different approaches to formatting XML documents, both of which you learn about in this hour and in the remainder of this part of the book. I'm referring to Cascading Style Sheets (CSS) and eXtensible Style Language (XSL). CSS is already in use around the Web as a means of formatting HTML web pages above and beyond the limited formatting capabilities of HTML. XSL, on the other hand, is purely designed for use with XML and is ultimately much more powerful and flexible than CSS. Even so, these technologies aren't really in competition with each other. As you learn in this hour, they offer unique solutions to different problems, so you will likely find a use for each of them in different scenarios.

In this hour, you'll learn

  • The basics of style sheets and XML formatting

  • When and why to use CSS and XSL on the Web

  • The practical differences between CSS and XSL style sheets

  • How to format a basic XML document using CSS and XSLT style sheets




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