Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="2.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
- xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:p="http://www.dei.isep.ipp.pt/lprog">
- <xsl:output method="text" indent="yes" />
- <xsl:template match="/">
- <head>
- <title>Gestão de Máquinas de Venda automática</title>
- </head>
- <body>
- <div>
- <xsl:apply-templates select="Maquina" />
- </div>
- </body>
- </xsl:template>
- <xsl:template match="Maquina">
- <xsl:apply-templates select="Maquina" />
- </xsl:template>
- <xsl:template match="Maquina" >
- <div>
- Maquina - <xsl:value-of select="@IDMaquina"/>
- <xsl:apply-templates select="LocalizacaoMaquina"/>
- <xsl:apply-templates select="CalendarioReposicao"/>
- </div>
- </xsl:template>
- <xsl:template match="caixa">
- LocalizacaoMaquina<br/>
- <xsl:value-of select="LocalizacaoMaquina"/><br/>
- Produtos-<xsl:value-of select="produto"/><br/>
- Preço-<xsl:value-of select="preco"/><br/>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement