<xsl:value-of select="/member/@name"/>
解决方案 »
- ASP.NET中表单保存的时候如果防止用户重复提交
- 请问VS2008中为什么HTML控件无法转成服务器控件?
- 关于分页 谁帮我看下着段代码的问题
- 关于完全自定义安装ASP.NET WEB应用程序的疑问??
- 询问GBK2312编码集
- 属性具有无效大小值
- 怎么生成假静态页面???asp.net->HTML====================
- Server.Transfer错误,原因遍寻不觅,请大家帮忙
- 在win2003 server的vs.net 2003上新建web应用程序出现下列提示,实在是搞不定 :(
- sql server 中的自动编号问题?
- 请教高手,关于双击问题?
- 把表中一行的数据显示在TEXTBOX上
<member name="M:WebControls.DBTreeView.HasField(System.Data.DataTable,System.String, System.Drawing.Color)">
<summary>
判断DBTreeView控件的数据源source中是否含有指定的字段field。
</summary>
<param name="source">DBTreeView控件的数据源。</param>
<param name="field">指定数据源中的字段。</param>
<param name="field2">指定数据源中的字段。</param>
<returns>如果数据源中有指定的字段,返回true,否则返回false。 </returns>
</member>
2. xsl:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />
<xsl:variable name="params" select="member/param" /> <xsl:template match="/">
<!--get function signature -->
<xsl:variable name="func">
<xsl:value-of select="substring-after(substring-after(member/@name,'.'),'.')" />
</xsl:variable>
<!--get function name -->
<xsl:variable name="funcname">
<xsl:value-of select="substring-before($func,'(')" />
</xsl:variable>
<!--get paramater list -->
<xsl:variable name="formalparamlist">
<xsl:value-of select="substring-before(substring-after($func,'('),')')" />
</xsl:variable>
<!--construct call list -->
<xsl:variable name="realparamlist">
<xsl:call-template name="makeParamList">
<xsl:with-param name="paramlist" select="$formalparamlist" />
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="$funcname" />
<xsl:text>(</xsl:text>
<xsl:value-of select="$realparamlist" />
<xsl:text>)</xsl:text>
</xsl:template>
<!--remove namespace -->
<xsl:template name="getDataType">
<xsl:param name="DataType" />
<xsl:choose>
<xsl:when test="contains($DataType,'.')">
<xsl:call-template name="getDataType">
<xsl:with-param name="DataType" select="substring-after($DataType,'.')" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$DataType" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="makeParamList">
<xsl:param name="paramlist" />
<xsl:param name="pos" select="1" />
<xsl:choose>
<xsl:when test="contains($paramlist,',')">
<xsl:call-template name="getDataType">
<xsl:with-param name="DataType" select="substring-before($paramlist,',')" />
</xsl:call-template>
<xsl:text> </xsl:text><xsl:value-of select="$params[$pos]/@name" /><xsl:text>,</xsl:text>
<xsl:call-template name="makeParamList">
<xsl:with-param name="paramlist" select="substring-after($paramlist,',')" />
<xsl:with-param name="pos" select="$pos + 1" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="getDataType">
<xsl:with-param name="DataType" select="$paramlist" />
</xsl:call-template>
<xsl:text> </xsl:text><xsl:value-of select="$params[$pos]/@name" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>