[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@l...>
  • To: xml-dev@l...
  • 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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member