resinweb服务器源文件

源代码在线查看: short-attribute.xtp

软件大小: 3202 K
上传用户: WJQ198926
关键词: resinweb 服务器
下载地址: 免注册下载 普通下载 VIP

相关代码

												Because calculating attributes is very common, the XSLT standard				adds a special syntax for attribute value templates.				A stylesheet can uses an attribute value template to calculate				the template value for the element directly.  Curly brackets introduce				a value-of expression, e.g. "{@class}".  The following stylesheet				is a direct translation of the previous example.												<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">								<xsl:template match="box">				  <table class="{@class}">				    <tr>				      <td>				        <xsl:apply-templates/>				      </td>				    </tr>				  </table>				</xsl:template>								</xsl:stylesheet>												The example XTP and its generated HTML is identical to the previous example				since attribute value templates are just a syntactic shortcut.																<example>				This is an example.				</example>												<table class="example">				<tr>				  <td>This is an example</td>				</tr>				</table>																												 interpolates an attribute's value.																							

相关资源