![]() |
CSS![]() ![]() ![]() ![]() ![]()
In the previous chapters, you have seen the skeleton of XML and its components. Now it is time to look at another important requirement displaying XML in the browser. Whenever you want to display some information in the browser, it is better to spend some time to increase the look and feel of your content, With HTML, the browser understands the markup and will display it without the use of any styling mechanism. Style sheets are therefore a welcome addition to HTML for giving more flexibility to document designers. Style sheets are generally used to apply styles, or formatting information, consistently throughout a document. The most commonly used form of style sheet on the Web is based on the Cascading Style Sheets (CSS) specification. CSS allows authors to define classes of styles that can be applied throughout an HTML or XML document.
The simplicity of document creation was a key element in the astonishingly rapid development of the Web. In this site, we outline the steps for using a CSS style sheet in an XML document. HTML provides limited possibilities for the explicit formatting and positioning of the text. The mechanisms that are provided in such as the FONT element or the ALIGN attribute force the page designer to embed presentation specific information within the document; a fact that makes it difficult to prepare documents for a variety of screen sizes, presentation modalities, and types of audiences. Since these limited features are not sufficient to achieve the formatting results desired by many Web designers, they commonly resort to the use of using tables and various HTML coding "tricks. " XML however is different. The markup is not standardised and the browser does not know how to render it. This is because, with XML, authors can create their own tag set, giving the browser little chance of knowing how to display the resulting document. Style sheets and other display mechanisms are therefore an essential part of rendering XML. Currently, there are two types of style sheets available for displaying XML: Cascading Style Sheets (CSS) and the extensible Style Language (XSL). CSS displays an entire XML document by traversing the XML document tree from the root element to the last element of the tree. It follows the tree in the order of the element's appearance in the tree. Basically, it provides a means to add a style to each element as it appears within the structure of the document. Cascading Style Sheets exist in two forms CSS1 and CSS2. CSS2 adds more functionality and was accepted in May 1998. CSS1 covers all the basic facilities you might want in a style sheet, while CSS2 adds some very useful additional facilities, such as the ability to specify tables.
|
|
Domain NamesXML HTML to XML Why XML? XML Example Program XML Structure XML Declaration Physical Structure in XML XML Syntax Well Formed and Valid Document Document Type Definition Logical Structures
Notation and Notation Declarations Entity References Importing an External DTD Cascading Style Sheets (XML) Rendering XML with CSS An Example Using CSS CSS Style Rules
XSL XSL Transformation XSL Formatting XSL Style Rules Schemas Limitations of DTD Validity of an XML Document
An Example using XML Schema Namespaces Xlinks and Xpointers Terminology Xlinks Extended Link Xpointers DOM and SAX What is DOM? The Basic Structure of an XML DOM-based Module What is SAX? When to use DOMWhen to use SAX Accessing the Database Using XML Delivering XML with Data Retrieving Data from SQL Database Using Web Assistant Wizard Displaying Records from the XML_EX Database Server Dynamic Web Publishing with Dynabase Enhydra Java/XML Application Server XML Server Technologies Purpose and Goal of the XML/EDI Guidelines Definitions for XML/EDI The Electronic Enterprise Server Scope of XML/EDI The Five Technologies of XML/EDI Integrating XML with EDI Ignore and Include Keywords XML/EDI Components The Implementation Process Identifying Data Sets Developing DTDs Application Specific Extensions XML and JAVA XML Application Architecture Channel Definition Format Creation of Channels Creating Channels Using CDF Document Description of the Channel Scheduling Logos Precaching Web Crawling Keeping Track of UsersWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |