The Best Use of CSS and Xslt

Thursday, September 09, 2010 by Samuel Bryant. Words : 522

The W3C has defined two style sheet standards for use with the Web—CSS and XSLT. CSS is the older of the two and is most often used with HTML. Although CSS can be used with XML, XSLT is usually chosen as the style sheet with the greatest potential. Although CSS and XSLT can both be used simultaneously with XML, the preferred style sheet is most often XSLT when just one is used.

An example of a collection that would be nicely accessed through the use of XML and XSLT is that of historical novels. Instead of displaying all the data without a focus on specific relationships, certain combinations are more useful and make this collection more accessible with the use of multiple Web pages—one for each important combination of facts. It may be that “items by author” is important or it may be that collections by time period are important. Either way, just one XML document needs to be maintained while an XSLT style sheet would be designed to produce a different view for each combination requested from the user.

Another scenario where XML and XSLT are excellent tools for accessing specific collections of information is in the format of a book. A book is a highly structured object, which is why XML and XSLT are great candidates for displaying the contents in a variety of ways. Both personal computers and personal electronic devices will soon be displaying XML-encoded books, and the Open eBook Forum has already promulgated a standard method of encoding e-books in XML specifically to provide an easy method for interchanging books across reading devices. An interesting example of collection access in XML with the use of XSLT is when documents converted from handwritten notes are too illegible to determine some of the words. The words that were not specifically known can be marked with an “unclear” tag and XSLT can display these words in a specific color.

Sustainable and long-term collections are currently being constructed with the use of XML that are both cross-searchable and compatible with future technologies. He uses a sand castle analogy to demonstrate his ideas about XML. After the castle has been washed away by future technologies, the data (grain of sand) will still exist. XML is like the shovel and pail that makes rebuilding flexible and easy. Another aspect of Web design that focuses on the subject of access is the CGI directory.

The Common Gateway Interface (CGI) is a link between the user of the Web site and the server running the Web site. It allows interaction between the Web site and the user by way of forms that collect information. This information is sent to the CGI directory where a script will usually perform a function with the data collected. If a Webmaster wants to make programs run from a Web site, the CGI directory must be the home of the program. These programs can, among other things, calculate the number of hits, monitor Web traffic, set and read cookies, and tabulate information about the browser or operating system.

Please visit www.pandawild.com, www.regaltown.com, and www.sierrazone.com

Recent News

Suspected US missile strike kills 6 in Pakistan (AP) Wednesday, September 08, 2010 by RSS News Engine

AP - A suspected U.S. drone killed at least six militants in northwestern Pakist...

Health reforms trigger spending shift (Reuters) Thursday, September 09, 2010 by RSS News Engine

Reuters - New U.S. reforms are poised to dramatically shift the nation's healthc...

Toys R Us invades the mall for the holidays (AP) Wednesday, September 08, 2010 by RSS News Engine

AP - Toys R Us plans to invade the mall this holiday season, opening 600 tempora...

Spain to vote on labor market reforms (AP) Thursday, September 09, 2010 by RSS News Engine

AP - Spain's Parliament is putting the finishing touches to reforms aimed at boo...

Time Magazine: Listen Up, Dummies! Obama's Stimulus 'Clearly Helped' (Larry Elder) Thursday, September 09, 2010 by RSS News Engine

Larry Elder - Americans, says Time magazine, are too dumb to appreciate the wond...

How GOP front-runners are commemorating 9-11 (The Upshot) Wednesday, September 08, 2010 by RSS News Engine

The Upshot - One of the narratives of the summer has been the Republican Party's...

UK agency fines Goldman Sachs $27 million (AP) Thursday, September 09, 2010 by RSS News Engine

AP - Britain's financial regulator hit Goldman Sachs International with a 17.5 m...

Random Articles

Data Center Outsourcing

Data center outsourcing is something that has grown in popularity for a number of reasons. Many find that maintaining a data center in-house is not so...

Why It Is Important To Recycle Cell Phones?

Some of the most toxic products being tossed out as household trash are cell phones and electronic devices. This type of trash is called e-trash, and ...

Selling Their Private Label Resell Rights, is a Fairly Easy Process

To obtain the private label resell rights to an e-book, you will need to find an opportunity. Online, it is likely that you will come across a number ...

If You Have an Xbox, Here's How to Download Xbox Games

One thing I've noticed about XBOX owners is that they're always on top of the newest features and gadgets for their system. One of the most talked abo...

Setting up the Asterisk Phone System at Home

The Asterisk phone systems are Linux-based VOIP PBX systems. PBX stands for Private Branch Exchange, and this refers to a division of the phone line w...