正在加载图片...
XSLT (eXtensible Stylesheet Language Transformations <?xml version =1.0"encoding=UTF-8 ?> <xsl: stylesheet version=1.0 xmins:xsl="http://www.w3.org/1999/xsl/transform"> <xsl: template match=" Person"> <html> <head><title>An author </title></head> <body> <h2>Introduction </ h2> <table><tr><th> First name</th> <th>Last name</th><th>Age</th></tr> <tr><xsl: for -each select=Name> <td><xsl: value-of select= First"/></td> <td><xsl: value-of select="Last /></td> </xsl: for-each> <td><xsl: value-of select ="Age"/></td></tr> </table></body></html> </sI: template> </sI: stylesheet>XSLT (eXtensible Stylesheet Language Transformations) <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/Person"> <html> <head><title>An author</title></head> <body> <h2>Introduction</h2> <table><tr><th>First name</th> <th>Last name</th><th>Age</th></tr> <tr><xsl:for-each select="Name"> <td><xsl:value-of select="First"/></td> <td><xsl:value-of select="Last"/></td> </xsl:for-each> <td><xsl:value-of select="Age"/></td></tr> </table></body></html> </xsl:template> </xsl:stylesheet>
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有