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)))的处理方案
- 如何解决golang报错:invalid operation: cannot take the address of 'x' (value of type T)
- Out of range value for column 'column_name' - 如何解决MySQL报错:数据超过字段范围
- Out of range value for column 'column_name' at row 1 - 如何解决MySQL报错:数据超出行1的列范围