XSLT, do we need @blocks?

November 16th, 2005

I was working with XSLT today and after some thought I realised that this (especially XSLT2) is turning into a proper programming language (of sorts). If you code XSLT and use the template system aggreesively you can really start to produce well structured XSLT (trust me, this is hard).

It leads me to think about introduced the well known @ comment tags. Creating XSLT with a “methodised” approach could really bring a display language into it’s own: e.g.:


<!--
@name getTableListing
@desc Gets a table listing
@param title:String - The title of the table
@author jh
-->
<xsl :template name="getTableListing">
<xsl :param name="title"/>
<xsl :if test="/ms/test = '1'">
<xsl :value-of select="."/>
</xsl:template>

This kind of approach really starts to produce maintainable style sheets. In fact we need a plugin for eclipse that also does the atypical predictive drop down approach when calling xslt functions - that would be sweet.

Entry Filed under: Technology

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

November 2005
M T W T F S S
« Oct   Dec »
 123456
78910111213
14151617181920
21222324252627
282930  

Most Recent Posts


eXTReMe Tracker