[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] What is beautiful XML?
- From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@le-tex.de>
- To: xml-dev@lists.xml.org
- Date: Wed, 28 Feb 2018 21:01:33 +0100
On 28/02/2018 19:33, Dimitre Novatchev wrote:
Extending a little:
What is a "beautiful XPath expression"?
What you’d regard as beautiful XPath, Dimitre, might be far too concise
for other people to comprehend ;)
What is a beautiful XSLT transformation?
Occurrence of xsl:next-match, possibly also with one or more tunneled
parameters, often serves as an indicator of an elegant XSLT
transformation (and it tells me that the author knows how to virtuously
employ XSLT core concepts such as template matching, priority, import
precedence, tunneling etc.).
Other “advanced XSLT” indicators merely document good practice. Examples
include the “as” attribute for type checking, xsl:for-each-group instead
of collecting following nodes and then then desperately trying to
suppress duplicating them, or using xsl:sequence instead of xsl:value-of
when they want to return an atomic value rather than a text node. But
this isn’t beautiful in itself, this is just good practice.
Gerrit
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]