构思1
程序员文章站
2022-05-31 21:49:29
...
这是无聊时随便乱想的,还不知道能用来做什么!
<?xml version="1.0" encoding="UTF-8"?>
<operates name="UserDao">
<operate name="queryOne">
<args>
<arg name="name" javaType="String" />
</args>
<hql:sql content="" />
<hqlsql:count content=""/>
<return name="user" javaType="User" />
</operate>
<operate name="queryPage">
<args>
<arg name="name" javaType="String" />
</args>
<hql:sql content="select u from User where u.name = ?" />
<hqlsql:count content=""/>
<return name="" javaType="" />
</operate>
</operates>
create table operate(
id integer,
name varchar(64),
content varchar(255),
primary key(id)
);
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates select="table">
</xsl:apply-templates>
</xsl:template>
<xsl:template match="table">
<table>
<tr>
<td>实体:</td>
<td>
<input id="name" name="name">
<xsl:attriubte name="value">
<xsl:value-of select="./@name"></xsl:value-of>
</xsl:attriubte>
</input>
</td>
</tr>
<xsl:for-each select="//column">
<tr>
<td>属性:</td>
<td>
<input id="">
<xsl:attriubte name="value">
<xsl:value-of select="./@name"></xsl:value-of>
</xsl:attriubte>
</input>
</td>
<td>数据类型</td>
<td><input id="dataType" name="dataType">
<xsl:attriubte name="value">
<xsl:value-of select="./@dataType"></xsl:value-of>
</xsl:attriubte>
</input></td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
推荐阅读