aboutsummaryrefslogtreecommitdiff
path: root/files/pt-pt/web/xslt
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
commit074785cea106179cb3305637055ab0a009ca74f2 (patch)
treee6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pt-pt/web/xslt
parentda78a9e329e272dedb2400b79a3bdeebff387d47 (diff)
downloadtranslated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz
translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2
translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip
initial commit
Diffstat (limited to 'files/pt-pt/web/xslt')
-rw-r--r--files/pt-pt/web/xslt/comunidade/index.html8
-rw-r--r--files/pt-pt/web/xslt/elementos/index.html59
-rw-r--r--files/pt-pt/web/xslt/index.html56
3 files changed, 123 insertions, 0 deletions
diff --git a/files/pt-pt/web/xslt/comunidade/index.html b/files/pt-pt/web/xslt/comunidade/index.html
new file mode 100644
index 0000000000..04308fdeaa
--- /dev/null
+++ b/files/pt-pt/web/xslt/comunidade/index.html
@@ -0,0 +1,8 @@
+---
+title: Comunidade
+slug: Web/XSLT/Comunidade
+---
+<p>Grupo XSLT Portugal
+</p><p>Onde XSLT é discutido em português para os portugueses. Este grupo dispõe de soluções práticas para problemas comums em XSLT e XPath, assim como, auxiliar principiantes ou menos experientes a resolverem problemas. </p><p>Embora o grupo seja dedicado especialmente ao XSLT, não quer dizer que outras tecnologias directamente ligadas não possam ser discutidas, tais como: XML, XPath, XQuery, XML Schema, Schematron, HTML, RSS, CSS, AJAX, etc. </p><p>Claro que seria preferível discutir o uso de tecnologias em que predomine o XSLT.
+</p><p><a href="http://groups.google.com/group/xslt-portugal" class=" external" rel="freelink">http://groups.google.com/group/xslt-portugal</a>
+</p>
diff --git a/files/pt-pt/web/xslt/elementos/index.html b/files/pt-pt/web/xslt/elementos/index.html
new file mode 100644
index 0000000000..e47f8bed0b
--- /dev/null
+++ b/files/pt-pt/web/xslt/elementos/index.html
@@ -0,0 +1,59 @@
+---
+title: Elementos
+slug: Web/XSLT/Elementos
+tags:
+ - Referência_XSLT
+---
+<p>
+{{ XsltRef() }}
+Existem dois tipos de elementos discutidos aqui: elementos de topo de nível e instruções. Um elemento de topo de nível deve aparecer como filho de qualquer <code>&lt;xsl:stylesheet&gt;</code> ou <code>&lt;xsl:transform&gt;</code>. Uma instrução, por outro lado, é associada com o modelo. Uma folha de estilo pode incluir vários modelos. Um terceiro tipo de elemento, não discutido aqui, é o elemento literal do resultado (LRE). Um LRE também aparece em um modelo. Ele consiste em qualquer elemento não-instrução que deva ser copiado como é para o resultado do documento, por exemplo, o elemento <code>&lt;hr&gt;</code> em uma folha de estilo de conversão HTML.
+</p><p>Em uma nota relacionada, qualquer atributo em uma LRE e alguns atributos de um número limitado de elementos XSLT podem também ser incluídos como o valor de um atributo do modelo. Um valor de atributo do modelo é simplesmente uma string que inclui uma expressão XPath encaixada que é usada para especificar o valor de um atributo. Na hora de rodar a expressão é avaliada e o resulta da avaliação é substituido pela expressão XPath. Por exemplo, assumindo que a variável "&lt;tt&gt;image-dir&lt;/tt&gt;" é definida pelo seguinte:
+</p>
+<pre>&lt;xsl:variable name="image-dir"&gt;/images&lt;/xsl:variable&gt;</pre>
+<p>A expressão para ser avaliada é colocada no interior de chaves:
+</p>
+<pre>&lt;img src="{$image-dir}/mygraphic.jpg"/&gt;</pre>
+<p>Isto resultaria no seguinte:
+</p>
+<pre>&lt;img src="/images/mygraphic.jpg"/&gt;</pre>
+<p>As anotações do elemento que seguem incluem uma descrição, uma lista de sintaxe, uma lista de atributos requeridos e opcionais, uma descrição do tipo e posição, seu código na W3C Recommendation e uma explanação dos graus presentes do suporte Gecko.
+</p>
+<ul><li> <a href="pt/XSLT/apply-imports">xsl:apply-imports</a>
+</li><li> <a href="pt/XSLT/apply-templates">xsl:apply-templates</a>
+</li><li> <a href="pt/XSLT/attribute">xsl:attribute</a>
+</li><li> <a href="pt/XSLT/attribute-set">xsl:attribute-set</a>
+</li><li> <a href="pt/XSLT/call-template">xsl:call-template</a>
+</li><li> <a href="pt/XSLT/choose">xsl:choose</a>
+</li><li> <a href="pt/XSLT/comment">xsl:comment</a>
+</li><li> <a href="pt/XSLT/copy">xsl:copy</a>
+</li><li> <a href="pt/XSLT/copy-of">xsl:copy-of</a>
+</li><li> <a href="pt/XSLT/decimal-format">xsl:decimal-format</a>
+</li><li> <a href="pt/XSLT/element">xsl:element</a>
+</li><li> <a href="pt/XSLT/fallback">xsl:fallback</a> <i>(não suportado)</i>
+</li><li> <a href="pt/XSLT/for-each">xsl:for-each</a>
+</li><li> <a href="pt/XSLT/if">xsl:if</a>
+</li><li> <a href="pt/XSLT/import">xsl:import</a> <i>(suportado na maior parte)</i>
+</li><li> <a href="pt/XSLT/include">xsl:include</a>
+</li><li> <a href="pt/XSLT/key">xsl:key</a>
+</li><li> <a href="pt/XSLT/message">xsl:message</a>
+</li><li> <a href="pt/XSLT/namespace-alias">xsl:namespace-alias</a> <i>(não suportado)</i>
+</li><li> <a href="pt/XSLT/number">xsl:number</a> <i>(parcialmente suportado)</i>
+</li><li> <a href="pt/XSLT/otherwise">xsl:otherwise</a>
+</li><li> <a href="pt/XSLT/output">xsl:output</a> <i>(parcialmente suportado)</i>
+</li><li> <a href="pt/XSLT/param">xsl:param</a>
+</li><li> <a href="pt/XSLT/preserve-space">xsl:preserve-space</a>
+</li><li> <a href="pt/XSLT/processing-instruction">xsl:processing-instruction</a>
+</li><li> <a href="pt/XSLT/sort">xsl:sort</a>
+</li><li> <a href="pt/XSLT/strip-space">xsl:strip-space</a>
+</li><li> <a href="pt/XSLT/stylesheet">xsl:stylesheet</a> <i>(parcialmente suportado)</i>
+</li><li> <a href="pt/XSLT/template">xsl:template</a>
+</li><li> <a href="pt/XSLT/text">xsl:text</a> <i>(parcialmente suportado)</i>
+</li><li> <a href="pt/XSLT/transform">xsl:transform</a>
+</li><li> <a href="pt/XSLT/value-of">xsl:value-of</a> <i>(parcialmente suportado)</i>
+</li><li> <a href="pt/XSLT/variable">xsl:variable</a>
+</li><li> <a href="pt/XSLT/when">xsl:when</a>
+</li><li> <a href="pt/XSLT/with-param">xsl:with-param</a>
+</li></ul>
+<p><span class="comment">Categorias</span>
+</p><p><span class="comment">Interwiki Language Links</span>
+</p>{{ languages( { "en": "en/XSLT/Elements", "fr": "fr/XSLT/\u00c9l\u00e9ments", "ja": "ja/XSLT/Elements", "pl": "pl/XSLT/Elementy" } ) }}
diff --git a/files/pt-pt/web/xslt/index.html b/files/pt-pt/web/xslt/index.html
new file mode 100644
index 0000000000..313b05081f
--- /dev/null
+++ b/files/pt-pt/web/xslt/index.html
@@ -0,0 +1,56 @@
+---
+title: XSLT
+slug: Web/XSLT
+tags:
+ - XSLT
+translation_of: Web/XSLT
+---
+<div><strong>Extensible Stylesheet Language Transformations (XSLT)</strong> é uma linguagem utilizada baseada em <a href="/pt/XML" title="pt/XML">XML</a>, em conjunto com software de processamento especializado, para a transformação de documentos XML. Apesar do processo ser referido como "transformação", o documento original não é alterado; em vez disso, é criado um novo documento XML baseado no conteúdo de um documento existente. Depois, o novo documento poderá ser serializado (saída) pelo processador na sintaxe XML padrão ou em outro formato, tais como <a href="/pt/HTML" title="pt/HTML">HTML</a> ou texto simples. XLST é frequentemente utilizado para converter dados entre esquemas XML diferentes ou para converter dados XML em páginas da Web ou documentos PDF. {{ Ref("one") }}</div>
+
+<table class="topicpage-table">
+ <tbody>
+ <tr>
+ <td>
+ <h2 class="Documentation" id="Documentation" name="Documentation">Documentação</h2>
+
+ <dl>
+ <dt><a href="/en-US/docs/XSLT/Elements" title="XSLT/Elements">XSLT Element Reference</a></dt>
+ <dd>Reference.</dd>
+ <dt><a href="/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT" title="Transforming_XML_with_XSLT">Transforming XML with XSLT</a></dt>
+ <dd>XSLT allows a stylesheet author to transform a primary XML document in two significant ways: manipulating and sorting the content, including a wholesale reordering of it if so desired, and transforming the content into a different format.</dd>
+ <dt><a href="/en-US/docs/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations" title="Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations">Using the Mozilla JavaScript interface to XSL Transformations</a></dt>
+ <dd>This document describes the JavaScript interface to the XSLT processing engine in Mozilla 1.2 and up.</dd>
+ <dt><a href="/en-US/docs/XSLT/PI_Parameters" title="XSLT/PI_Parameters">Specifying parameters using processing instructions</a></dt>
+ <dd>Firefox allows stylesheet parameters to be specified when using the <code>&lt;?xml-stylesheet?&gt;</code> processing instruction. This is done using the <code>&lt;?xslt-param?&gt;</code> PI described in this document.</dd>
+ <dt><span class="external">XSLT &amp; XPath Tutorial</span></dt>
+ <dd>The TopXML XSLT tutorial introduces you to the basics of XSLT concepts, syntax, and programming.</dd>
+ <dt><a class="external" href="http://www.w3schools.com/xml/xsl_intro.asp">XSLT Tutorial</a></dt>
+ <dd>This <a class="external" href="http://www.w3schools.com">W3Schools</a> tutorial teaches the reader how to use XSLT to transform XML documents into other formats, like XHTML.</dd>
+ <dt><a class="external" href="http://www.xml.com/pub/a/2000/08/holman/">What is XSLT?</a></dt>
+ <dd>This extensive introduction to XSLT and XPath assumes no prior knowledge of the technologies, and guides the reader through background, context, structure, concepts and introductory terminology.</dd>
+ <dt><a href="/en-US/docs/Common_XSLT_Errors" title="Common XSLT Errors">Common XSLT Errors</a></dt>
+ <dd>This article lists some common problems using XSLT in Firefox.</dd>
+ <dt><a href="/en-US/docs/XSLT_2.0" title="XSLT_2.0">XSLT 2.0</a> (new)</dt>
+ </dl>
+
+ <p><span class="alllinks"><a href="/en-US/docs/tag/XSLT" title="en-US/docs/tag/XSLT">View All...</a></span></p>
+ </td>
+ <td>
+ <h2 class="Community" id="Community" name="Community">Comunidade</h2>
+
+ <ul>
+ <li>View Mozilla forums... {{ DiscussionList("dev-tech-xslt", "mozilla.dev.tech.xslt") }}</li>
+ </ul>
+
+ <h4 class="Related_Topics" id="Related_Topics" name="Related_Topics">Tópicos Relacionados</h4>
+
+ <ul>
+ <li><a href="/pt-PT/docs/Introducao_a_XML" title="XML">XML</a>, <a href="/pt-PT/docs/Web/XPath" title="XPath">XPath</a>, <a href="/en-US/docs/XQuery" title="XQuery">XQuery</a></li>
+ </ul>
+ </td>
+ </tr>
+ </tbody>
+</table>
+
+<hr>
+<p><small>{{ endnote("one") }} Esta descrição de XSLT foi obtida do <a class="external" href="https://pt.wikipedia.org/wiki/XSLT">artigo XSLT da Wikipédia</a>. </small></p>