in reply to Why XSLT and not just Perl?
The reason for using XSLT is that you already have a number of XML tools. The ability to leverage those tools makes XSLT worthwhile.
Of course, we do have XML tools: it's called Perl. So use Perl to handle your XSLT!
One thing I find irritating about both XSLT and CSS ( Cascading Style Sheets )---both are concerned with the appearance of documents; both provided less than the full power of a programming language.
When converting an XML document into HTML, there might be some dynamic text extrtacted from the tags, and some static text. In Perl, the subroutine which processes a tag can generate the static text as well. The two segments are encapsulated into a unit, and distinguinished from the text, static or dynamic, associated with another tag. If you decide to rearrange the HTML, it's simple to do so without modifying the routines that deal with the tags.
Similarly, it is difficult to use symbolic constants in CSS. My web page stylesheets refer to colours in various places. The first rule of CS club says to use symbolic constants, so that when you decide to change the colours, you find all the instances of the colour. (And also to make sure that if #40f098 is used for two purposes, only the one which is supposed to change gets modified.)
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
|---|