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


 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> -----Original Message-----
> From: Michael Kay [mailto:michael.h.kay@n...] 
> 
> In XSLT 2.0, of course, you can write:
> 
> <xsl:for-each select="1 to 10">
>   <xsl:value-of select="."/>
>   <xsl:text>&#xa;</xsl:text>
> </xsl:for-each>
> 
> or even more concisely:
> 
> <xsl:value-of select="1 to 10" separator="&#xa;"/>

That is an improvement!
 
> which is shorter than the Java version.

Python:

  for i in range(1,10): print i

;)

Bill de hÓra

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPJ9Z0OaWiFwg2CH4EQL1JwCgv6VA+FYt2NbxBU+et16ona8gcekAnRRL
idmoqiQ0w15cP+GjQX/umUwn
=hHT9
-----END PGP SIGNATURE-----


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