ArticleClover
 Home | Login | Register Now! | Submit Article | Latest Articles | Contact Us RSS
ArticleClover » Computer-and-technology

What is XSL?
Words: 513 | Date: Thu, 5 Aug 2010


XSL is a language for describing the style of a document, much like CSS (Cascading Style Sheets); however XSL is used to style XML (eXtensible Mark-up Language) documents. The syntax differs from CSS, yet can achieve the same results. In addition to this, XSL can be used as a transformation language (XSLT), and it can also use advanced styling, through using formatting objects, and building further on CSS.

XSL is only the visual half of the page you want to see. Behind the styling there is an XML document containing the content that you wish to show. The XSL will not contain any data, just as the XML will not contain any visual instructions.

An example of an XML document is laid out below:

< day>

< AM>< Breakfast>Cereals< /Breakfast>

< snack>Chocolate< /snack>< / AM>

< PM< lunch>Sandwich< /lunch>< snack>Crisps< /snack>

< dinner>Roast< /dinner>< / PM>

< / day>

The document has a logical meaning from looking at the English words which create the structure. This data could represent something like a typical day's food consumption.

This raw data could now be viewed on any Java enabled device, from a handheld to a supercomputer. Viewing it in this state would render an output similar to the raw data above. XSL would style this, creating a visually pleasing structure, with different fonts, colours, background images, etc. It could even display the data in a form other than a tree, perhaps grouping the AM and PM items together in boxes.

< xsl:template match="AM">

< fo:block font-weight="bold">

< xsl:apply-templates/>

< /fo:block>

< /xsl:template>

< xsl:template match="PM">

< fo:block font-style="italic">

< xsl:apply-templates/>< /fo:block>

< /xsl:template>

This would make all AM elements appear in a bold type face, and all PM in italics.

XSL and CSS are different because XSL uses XML notation, whereas CSS uses its own. Most modern web browsers support both languages, and the industry and W3C seem to indicate that it is necessary to continue the support for both. Each language seems to be able to cope well with different functions - it's even possible to use both languages; XSLT on the server to take data from a larger XML source, and compress to a smaller XML file to transfer to the client machine, and then CSS to style this data on a website, or web based interface.

XSL can be used both server-side and client-side, so it is down to the developer to choose when to implement the file. Developers should look into both the pros and cons for each of these options however, as various combinations of converted files can leave the source code a mass of FONT and BR tags, echoed directly from the XSL/XML mix up which could be created.


To make life easier, I'd recommend using a readymade XSL Style Sheet from a Schema Directory, and editing your files in an XML Editor to keep them neater. For more details, check out http://www.liquid-technologies.com/

Article Source: Article Directory | Author Jamie Simpson | Cheap WebHosting




Bookmark
digg delicious googlecombookmarks stumbleupon propellercom redditcom simpycom mister-wongcom mixxcom mywebyahoocom myjeevesaskcom furlnet blinklistcom technoraticom myspacecom facebookcom twittercom
More Articles
* The Reason Why You Should Buy Used IBM Servers
* Productivity Tips for Freelance Web Design: Investing in Website Design Software
* Importance of Offshore Software Development?
* Best Smart Phone With GPS Navigation
* The Technological Alterations Of No Contract Cell Phones
* Compared To The Grid, Cloud Computing Represents So Much More
* Do You Need to Protect Your Data Centres From Fire?
* Which PC Repair Software Should I Use?
* The Apple iPad - What is it for?
* CDBurnerXP - Free Burning Software
* Google Chrome
* How to Produce My own, Personal Standing And Personal Brand Name Website?
* Defend Against Boredom With 7 Inch Portable DVD Players
* How to Scale Website Fonts Correctly
* The Rationality of Mac versus PC
* Car Dealerships with IP Video Surveillance
* IBM Storage - The New Safe Way of File Protection
* About Podcasting
* How to Use Eye Tracking Software to Test Your Website's Usability
* How to Retrieve Deleted Text Messages From a Samsung CDMA Cellular Device
* What is a Windows Registry Repair Tool?
* Anti-Glare Film Increases Visibility
* How To Protect Your Computer From The Evils Of The Internet
* Uncover the Full Scoop on Anyone's Past With This Online Background Check!
* Tips to Getting Started in FarmVille


 

Search for Content:

Advanced Search


Categories
*Arts and Entertainment
*Automotive
*Business
*Communications
*Computer and Technology
*Fashion and Beauty
*Finance and Investment
*Food and Beverages
*Health and Fitness
*Home and Family
*Internet Business
*News and Society
*Pets and Animals
*Recreation and Sports
*Reference and Education
*Self Improvement
*Shopping and Reviews
*Travel and Leisure
*Writing and Speaking


Now Trending
iconmichael mckean
icondonald driver
iconlolo jones
icongreat gatsby trailer
icondancing with the stars
iconfacebook stock
iconaroldis chapman
icondog the bounty hunter
iconlos angeles kings
iconmiami heat
iconkatherine jenkins
icondwts
icondancing with the stars donald driver
iconlea michele
iconmotorola mobility
iconpacers
iconactuary
iconmemorial day
iconsierra lamar
iconspacex
sikiş film izle