Windows 2003 server web - Displaying XML Using CSS CHAPTER 5 You re probably
Displaying XML Using CSS CHAPTER 5 You re probably familiar with Cascading Style Sheets (CSS) and using CSS declarations to style your XHTML pages. As you ve already seen, stylesheets are very helpful for separating the content of an XHTML page from its presentation. They also allow you to be more efficient in managing web sites, because you can update styles across multiple pages by editing a single stylesheet. In this chapter, you ll learn about CSS and see how you can use it to style XML documents. I ll start with an introduction to CSS and show you how it styles XHTML documents. This will help to clarify the terms and roles of CSS and show you what s possible. You ll then work through examples that style XML documents with CSS. This process will show you some of the limitations and the special considerations when styling with CSS. I ll discuss issues such as adding links, including images, adding content before or after elements, and displaying attribute content. All of these areas require special CSS techniques. CSS styling of XML provides some special challenges. With XHTML, a web browser understands the meaning of each of the elements and can display them accordingly. For example, a web browser understands how to render an or