XSLT 是一种用于将 XML 文档转换为 XHTML 文档或其他 XML 文档的语言。
XSLT <xsl:value-of> 元素 语法
<xsl:value-of> 元素用于提取某个 XML 元素的值,并把值添加到转换的输出流中
XSLT <xsl:value-of> 元素 示例
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <h2>My CD Collection</h2> <table border="1"> <tr bgcolor="#9acd32"> <th>Title</th> <th>Artist</th> </tr> <tr> <td><xsl:value-of select="catalog/cd/title"/></td> <td><xsl:value-of select="catalog/cd/artist"/></td> </tr> </table> </body> </html></xsl:template> </xsl:stylesheet>
热门推荐
- ValueError(\"Cannot quote parameter value %r of type %s\" % (value, type(value)))的处理方案
- PHP错误Deprecated: Assigning the return value of new
- redis ERR value is not an integer or out of range
- PHP错误Deprecated: Assigning the return value of new_PHP教程
- PHP显示Deprecated: Assigning the return value of new by refe
- 如何解决golang报错:invalid operation: cannot take the address of 'x' (value of type T)