Web server - CHAPTER 5 DISPLAYING XML USING CSS 167
Tuesday, September 25th, 2007CHAPTER 5 DISPLAYING XML USING CSS 167 Other limitations include the following: Tabular data needs element names and structures that fit a particular model, so that you can identify data correctly. If you want to display elements in a different order from the XML document, you have to use one of these two options: Absolute positioning, which requires that you know exactly how much data or how many elements will be displayed Floating boxes, which can reorder boxes from left to right within the screen s width Linking via XLink currently has limited support. A workaround is to use the XHTML namespace and tags. In order to display images, you must have a different element or different attribute name for each image. You can only display the values of two attributes per element. Using CSS with XHTML documents allows you to separate content from styling information. It also allows you to update pages more easily, and prevents a web browser from having to download style rules more than once. While CSS is capable of presenting XML content, it doesn t provide the most flexible means of display for the layout of data and tables. Furthermore, the limited support for XLinks and images makes CSS a frustrating experience for the XML developer. In the next two chapters, you ll see an alternative to CSS for display purposes: XSLT. XSLT provides much more flexibility in the rendering of XML content, and you can use it to structure content that you then style with CSS. XSLT also allows for dynamic manipulation of data on the client. In later chapters, you ll see examples of using XSLT on the server, so that you can deliver XHTML to browsers without them having to interpret XSLT.
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.