Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- exclude-result-prefixes="xs"
- version="2.0">
- <xsl:output method="html" indent="yes"></xsl:output>
- <xsl:template match="/ReviewApplication">
- <html><head><title>ReviewApplication</title></head><body>
- <table border="1">
- <tr>
- <th>UserName</th>
- <th>Recommendations</th>
- </tr>
- <xsl:for-each select="Users/User[UserName='username5']">
- <xsl:variable name="username" select="UserName"></xsl:variable>
- <tr>
- <td>
- <xsl:value-of select="$username/text()"></xsl:value-of>
- </td>
- <td>
- <xsl:value-of select="count(/ReviewApplication/Recommendations/Recommendation/UserName/text()='username5')"></xsl:value-of>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </body></html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement