Jump to content


What is XSL?


6 replies to this topic

#1 Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • Gender:Female
  • Location:B.C Canada

Posted 04 August 2006 - 03:35 AM

Remember the good old days, when the internet consisted of nothing more than a few simple websites formatted in basic HTML? Web design was so easy. You could just slap some graphics and text into a file, insert some HTML tags into the document to tell the web browser how the text should appear and what the structure of the page should be, and presto, the job was finished.

As time went on, web design became more arduous. Businesses, especially ecommerce businesses that depended upon their internet storefronts to make a living, began to present web designers with near impossible projects that were too difficult to complete with basic HTML. The data being used and the designs that were being implemented for websites required more versatile programming specifications.

What resulted was the evolution of new specifications and languages for creating web sites. Languages and sub-languages such as XML, XHTML, style sheets, and a host of other more refined and yet more flexible specifications were spliced together to take web design to a new level.

One of the most important languages that came to be in recent years is called XSL. What is XSL, you ask? Well, to totally understand what XSL is and why it is so important, you must first understand XML.

XML is a markup language just like HTML. XML was created to deal with the fact that HTML was limited in that all of its tags were predefined and it displayed data a certain way. XML has no predefined tags, and does not tell a computer how data should appear, it merely defines the data. So, using XML, a web designer can define all sorts of data and more effectively transmit this data to web browsers installed on different platforms that run on a variety of electronic gadgets such as cell phones and other handheld devices that now come equipped with internet access. In a nutshell, XML was created to deal with the fact that so many different electronic products now come equipped with access to the internet and email. These new devices run on platforms that do not always display data properly if it is coded using HTML. XML fixed this situation by simply defining data and not forcing the web browser to display it a certain way, because an XML file is merely a simple text file.

So, again you ask, what is XSL and why is it important? XSL stands for Extensible Stylesheet Language. You have probably heard of Cascading Style Sheets (CSS). CSS is a style sheet language that evolved to make it easier for web designers to create a style for an HTML web page. Because XML is now so important, and because XML tags, as explained in the previous paragraph, do not tell the web browser how data should appear, a stylesheet language that was XML-based became a necessity.

XSL consists of 3 components. The first and most important component is XSLT. XSLT transforms an XML document into another XML document that can actually be understood and displayed by a computer. It accomplishes this by transforming most of the document into XHTML, which is a more versatile, cross-platform, XML-based version of HTML.

The second part of XSL is XPath. XPath is used as the navigator for XSL. XSL uses XPath to find parts of the source document that should match a certain predefined template. When XPath finds what it is looking for, then XSLT takes over and performs a transformation, turning the source document into what is called the result document.

The final part of XSL is known as XSL-FO. This component is for the final formatting. Once XPath has searched through the source document and used XSLT to transform the source document into the result document, the document then needs to be formatted so that the web browser will be able to present the document with the proper layout and structure. Simply put, XSL-FO is the part of XSL that produces the final output.

There are all sorts of helpful online tutorials for programmers and web designers to begin to learn how to use and implement XSL, but it would probably be best take a course in XSL at a local institute, college, or wherever you can find one. If web design is your career, learning it is not an option, it is a necessity, as most web browsers are now capable of understanding XSL. Since the advent of wireless internet access, everything from cell phones, to palm tops, to computer screens in automobiles can be used to connect to the internet. These different devices run on different platforms and have different web browsers that cannot properly display many elements of the HTML programming language. As a result, it is critical for all web designers to be able to create web pages using cross-platform specifications with the adaptability provided by XSL.

About the Author
Jim Pretin is the owner of http://www.forms4free.com, a service that helps programmers make email forms.

#2 BigDog

    Young Padawan

  • Members
  • Pip
  • 277 posts
  • Gender:Male
  • Location:Orange County, California
  • Interests:Running, building computers, PC games and BMX and programming.

Posted 04 August 2006 - 11:17 AM

Wow, I learned alot of this article! I never really learned about XML till now and now i know what xsl is. Nice find on the article Donna!

#3 Net-Margin

    Young Padawan

  • Members
  • Pip
  • 55 posts
  • Location:United Kingdom
  • Interests:My main interests would have to be general computing and digital imaging; but I also enjoy Website Design and animation.<br /><br />Away from the computer I enjoy watching Science programs and astronomy.<br /><br />My main skills would have to be XHTML and Web Marketing but I also have good knowledge in CSS, Search Engine Optimization and Javascript.<br /><br />I own the Macromedia Studio 8 which I believe is one of the best packages ever. I also use Visual Basic 2005 Express Edition.

Posted 05 August 2006 - 04:58 AM

I have been reading up on XLS and XLST to improve my XML knowledge over the past few weeks. Good guide to what XLS actually is.

#4 michaelbenson

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 11 August 2006 - 01:26 PM

Whilst these articles are useful, the sense of familiarity from the hundreds of other websites relaying this freely provided content really doesnt do much to simplify the learning process. Infact the main consequence of this action is a penalty from Google for duplicate content, and unknowingly keyword spamming.

#5 Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • Gender:Female
  • Location:B.C Canada

Posted 11 August 2006 - 01:59 PM

View Postmichaelbenson, on Aug 11 2006, 11:26 AM, said:

Whilst these articles are useful, the sense of familiarity from the hundreds of other websites relaying this freely provided content really doesnt do much to simplify the learning process. Infact the main consequence of this action is a penalty from Google for duplicate content, and unknowingly keyword spamming.

You have that a little wrong in your duplicated content :P If that was the case every news site on the web would have a penalty against them, 90% of forums would be penalized. Please do some research into duplicated content and what it actually means.

And yes it's freely provided content for webmasters to be used as that with full authors details given.

Your reply has nothing to do with this topic so please try and remain to our topics thanks.

#6 xis

    Young Padawan

  • Members
  • Pip
  • 191 posts
  • Gender:Male
  • Location:Los Angeles, Ca.

Posted 11 August 2006 - 02:23 PM

What I find interesting about this whole topic is that in a lot of cases people over think what style markup they should use. For instance someone that's running a site like P2L or an ecommerce site would no doubt need to code their sites in xml, xls ,call it what you will. However, it's the avg. joe/jane who puts together a simple 2 page site with some photo's of his/her cat or dog that is just trying way to hard to code their site with "today standards"

While I think it's great that everyone pushes to become cleaner coders, designers and programmers, I think that over-judging someone for having a simple HTML page with tables and iframes on their site isn't right either.

I think I would get too far off topic if I were to continue :P

Good read, Thanks Donna,
Paul

Edited by xis, 11 August 2006 - 02:25 PM.


#7 Faken

    Pimpmaster G

  • Admin
  • 5,917 posts
  • Gender:Male
  • Location:Montreal, Canada

Posted 11 August 2006 - 05:24 PM

View Postmichaelbenson, on Aug 11 2006, 02:26 PM, said:

Whilst these articles are useful, the sense of familiarity from the hundreds of other websites relaying this freely provided content really doesnt do much to simplify the learning process. Infact the main consequence of this action is a penalty from Google for duplicate content, and unknowingly keyword spamming.

Your concept of duplicate content is incorrect. Penalties are applied for duplicate content when about 2 dozen other score factors indicate that all the sites duplicating the content in question are from the same person. So for example, If I ran 20 sites that all had the content from P2L duplicated, then I could be penalized. Sharing articles with our users from GNU article bases will not get me penalized in any way.

Keyword spamming? No... that's not keyword spamming. Not to mention I don't even think google crawls the forum properly in the first place.

If you still have this need to try and find issues with the site, you might want to PM me about them before hand so you know what you're getting into first.

Dan





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users