SHARE
TWEET

Untitled

a guest May 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:ns="http://seguros//1181491_1171147_1170852" version="2.0">
  3.     <xsl:output method="html"/>
  4.     <xsl:template match="/">
  5.         <html>
  6.             <body>
  7.                 <table border="3">
  8.                     <tr bgcolor="#b3d9ff">
  9.                         <th>Tipo de seguro</th>
  10.                         <th>Valor do premio</th>
  11.                         <th>Vigencia</th>
  12.                     </tr>
  13.                     <xsl:apply-templates/>
  14.                 </table>
  15.             </body>
  16.         </html>
  17.     </xsl:template>
  18.    
  19.     <xsl:template match="ns:clientes/ns:cliente[@nif= '231784899']">
  20.             <b>Nome:</b><xsl:value-of select="/ns:nome"/>
  21.         <xsl:apply-templates select="ns:produto"/>
  22.     </xsl:template>
  23.        
  24.     <xsl:template match= "ns:cobertura">
  25.     </xsl:template>
  26.  
  27.  
  28.     <xsl:template match= "ns:contacto">
  29.     </xsl:template>
  30.     <xsl:template match= "ns:morada">
  31.     </xsl:template>
  32.     <xsl:template match= "ns:produto">
  33.         <tr>
  34.             <td>
  35.                 <xsl:value-of select="@tipo_de_seguro"/>
  36.             </td>
  37.             <td>
  38.                 <xsl:value-of select="ns:valor_do_premio"/>
  39.             </td>
  40.             <td>
  41.                 <xsl:value-of select="ns:vigencia"/>
  42.             </td>
  43.         </tr>
  44.     </xsl:template>
  45.  
  46. </xsl:stylesheet>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top