本站首页    管理页面    写新日志    退出

The Neurotic Fishbowl

[/*SemanticWeb*/]XSLT技巧--绘制分形图
nybon 发表于 2004/12/17 0:48:03

使用IE 6.0(Firefox还不完全支持XSLT可惜 : < )浏览fractal.xml,就能够看到漂亮的分形图。 fractal.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="fractal.xsl"?> <fractal depth="6" color="orange" size="3"/>   fractal.xsl <?xml version="1.0"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">   <xsl:template match="fractal">    <xsl:param name="depth" select="@depth"/>    <table border="0" cellpadding="0" cellspacing="0">      <tr>        <td>          <xsl:call-template name="iterate">            <xsl:with-param name="depth" select="$depth"/>          </xsl:call-template>        </td>      </tr>      <tr>        <td>          <xsl:call-template name="iterate">            <xsl:with-param name="depth" select="$depth"/>          </xsl:call-template>        </td>        <td>          <xsl:call-template name="iterate">            <xsl:with-param name="depth" select="$depth"/>          </xsl:call-template>        </td>      </tr>    </table>  </xsl:template>   <xsl:template name="iterate">    <xsl:param name="depth"/>    <xsl:choose>      <xsl:when test="$depth &gt; 0">        <xsl:apply-templates select=".">          <xsl:with-param name="depth" select="$depth+(-1)"/>        </xsl:apply-templates>        </xsl:when>      <xsl:otherwise>        <table cellpadding="0"  cellspacing="0" border="0" height="{@size}" width="{@size}">          <tr><td bgcolor="{@color}"></td></tr>        </table>      </xsl:otherwise>    </xsl:choose>   </xsl:template> </xsl:stylesheet>

阅读全文(1741) | 回复(0) | 编辑 | 精华

 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)

 
 



The Neurotic Fishbowl

.: 公告

This blog focuses on:

Semantic Web && Java Technology


Bloginess

«November 2025»
1
2345678
9101112131415
16171819202122
23242526272829
30

.: 我的分类(专题)

首页(171)
/*SemanticWeb*/(34)
/*Java*/(74)
/*FreeComments*/(59)
/*Agent*/(4)


In the Bowl

.: 最新日志

The End
使用Google Trends进行选型
怎样才能称为一次新的版本发行?
如何防止RSS信息过载
使用Excel作为用户接口
如何有效地报告Bug
sourceforge再次被封
趣文两篇
编写Firefox扩展
Jetspeed心得随笔


.: 最新回复

回复:Google API与yahoo 
回复:JADE 3.3的bug
回复:JADE 3.3的bug
回复:JADE 3.3的bug
回复:JADE 3.3的bug
回复:Jbpm和Shark比较的feat
回复:JADE 3.3的bug
回复:JADE 3.3的bug
回复:[转]批判性地看待一种可行的表示技
回复:JIRA破解


The Fishkeeper
blog名称:SW Portal
日志总数:171
评论数量:219
留言数量:8
访问次数:1053613
建立时间:2004年10月30日



Text Me

.: 留言板

签写新留言

路过
路过
页脚问题
RE:请问一下你的主页的下面部分是怎么关
请问一下你的主页的下面部分是怎么关闭的?
我是做Mobile Agent的
Gmail
不错
不错啊小倪同学


Other Fish in the Sea

.: 链接





站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 2.520 second(s), page refreshed 144792678 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号