XML with CSS, XML Tutorial, Global Guideline

Forum | Blog


Basic XML Guide.       
 XML Introduction.       
 XML Tags Guide.       
 XML Attributes.           
 XML Syntax Guide.    
 XML Compilation.      
 XML Execution.          
 XML with CSS.
 XML with XSL.            
 XML Data Island.        
 XML Professional.       
 XML with JavaScript. 
 XML Namespaces.      
 XML CDATA.              
 XML Editors.               
 XML Summary.           

XML Tutorial >> XML with CSS.

     Back             Next     
Here in this section of XML Tutorial we will learn how to display an XML document like web page and for this requirement we will use CSS (Cascading Style Sheets).  With CSS we can guide web browser how to display XML document.

How to use CSS with XML?

Now it is possible to use CSS for the formation of an XML document. Just like in HTML we will add the CSS reference in XML document on top and after that we will start root.  On execution of XML document web browser when read the CSS reference then web browser will transform the entire XML document with CSS.  

Example of XML Transformation using CSS.

<?xml version="1.0" encoding="ISO-8859-15"?>
<?xml-stylesheet type="text/css" href="employees.css"?>

Sources of XML and CSS Transformation Example

Now give attention to the XML of above employees here.  That was final touch step on simple raw XML here with out CSS.  The main controller for this raw XML in to well formatted output is the employees CSS document.

     Back             Next     

[ About ] [ Contact ] [ Home ]
[ Links ] [ Site Map ] [ Services ] [ Privacy ]

Copyright 2005 -  2022 www.globalguideline.com All rights reserved. (Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher) 217 visitors are online now