<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pontilhado &#187; HTML</title>
	<atom:link href="http://www.pontilhado.com.br/index.php/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pontilhado.com.br</link>
	<description>Tudo sobre Tecnologia</description>
	<lastBuildDate>Tue, 25 Aug 2009 18:10:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Falando sobre XSLT</title>
		<link>http://www.pontilhado.com.br/index.php/2009/08/24/xslt/</link>
		<comments>http://www.pontilhado.com.br/index.php/2009/08/24/xslt/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 16:48:54 +0000</pubDate>
		<dc:creator>Pontilhado</dc:creator>
				<category><![CDATA[Outras]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSLT]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.arenadacriacao.com.br/pontilhado/?p=1</guid>
		<description><![CDATA[Sejam Bem-vindos ao Blog do Pontilhado.
Escolhi esse primeiro assunto como pontapé inicial do Blog. Aproveitei uma semana de estudo sobre essa linguagem para falar um pouco sobre ela!
Observação
Antes de estudar XSLT você deve saber o básico de XML e XML Namespaces.
Resumo
XSLT, é uma linguagem para transformar documentos XML em outros documentos XML.
XSLT é projetado para [...]]]></description>
			<content:encoded><![CDATA[<p>Sejam Bem-vindos ao Blog do Pontilhado.</p>
<p>Escolhi esse primeiro assunto como pontapé inicial do Blog. Aproveitei uma semana de estudo sobre essa linguagem para falar um pouco sobre ela!</p>
<h3><strong>Observação</strong></h3>
<p>Antes de estudar XSLT você deve saber o básico de XML e XML Namespaces.</p>
<h3><strong>Resumo</strong></h3>
<p>XSLT, é uma linguagem para transformar documentos XML em outros documentos XML.</p>
<p>XSLT é projetado para ser utilizado como parte de XSL (e<strong>X</strong>tensible <strong>S</strong>tylesheet <strong>L</strong>anguage), que é um estilo de linguagem XML. Além de XSLT, XSL inclui um vocabulário XML para a especificação de formatação. XSL especifica o estilo de um documento XML, utilizando XSLT para descrever como o documento é transformado em um outro XML que usa o vocabulário de formatação.</p>
<p><span id="more-1"></span></p>
<p><code><strong>XSL consiste de 3 partes:</strong></code></p>
<ul>
<li>XSLT é uma linguagem para transformar documentos XML</li>
<li>XPath é uma linguagem para definir partes de um documento XML</li>
<li>XSL-FO é uma linguagem para formatar documentos XML</li>
</ul>
<p>Pense em XSL como um conjunto de linguagens que podem <strong>transformar</strong> XML em XHTML, <strong>filtrar e ordenar</strong> dados XML, <strong>definir partes</strong> de um documento XML, <strong>formatar</strong> dados XML baseados nos valores dos dados, como mostrar valores negativos em vermelho, e <strong>exportar</strong> dados XML para mídias diferentes, como telas, papel ou voz.</p>
<p>XSLT tornou-se uma Recomendação W3C em 16 de Novembro de 1999.</p>
<p>Para conhecer mais afundo eu recomento essa apostila da <a title="Visie" href="http://www.visie.com.br" target="_blank">Visie</a> que encontrei <a title="Apostila de XSLT" href="http://visie.com.br/treinamento/pdf//pdfs/Visie-XSLT.pdf" target="_self">XSLT</a>.</p>
<h2 class="ultimo"></h2>
<h2 class="ultimo"><strong>Abaixo um exemplo simples e outro mais avançado:</strong></h2>
<p><strong><br />
</strong></p>
<h3><strong>Documento XML (Simples)<br />
</strong></h3>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #ddbb00;">&amp;lt;</span> ?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span> ?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;menu.xsl&quot;?<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>catalog<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>cd<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>title<span style="color: #ddbb00;">&amp;gt;</span>empire burlesque<span style="color: #ddbb00;">&amp;lt;</span>/title<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>artist<span style="color: #ddbb00;">&amp;gt;</span>bob dylan<span style="color: #ddbb00;">&amp;lt;</span>/artist<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>country<span style="color: #ddbb00;">&amp;gt;</span>usa<span style="color: #ddbb00;">&amp;lt;</span>/country<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>company<span style="color: #ddbb00;">&amp;gt;</span>columbia<span style="color: #ddbb00;">&amp;lt;</span>/company<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>price<span style="color: #ddbb00;">&amp;gt;</span>10.90<span style="color: #ddbb00;">&amp;lt;</span>/price<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>year<span style="color: #ddbb00;">&amp;gt;</span>1985<span style="color: #ddbb00;">&amp;lt;</span>/year<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/cd<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>/catalog<span style="color: #ddbb00;">&amp;gt;</span></pre></div></div>

<h3><strong>Documento XSLT (Simples)<br />
</strong></h3>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #ddbb00;">&amp;lt;</span> ?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>xsl :stylesheet xmlns:xsl=&quot;http://www.w3.org/TR/WD-xsl&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>xsl :template match=&quot;/&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>html<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>body<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>table border=&quot;2&quot; bgcolor=&quot;yellow&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>tr<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>th<span style="color: #ddbb00;">&amp;gt;</span>Title<span style="color: #ddbb00;">&amp;lt;</span>/th<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>th<span style="color: #ddbb00;">&amp;gt;</span>Artist<span style="color: #ddbb00;">&amp;lt;</span>/th<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/tr<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl :for-each select=&quot;catalog/cd&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>tr<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>td<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl :value-of select=&quot;title&quot;/<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/td<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>td<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl :value-of select=&quot;ARTIST&quot;/<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/td<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/tr<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/table<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/body<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/html<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl<span style="color: #ddbb00;">&amp;gt;</span></pre></div></div>

<h3><strong>Documento XML (avançado)</strong><br />
<code> </code></h3>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #ddbb00;">&amp;lt;</span>?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;menu.xsl&quot;?<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>menu<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>secao id=&quot;1&quot; name=&quot;menu-esportes&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>titulo url=&quot;link.html&quot; title=&quot;Esportes&quot;<span style="color: #ddbb00;">&amp;gt;</span>Esportes<span style="color: #ddbb00;">&amp;lt;</span>/titulo<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;Vôlei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Vôlei<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;Futebol&quot;<span style="color: #ddbb00;">&amp;gt;</span>Futebol<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;Fórmula 1&quot;<span style="color: #ddbb00;">&amp;gt;</span>Fórmula 1<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/secao<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>secao id=&quot;2&quot; name=&quot;menu-noticias&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>titulo<span style="color: #ddbb00;">&amp;gt;</span>Notícias<span style="color: #ddbb00;">&amp;lt;</span>/titulo<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Rio de Janeiro<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>São Paulo<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Tecnologia<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/secao<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>secao id=&quot;3&quot; name=&quot;menu-entretenimento&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>titulo<span style="color: #ddbb00;">&amp;gt;</span>Entretenimento<span style="color: #ddbb00;">&amp;lt;</span>/titulo<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Rio de Janeiro<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>São Paulo<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Tecnologia<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>select id=&quot;select-tvglobo&quot; name=&quot;telejornaisProgramas&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item value=&quot;link.html&quot;<span style="color: #ddbb00;">&amp;gt;</span>Alexandre<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item value=&quot;link.html&quot;<span style="color: #ddbb00;">&amp;gt;</span>Alexandre2<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item value=&quot;link.html&quot;<span style="color: #ddbb00;">&amp;gt;</span>Alexandre3<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item value=&quot;link.html&quot;<span style="color: #ddbb00;">&amp;gt;</span>Alexandre4<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/select<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/secao<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>/menu<span style="color: #ddbb00;">&amp;gt;</span></pre></div></div>

<h3><strong>Documento XSLT (Avançado)</strong></h3>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #ddbb00;">&amp;lt;</span>?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;menu.xsl&quot;?<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>menu<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>secao id=&quot;1&quot; name=&quot;menu-esportes&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>titulo url=&quot;link.html&quot; title=&quot;Esportes&quot;<span style="color: #ddbb00;">&amp;gt;</span>Esportes<span style="color: #ddbb00;">&amp;lt;</span>/titulo<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;Vôlei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Vôlei<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;Futebol&quot;<span style="color: #ddbb00;">&amp;gt;</span>Futebol<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;Fórmula 1&quot;<span style="color: #ddbb00;">&amp;gt;</span>Fórmula 1<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/secao<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>secao id=&quot;2&quot; name=&quot;menu-noticias&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>titulo<span style="color: #ddbb00;">&amp;gt;</span>Notícias<span style="color: #ddbb00;">&amp;lt;</span>/titulo<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Rio de Janeiro<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>São Paulo<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Tecnologia<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/secao<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>secao id=&quot;3&quot; name=&quot;menu-entretenimento&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>titulo<span style="color: #ddbb00;">&amp;gt;</span>Entretenimento<span style="color: #ddbb00;">&amp;lt;</span>/titulo<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Rio de Janeiro<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>São Paulo<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item url=&quot;link.html&quot; title=&quot;volei&quot;<span style="color: #ddbb00;">&amp;gt;</span>Tecnologia<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>select id=&quot;select-tvglobo&quot; name=&quot;telejornaisProgramas&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item value=&quot;link.html&quot;<span style="color: #ddbb00;">&amp;gt;</span>Alexandre<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item value=&quot;link.html&quot;<span style="color: #ddbb00;">&amp;gt;</span>Alexandre2<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item value=&quot;link.html&quot;<span style="color: #ddbb00;">&amp;gt;</span>Alexandre3<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>item value=&quot;link.html&quot;<span style="color: #ddbb00;">&amp;gt;</span>Alexandre4<span style="color: #ddbb00;">&amp;lt;</span>/item<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/select<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/secao<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>/menu<span style="color: #ddbb00;">&amp;gt;</span></pre></div></div>

<h3>Documento XSLT (Avançado)</h3>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #ddbb00;">&amp;lt;</span>?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?<span style="color: #ddbb00;">&amp;gt;</span>
<span style="color: #ddbb00;">&amp;lt;</span>xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;<span style="color: #ddbb00;">&amp;gt;</span>
&nbsp;
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:template match=&quot;/&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>html<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>head<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>title<span style="color: #ddbb00;">&amp;gt;</span>menu<span style="color: #ddbb00;">&amp;lt;</span>/title<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>style<span style="color: #ddbb00;">&amp;gt;</span>
 *{margin:0;padding:0;}
 ul, li {list-style-type:none;padding:0;margin:0;}
 legend, fieldset {border:0;}
 legend {display:none;}
 h2 {margin-top:15px;}
 select {display:none;}
 .on {display:block;}
 .menu-esportes a,
 .menu-esportes {color:#006600}
 .menu-noticias a,
 .menu-noticias {color:#FF0000}
 .menu-entretenimento a,
 .menu-entretenimento {color:#ef630c}
 <span style="color: #ddbb00;">&amp;lt;</span>/style<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>script type=&quot;text/javascript&quot; src=&quot;script.js&quot;<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>/script<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/head<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>body<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>h2<span style="color: #ddbb00;">&amp;gt;</span>Menu<span style="color: #ddbb00;">&amp;lt;</span>/h2<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>div id=&quot;glb-menu&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:apply-templates/<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>script type=&quot;text/javascript&quot;<span style="color: #ddbb00;">&amp;gt;</span>glbMenu();<span style="color: #ddbb00;">&amp;lt;</span>/script<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/div<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/body<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/html<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:template<span style="color: #ddbb00;">&amp;gt;</span>
&nbsp;
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:template match=&quot;secao&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>h2<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>xsl:apply-templates select=&quot;titulo&quot;/<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>/h2<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>ul<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:apply-templates select=&quot;item&quot;/<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/ul<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:apply-templates select=&quot;select&quot;/<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:template<span style="color: #ddbb00;">&amp;gt;</span>  
&nbsp;
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:template match=&quot;titulo&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:choose<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:when test=&quot;@url and @title&quot; <span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>a href=&quot;{@url}&quot; title=&quot;{@title}&quot;<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>xsl:value-of select=&quot;.&quot; /<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>/a<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:when<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:otherwise<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:value-of select=&quot;.&quot; /<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:otherwise<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:choose<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:template<span style="color: #ddbb00;">&amp;gt;</span>
&nbsp;
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:template match=&quot;item&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>li<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>a href=&quot;{@url}&quot; title=&quot;{@title}&quot;<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>xsl:value-of select=&quot;.&quot;/<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>/a<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>/li<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:template<span style="color: #ddbb00;">&amp;gt;</span>
&nbsp;
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:template match=&quot;select&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>div id=&quot;{@id}&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>form action=&quot;&quot; method=&quot;&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>fieldset<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>legend<span style="color: #ddbb00;">&amp;gt;</span>Acesso rápido à links sobre globo news<span style="color: #ddbb00;">&amp;lt;</span>/legend<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:element name=&quot;select&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:attribute name=&quot;name&quot;<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>xsl:value-of select=&quot;@name&quot;/<span style="color: #ddbb00;">&amp;gt;&amp;lt;</span>/xsl:attribute<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:for-each select=&quot;item&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:element name=&quot;option&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:attribute name=&quot;value&quot;<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:value-of select=&quot;@value&quot;/<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:attribute<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>xsl:value-of select=&quot;.&quot;/<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:element<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:for-each<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:element<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/fieldset<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/form<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/div<span style="color: #ddbb00;">&amp;gt;</span>
 <span style="color: #ddbb00;">&amp;lt;</span>/xsl:template<span style="color: #ddbb00;">&amp;gt;</span>
&nbsp;
<span style="color: #ddbb00;">&amp;lt;</span>/xsl:stylesheet<span style="color: #ddbb00;">&amp;gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.pontilhado.com.br/index.php/2009/08/24/xslt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
