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

tag when it appears in an XHTML page. If the same tag appears in an XML document, there is no intrinsic meaning, so a browser cannot make any assumptions about how to render the element. This chapter will Summarize how CSS works with XHTML Style XML documents with CSS Use CSS selectors with XML Discuss the CSS box model and the positioning schemes Lay out tabular XML data with CSS Link XML documents Add images to XML documents Add text to XML documents from the stylesheet Use attribute values from XML documents Within the chapter, I ll mention which browsers support each approach. I tested these examples with Internet Explorer (IE) 6, Netscape 8, Firefox 1.5, Amaya 9.1, and Opera 8.51. Therefore, when I mention that something isn t supported in a web browser, I m referring to
Go visit our
java server pages services for a reliable, lowcost webhost to satisfy all your needs.

Leave a Reply