--- title: template slug: Web/XSLT/Element/template tags: - Dokumentacje - Wszystkie_kategorie - XSLT - XSLT:Dokumentacje translation_of: Web/XSLT/Element/template original_slug: Web/XSLT/template ---
{{ XsltRef() }}
Element <xsl:template>
definiuje szablon produkujący wyjście. Ten element musi posiadać ustawiony atrybut match lub atrybut name.
<xsl:template match=WZORZEC name=NAZWA mode=NAZWA priority=LICZBA> <xsl:param> [opcjonalnie] SZABLON </xsl:template>
Brak.
match
name
.
name
<xsl:call-template>
.
mode
<xsl:apply-templates>
. Jest to użyteczne przy przetwarzaniu tej samej informacji na różne sposoby.
priority
Infinity
. Procesor używa tej liczby, gdy więcej niż jeden szablon dobiera ten sam węzeł.
Element najwyższego poziomu, musi być dzieckiem <xsl:stylesheet>
lub <xsl:transform>
.
XSLT, sekcja 5.3.
Obsługuje.
{{ languages( { "en": "en/XSLT/template", "fr": "fr/XSLT/template" } ) }}