You are on page 1of 1

<?xml version="1.0" encoding="UTF-8"?

>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>

<xsl:template match="painel">
<h2><font color="red"> Mensagem Urgente</font></h2>

<xsl:for-each select="recado[@urgente='s']">
<p><xsl:value-of select="texto"/> de <xsl:value
-of select="autor"/> na data de <xsl:value-of select="@data"/> as <xsl:value-of
select="@horario"/>
<img src="{imagem}"/></p>
</xsl:for-each>

<h2><font color="red"> Mensagem </font></h2>


<xsl:for-each select="recado[@urgente='n']">
<p><xsl:value-of select="texto"/> de <xsl:value
-of select="autor"/> na data de <xsl:value-of select="@data"/> as <xsl:value-of
select="@horario"/>
<img src="{imagem}"/></p>
</xsl:for-each>

</xsl:template>

</xsl:stylesheet>

You might also like