OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] XML in the alleged Real World (was Re: [xml-dev] Does XML-

[ Lists Home | Date Index | Thread Index ]

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


> -----Original Message-----
> From: Michael Kay [mailto:michael.h.kay@ntlworld.com] 
> 
> 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-----





 

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

Copyright 2001 XML.org. This site is hosted by OASIS