Subject: Re: [xsl] XSLT 4 xsl:with From: "Pieter Lamers pieter.lamers@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 19 May 2020 17:14:40 -0000 |
On Tue, 2020-05-19 at 08:54 +0000, Pieter Masereeuw pieter@xxxxxxxxxxxxBecause such a for-each does not repeat, I always add a comment like <!-- Merely sets the context, does not repeat -->.I tend to comment these too, although not with the repeat part - be careful, too, as in English a less-informed reader might get an incorrect impression reinforced that for-each is a loop, rather than a mapping operator.
Yes, an xsl:with-context-item select=.... would be clearer. Wkether it's worth increasing the size of the language for it is a judgment call that's a little harder, i think.
Best,
Liam
-- Pieter Lamers John Benjamins Publishing Company Postal Address: P.O. Box 36224, 1020 ME AMSTERDAM, The Netherlands Visiting Address: Klaprozenweg 75G, 1033 NN AMSTERDAM, The Netherlands Warehouse: Kelvinstraat 11-13, 1446 TK PURMEREND, The Netherlands tel: +31 20 630 4747 web: www.benjamins.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT 4 xsl:with, Liam R. E. Quin liam | Thread | Re: [xsl] XSLT 4 xsl:with, Imsieke, Gerrit, le- |
Re: [xsl] XSLT 4 xsl:with, Liam R. E. Quin liam | Date | Re: [xsl] XSLT 4 xsl:with, Imsieke, Gerrit, le- |
Month |