[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] ENTITY declaration


Subject: RE: [xsl] ENTITY declaration
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 10 Jan 2006 09:31:44 -0000

> someone wondered why i want to use '&content;' in place of
> <xsl:value-of select='.' />, especially given that i have nxml-mode's
> autocompletion features to hand.  well, the main reason is that
> visually it's a hundred times easier to spot.

I tend to disagree. Someone who is used to reading XSLT code but unused to
your personal coding style will recognize <xsl:value-of select="."/> far
more quickly than they recognize &content;.

One of my first professional programming assignments involved making
enhancements to an assembler program that made extensive use of a personal
(and of course undocumented) macro library. It was a nightmare, and I've
resisted such temptations ever since.

Michael Kay


Current Thread
Keywords