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="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:import href="user_vistaMedia.xsl"/>
- <xsl:output method="xhtml" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
- <xsl:strip-space elements="*"/>
- <xsl:template match="/">
- <html xml:lang="pt">
- <head>
- <title>Pagina Utilizador - Vista Longa</title>
- <link rel="stylesheet" type="text/css" href="../CSS.css" charset="UTF-8"/>
- </head>
- <body>
- <div id="barra_de_navegacao">
- <a href="../main.xhtml" class="button1">Pagina Inicial</a>
- <a href="../listas/videos.html" class="button1">Vídeos</a>
- <a href="../listas/lista_videos.html" class="button1">Lista de videos</a>
- <a href="../listas/lista_users.html" class="button1">Lista de utilizadores</a>
- </div>
- <div class="display" id="user">
- <xsl:apply-templates select="//user[@userID = 'user001']"/>
- <!-- Para mudar utilizador, mudar aqui-->
- </div>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="user">
- <xsl:apply-imports/>
- <div class="user_subscricoes">
- <h1>
- <xsl:value-of select="@userID"/>
- </h1>
- <h3>Subscrições</h3>
- <h3>Videos</h3>
- <ul>
- <!-- Comecando em user, precisamos subir na arvore, até á raiz para depois poder descer em direção aos subscritores-->
- <xsl:for-each select="root()//subscritor[@userID = '{@userID}']/*:video">
- <li>
- <a href="../videos/{@videoID}.xhtml" class="button2">
- <xsl:value-of select="root()//video[@videoID = '{videoID}']/nome"/>
- </a>
- </li>
- </xsl:for-each>
- </ul>
- </div>
- <div id="user_comentarios">
- <!---->
- <h1>
- <xsl:value-of select="@userID"/>
- </h1>
- <!---->
- <h3>Comentários</h3>
- <ul>
- <xsl:for-each select="root()//comentario[de[@userID='{@userID}']]">
- <li>
- <div class="button2">
- <a href="../Vídeos/socialtube-vid001.xhtml"> <xsl:value-of select="/texto"/></a>
- </div>
- </li>
- </xsl:for-each>
- </ul>
- </div>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement