Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.73 KB | None | 0 0
  1. <xsl:stylesheet version="1.0"
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="html" encoding="utf-8" indent="yes"/>
  4.  
  5. <xsl:template match="/entityset">
  6.     <html>
  7.         <body>
  8.             <table border="1">
  9.                 <tr>
  10.                     <th>StartSupportgroup</th>
  11.                     <th>Store</th>
  12.                     <th>Phone</th>
  13.                 </tr>
  14.                 <xsl:apply-templates select="entity"/>
  15.             </table>
  16.         </body>
  17.     </html>
  18. </xsl:template>
  19.  
  20. <xsl:template match="entity">  
  21.     <tr>
  22.         <td><xsl:value-of select="attribute[@code='start_supportGroup']/value"/></td>
  23.         <td><xsl:value-of select="attribute[@code='store']/reference/@name"/></td>
  24.         <td><xsl:value-of select="attribute[@code='phone']/value"/></td>
  25.     </tr>
  26. </xsl:template>
  27.  
  28. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement