XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS