XSLT的精髓是递归。 <xsl:template name="loopI"> <xsl:param name="i" select="1" /> <xsl:call-template name="loopJ"> <xsl:with-param name="j" select="1" /> </xsl:call-template> <!-- enter next i if i<=10 --> <xsl:if test="$i < 11> <xsl:call-template name="loopI"> <xsl:with-param name="i" select="$i + 1" /> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template name="loopJ"> <xsl:param name="j" select="1" /> <!-- do you job here --> <!-- enter next i if i<=5--> <xsl:if test="$j < 6 <xsl:call-template name="loopJ"> <xsl:with-param name="j" select="$j + 1" /> </xsl:call-template> </xsl:if> </xsl:template>
南来地,北往的,上班的,下岗的,走过路过不要错过!
======================个性签名=====================
之前认为Apple 的iOS 设计的要比 Android 稳定,我错了吗?
下载的许多客户端程序/游戏程序,经常会Crash,是程序写的不好(内存泄漏?刚启动也会吗?)还是iOS本身的不稳定!!!
如果在Android手机中可以简单联接到ddms,就可以查看系统log,很容易看到程序为什么出错,在iPhone中如何得知呢?试试Organizer吧,分析一下Device logs,也许有用.