xsl-list
[Top] [All Lists]

RE: ENTITY declaration

2006-01-10 02:31:44
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>