Cadastrar
Login
Novo texto
Página Inicial
Trending
Arquivo
Português
English
Português
Cadastrar
Login
Novo Texto
Importar Arquivo
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" > <xsl:output method="html" indent="yes"/> <xsl:template match="/"> <html> <head> <meta charset="UTF-8" /> <title>Hypertext hypermedia</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="index.css" /> </head> <body> <div id="wrapper"> <header> <h1>Hypertext hypermedia</h1> </header> <xsl:call-template name ="MENU"/> <!-- menu for moving within a page --> <!-- menu for moving within a page --> <div id="content"> <!-- a place for information about lecture, laboratory, project and links --> <h3 id="lecture">Lecture <!-- reference to a template that allows to display a picture --> <img class="right"> <xsl:attribute name="src"> <xsl:value-of select="hipertext/history/person/image/@source"/> </xsl:attribute> <xsl:attribute name="title"> <xsl:value-of select="hipertext/history/person/image"/> </xsl:attribute> </img> </h3> <p> Information about the lecture. </p> <!-- information about lecture --> <xsl:apply-templates select="hipertext/course/classes[@kind='lecture']/component"/> <!-- reference to a template that allows to display information about laboratory and project --> <xsl:apply-templates select="hipertext/course/classes[@kind='laboratory']"/> <xsl:apply-templates select="hipertext/course/classes[@kind='project']"/> <h3 id="links">Additional information about HTML and XML</h3> <ul> <!-- reference to a template that allows to display links --> <xsl:apply-templates select="hipertext/course/information/links/link"/> </ul> </div> <!-- end content --> </div> <!-- end wrapper --> <footer> <xsl:apply-templates select="hipertext/course/student"/> <!-- reference to a template that allows for displaying information about the name and surname of the student --> </footer> </body> </html> </xsl:template> <xsl:template match="student"> Copyright 2021, <xsl:value-of select="Jan"/> <xsl:text> Jan </xsl:text> <xsl:value-of select="Cieszkowski"/> <xsl:text> Cieszkowski </xsl:text> </xsl:template> <xsl:template match="classes"> <h3 id="lab">Laboratory</h3> <p> Information about the laboratory. </p> <ol> </ol> </xsl:template> <xsl:template name ="MENU"> <nav> <ul> <li> <a href="#lecture">Lecture</a> </li> <li> <a href="#lab">Laboratory</a> </li> <li> <a href="#project">Project</a> </li> <li> <a href="#links">Links</a> </li> <li> <a href="HiH0.xml">History</a> </li> </ul> </nav> </xsl:template> <xsl:template match="hipertext/course/information/links/link"> <xsl:if test="not(position()=1)"> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="@source"/> </xsl:attribute> <xsl:value-of select="."/> </a> </li> </xsl:if> </xsl:template> <xsl:template match="classes[@kind='lecture']/component"> <xsl:for-each select="theme"> <xsl:sort select="theme" order ="ascending"/> <xsl:number format="1. "/> <xsl:value-of select="."/> <br/> </xsl:for-each> </xsl:template> <xsl:template match="classes"> <xsl:if test="@kind='laboratory'"> <h3 id="lab">Laboratory</h3> <p> Information about the laboratory. </p> <ol> <xsl:apply-templates select="component"/> </ol> </xsl:if> </xsl:template> <xsl:template match="classes[@kind='laboratory'] /component"> <xsl:value-of select="position()"/> <xsl:text>. </xsl:text> <xsl:value-of select="topic"/> <br/> <xsl:apply-templates select="theme"/> </xsl:template> <xsl:template match="classes[@kind='laboratory']/component/theme"> <ul> <li> <xsl:value-of select="."/> </li> </ul> </xsl:template> <xsl:template match="classes[@kind='project']"> <h3 id="project">Project</h3> <p> Information about the project. </p> <table style="width:50%; border: 5px solid red"> <tr> <th>Title of the project</th> <th>Score</th> </tr> <xsl:apply-templates select="component"/> </table> </xsl:template> <xsl:template match="classes[@kind='project']/component"> <tr> <td> <xsl:value-of select="topic"/> </td> <td> <xsl:value-of select="score"/> </td> </tr> </xsl:template> </xsl:stylesheet>
Configurações do Texto
Título do Texto :
[Opcional]
Guardar na Pasta :
[Opcional]
Selecionar
Syntax Highlighting :
[Opcional]
Selecionar
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Expiração do Texto :
[Opcional]
Nunca
Auto Destruir
10 Minutos
1 Hora
1 Dia
1 Semana
2 Semanas
1 Mês
6 Meses
1 Ano
Status do Texto :
[Opcional]
Público
Não Listado
Privado (somente membros)
Senha :
[Opcional]
Descrição:
[Opcional]
Tags:
[Opcional]
Criptografar Texto
(
?
)
Criar Novo Texto
No momento você não está logado, isso significa que você não pode editar ou excluir nada que você poste.
Cadastre-se
ou faça o
Login
Idiomas do site
×
English
Português
Você gosta de cookies?
🍪 Usamos cookies para garantir que você obtenha a melhor experiência em nosso site.
Saber mais
Concordo