Feb 17, 2008

simplified style sheet vs tempaltes based style sheet

            
            
            Hello World Example
            
            

Hello World Example

The document element of a full sytle sheet is . It has one or more template. The templates are rules that define how a particular part of the input xml document maps on to the result that you want. While CSS always processes all the elements in a document, you can use XSLT to pick and choose which elements to display. While mulitple rules can be applied to style a particular element in CSS, only one template can be applied at a time in XSLT. XSLT templates can match a lot of things that CSS templates can't, such as attributes and comments.