Academic Tutorials



English | French | Portugese | German | Italian
Google

Home Source Codes E-Books Downloads Contact Us About Us

XML Tutorial
XML Introduction
XML How to use
XML Syntax
XML Elements
XML Attributes
XML Validation
XML Validator
XML Browsers
XML Viewing
XML CSS
XML XSL
XML Data Island
XML Parser
XML in Real Life
XML Namespaces
XML CDATA
XML Encoding
XML Server
XML Application
XML HTTP Request
XML Save Data
XML Behaviors
XML Technologies
XML Editors
XML Summary
XML as Data Source

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


Extensible Stylesheet Language
Previous Next

Extensible Stylesheet Language



A family of languages called eXtensible Stylesheet Language (XSL) which allows one to describe how files encoded in the XML standard are to be formatted or transformed. There are three languages in the family:

  • XSL Transformations (XSLT): an XML language for transforming XML documents



  • XSL Formatting Objects (XSL-FO): an XML language for specifying the visual formatting of an XML document



  • the XML Path Language (XPath): For addressing the parts of an XML document a non-XML language used by XSLT, and also available for use in non-XSLT contexts.

These all three specifications are available in the form of W3C Recommendations.

The term XSL is sometimes used to refer to a Microsoft variant of XSLT developed as an implementation of an early (1998) W3C draft of the XSLT language, with Microsoft-specific extensions and omissions. Other commentators generally refer to this dialect as WD-xsl. The dialect was later superseded by a conformant implementation of the W3C specification.





History

An attempt to bring the functionality of DSSSL, XSL started. Particularly in the area of print and high-end typesetting to XML. A W3C Working group on XSL was started in December 1997, with Sharon Adler and Steve Zilles as co-chairs, with James Clark acting as editor (and unofficially as chief designer), and Chris Lilley as W3C staff contact. The group released a first public Working Draft on 18 August 1998. On 16 November 1999 XSLT and XPath became W3C Recommendations and XSL reached Recommendation status on 15 October 2001.







Example: XML with XSL

Here fraction of the XML files and the second line links the XML file to the XSL file:


<?xml version="1.0"?>
<!DOCTYPE LANGLIST SYSTEM "langlist.dtd">
<?xml-stylesheet type="text/xsl" href="xmlstyle.xsl"?>
<LANGLIST>
<TITLE>List of Items Important to Markup Languages</TITLE>
<TITLE1>Languages</TITLE1>
<LIST1>
<LANGUAGES>SGML</LANGUAGES>
<LANGUAGES>XML</LANGUAGES>
<LANGUAGES>HTML</LANGUAGES>
</LIST1>
<TITLE2>Other Support</TITLE2>
<LIST2>
<OTHER>DTD</OTHER>
<OTHER>DSSSL</OTHER>
<OTHER>Style Sheets</OTHER>
</LIST2>
</LANGLIST>

 

The XML Style File

<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<xsl:apply-templates select="LANGLIST/TITLE" />
<xsl:apply-templates select="LANGLIST/TITLE1" />
<xsl:apply-templates select="LANGLIST/LIST1" />
<xsl:apply-templates select="LANGLIST/TITLE2" />
<xsl:apply-templates select="LANGLIST/LIST2" />
</xsl:template>

<xsl:template match="TITLE">
<SPAN STYLE="display: 'block'; font-family: 'arial'; color: '#008000'; font-weight: '600'; font-size: '22'; margin-top: '12pt'; text-align: 'center'">
<xsl:value-of />
</SPAN>
<BR/>
</xsl:template>

<xsl:template match="TITLE1">
<SPAN STYLE="display: 'block'; font-family: 'arial'; color: '#000080'; font-weight: '400'; font-size: '20'; margin-top: '12pt'">
<xsl:value-of />
</SPAN>
<BR/>
</xsl:template>

<xsl:template match="LIST1">
<UL style="display: 'list-item'; list-style-image: url('bullet8.gif'); font-family: 'arial'; color: '#000000'; font-weight: '400'; margin-left: '15pt'; margin-top: '12pt'; font-size: '18'">
<xsl:for-each select="LANGUAGES">
<LI style="display: 'list-item'; list-style-type: 'square'; list-style-image: url('bullet8.gif'); font-family: 'arial'; color: '#ff0000'; font-weight: '300'; margin-left: '15pt'; margin-top: '12pt'; font-size: '16'">
<xsl:value-of />
</LI>
</xsl:for-each>
</UL>
</xsl:template>

<xsl:template match="TITLE2">
<SPAN STYLE="display: 'block'; font-family: 'arial'; color: '#000080'; font-weight: '400'; font-size: '20'; margin-top: '12pt'">
<xsl:value-of />
</SPAN>
<BR/>
</xsl:template>

<xsl:template match="LIST2">
<UL style="display: 'list-item'; list-style-image: url('bullet8.gif'); font-family: 'arial'; color: '#000000'; font-weight: '400'; margin-left: '15pt'; margin-top: '12pt'; font-size: '18'">
<xsl:for-each select="OTHER">
<LI style="display: 'list-item'; list-style-type: 'square'; list-style-image: url('bullet8.gif'); font-family: 'arial'; color: '#0000ff'; font-weight: '200'; margin-left: '15pt'; margin-top: '12pt'; font-size: '14'">
<xsl:value-of "."/>
</LI>
</xsl:for-each>
</UL>
</xsl:template>

</xsl:stylesheet>

 


Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Previous Next

Keywords: xsl stylesheet, xml document, xsl transformations, xsl processor, xml-xsl, xml xsl, xml xsl tutorial, xsl dtd, xml xsl example, xml xsl stylesheet, javascript xml xsl, xml xsl transformation, xml xsl html, xml xsl transform, c# xml xsl, xml xsl asp net, xml xsl editor.


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.