Re: [xml-dev] What is beautiful XML?

From
Imsieke, Gerrit, le-tex <>
To
Date
2018-02-28T20:01:33Z
ID
<>
Thread
Re: [xml-dev] What is beautiful XML?
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