Home » Programming » XSL

XSLT Efficient Programming Techniques

XSLT  Efficient Programming Techniques thumbnail Content Inside: XSLT Efficient Programming Techniques Author: Prathit Bondre With the growing popularity of XML as a medium to interact with different systems, more and more organizations are turning to XML to solve their interoperability issues. Also with architects trying to achieve a clear separation between display and business logic, XSLT is gaining importance. XSL, in itself, is an XML document tree (conforming to a specific DTD) that is applied to a data tree (XML document) to produce an output tree (HTML, WML etc). This article presents a list of the best practices to be followed when writing XSL style sheets. This article can be used as a guide to a better way of achieving the right results in XSL. It is meant for developers who are familiar with the basics of XSL but need a roadmap to an efficient way of programming in XSL since performance is always a concern with XML based systems. The information in this article is based on my own extensive reading on XML and XSL. The list of best practices has been compiled from different sources to provide a comprehensive document that will grow as more good practices are discovered. If you have some best practices that you follow which are not listed below, drop me a mail at pbondre@gr.com . 1. Include external files the right way: There are three use cases for including external files in your xsl: 1. You have additional HTML files that you want to include in the document youre producing. If you have an HTML file that you want to include in your output, in exactly the form you want to include it in your output, probably the simplest way to get this into your output is to simply include it as an external parsed entity in the stylesheet. This involves declaring and referencing the entity within your stylesheet ...
Source: www.xml.org

 


Share it with your favorite bookmark service:

add to Google Reader add to Google Bookmark add to Yahoo MyWeb add to digg Bookmark del.icio.us Bookmark StumbleUpon Bookmark technorati add to bloglines add to newsgator add to Netscape Bookmark blinklist add to FURL add to webnews add to spurl.net add to diigo Bookmark Slashdot

Search Terms: ,