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:ns="http://seguros//1181491_1171147_1170852" version="2.0">
- <xsl:output method="html"/>
- <xsl:template match="/">
- <html>
- <body>
- <table border="3">
- <tr bgcolor="#b3d9ff">
- <th>Tipo de seguro</th>
- <th>Valor do premio</th>
- <th>Vigencia</th>
- </tr>
- <xsl:apply-templates/>
- </table>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="ns:clientes/ns:cliente[@nif= '231784899']">
- <b>Nome:</b><xsl:value-of select="/ns:nome"/>
- <xsl:apply-templates select="ns:produto"/>
- </xsl:template>
- <xsl:template match= "ns:cobertura">
- </xsl:template>
- <xsl:template match= "ns:contacto">
- </xsl:template>
- <xsl:template match= "ns:morada">
- </xsl:template>
- <xsl:template match= "ns:produto">
- <tr>
- <td>
- <xsl:value-of select="@tipo_de_seguro"/>
- </td>
- <td>
- <xsl:value-of select="ns:valor_do_premio"/>
- </td>
- <td>
- <xsl:value-of select="ns:vigencia"/>
- </td>
- </tr>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement