ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing

ExpertRating Home
ExpertRating Benefits
Recommend ExpertRating
Suggest More Tests
Privacy Policy
XML Tutorial - Index
XML Tutorial - Introduction to XML
XML Tutorial - How XML interact with data?
XML Tutorial - How to write first XML document
XML Tutorial - What are XML Elements and Attributes?
XML Tutorial - What is XML Schema and DTD?
XML Tutorial - Which Browser support XML?
XML Tutorial - XML and Styles
XML Tutorial - Embedding XML in HTML
XML Tutorial - Working with XML Parser
XML Tutorial - Working with CDATA

Online Personal Trainer Certification
Personal Trainer Certification (Spanish)
Six Sigma Certification
Find a Personal Trainer
Project Management Certification
Six Sigma Certification
Six Sigma Black Belt Certification
Master Black Belt Certification
Six Sigma Green Belt Certification
Life Coach Certification
Lean Management Certification
Lean Six Sigma Certification
First Aid Certification
CPR Certification
Yoga Certification
Aerobics Certification
Pilates Certification
Business Analyst Certification
SEO Certification
Online Business Writing Course & Certification
Makeup Artist Certification
Baby Sitting Course & Certification
Time Management Certification
Health Club Management Certification
Medical Coding Certification
Medical Billing Certification
Business Analysis Course
Master Trainer Certification
Total Quality Management Certification
Kaizen Certification
Creative Writing Certification
Event Management Certification
Test Search by Job Title
Administrative Assistant Certification
Virtual Assistant Certification
  All Online Courses


  Home > Courses, Tutorials & eBooks > XML Tutorial >XML and Styles

XML Tutorial - XML and Styles

Page 3 of 3

The XSLT Stlesheet is shown below :

                                                         The Sales CONTACTS Stylesheet :

    <?xml version= "1.0"encoding="UTF-8"?>
    <xsl :stylesheet version="1.0"xmlns:xsl="http:??">
    <xsl :output method="text" version="1.0"encoding="UTF-8" indent="yes"/>
    <xsl :template match="CONTACTS">
                                Address and Phone list
                     <table width = "100%>
                                <tr bgcolor = "#FF00FF">
                                                 <Address and phone list >
                     <xsl: for-each select = "SALES">
                              <xsl: sort select = "NAME"/>
                                           <xsl: value-of select = "NAME">
                                     <table width = "70%">
                                               <tr valign="top">
                                                        <td width="40%">
                                                                                  <b> <small> PHONE : </small> </b>
                                                                                     <xsl: value-of select = "PHONE"/>
                                                                                   <b> <small> ADDRESS: </small> </b>
                                                                                  <xsl: value-of select = "ADDRESS"/>
    </xsl: template>
    </xsl: stylesheet>



In this chapter you have learnt:

  • Different ways of adding style sheet to an XML document.
  • Using internal and external style sheets with XML.
  • Using XSL with XML.
  • Different languages associated with XSL.
Review Questions

Fill in the Blanks

  1. Style-sheets can be added in an XML document through_______ and________.
  2. Three kinds of stylesheets possible with CSS are _______ ,_______ and_______.
  3. ______ is used for adding advanced styling features in an XML document.
  4. _______ language defines different parts of an XML document.


  1. CSS and XSL.
  2. external, internal and inline
  3. XSL
  4. XPath


What's Next

The next chapter will acquaint you with the basic concepts of embedding XML into HTML. The chapter will further elucidate how XML data is stored inside HTML pages.

                 Hop over to the next chapter to get a close-up of embedding XML into HTML
Home  |  About Us  |  Privacy Policy  |  Site Map  |  FAQs  |  Contact Us
© ExpertRating 2015. All Rights Reserved.