Re: The suitability of XSL
Michael Ludwig <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <20091207223940.GD1888@wladimir> |
Jenda Krynicky schrieb am 07.12.2009 um 21:53:10 (+0100): > This is actually my biggest problem with XSLT. Its design is a direct > result of "the only thing I have is a hammer, so everything'd beter > look like nails". That is, the only thing I have is a XML parser so > everything should be XML. By "design", I think, you're referring to the fact (trivial, at the end of the day) that XSLT is written in XML syntax. I agree that it's a bit more verbose than regular expressions, and not quite as friendly on the eyes :-) But well, it also has advantages. Think stuff like: <xsl:copy><Bla><xsl:apply-templates/></Bla></xsl:copy> Programming language and literal result elements are nicely integrated. You have to admit that it's not that bad at all. And I have to admit that at the beginning I found the XML syntax horrible as well. The solution is simple: Get over it, get used to it. > Which is silly. XML is something that, apart from simple examples, > should be generated, not written. So tell that to the publishing industry :-) Actually, I think you should make a time investment to find out about XML editors, or what VIM and Emacs can do for you. I'm a VIM user and with just a tiny bit of customization, editing XSLT works very well. -- Michael Ludwig _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs