On 2/04/2003 20:25 Stefano Mazzocchi wrote:
IMHO, the template language which is closer to the optimum is XSLT but only with one change:
FORGET THE XML SYNTAX!
Corollary, we should drop the XML syntax for the sitemap. I customarily use this syntax when RT'ing snippets:
match pattern="foo" generate src="baa.xml" transform src="too.xsl" serialize
No!
my "forget the xml syntax" is for those languages that reach the infamous <if> tag.
if you remove actions and actions-sets (which shouldn't be there anyway), the sitemap is a completely declarative language and for that matter, the xml syntax doesn't hurt at all.
It's when you have to do nested <if><else></else></if> than you get into trouble.
Another example of a perfectly fine xml syntax? ant build files.
It's because James Clark is obsessed by accadmic elegance that xslt can be used to process itself.
XSLT is flexibility syndrome carved into markup.
Stefano.