aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/xslt
diff options
context:
space:
mode:
authorFlorian Dieminger <me@fiji-flo.de>2021-02-11 18:29:51 +0100
committerGitHub <noreply@github.com>2021-02-11 18:29:51 +0100
commit2bc5610921312613f8623f7ed347aa576689b2b6 (patch)
treef17a7a00e232c97d1335ff3cb24dbcfafacfe141 /files/zh-cn/web/xslt
parent964decad361766e85d928a56f0ab80af0e75c172 (diff)
parentfc56124ac4eda6b3f0349c8a16fa750f27b4c7d6 (diff)
downloadtranslated-content-2bc5610921312613f8623f7ed347aa576689b2b6.tar.gz
translated-content-2bc5610921312613f8623f7ed347aa576689b2b6.tar.bz2
translated-content-2bc5610921312613f8623f7ed347aa576689b2b6.zip
Merge pull request #32 from fiji-flo/unslugging-zh-cn
Unslugging zh cn
Diffstat (limited to 'files/zh-cn/web/xslt')
-rw-r--r--files/zh-cn/web/xslt/element/index.html (renamed from files/zh-cn/web/xslt/elements/index.html)3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/zh-cn/web/xslt/elements/index.html b/files/zh-cn/web/xslt/element/index.html
index ecc12b2d6e..84959686d4 100644
--- a/files/zh-cn/web/xslt/elements/index.html
+++ b/files/zh-cn/web/xslt/element/index.html
@@ -1,9 +1,10 @@
---
title: Elements
-slug: Web/XSLT/Elements
+slug: Web/XSLT/Element
tags:
- XSLT_Reference
translation_of: Web/XSLT/Element
+original_slug: Web/XSLT/Elements
---
<p>{{ XsltRef() }} There are two types of elements discussed here: top-level elements and instructions. A top-level element must appear as the child of either <code>&lt;xsl:stylesheet&gt;</code> or <code>&lt;xsl:transform&gt;</code>. An instruction, on the other hand, is associated with a template. A stylesheet may include several templates. A third type of element, not discussed here, is the literal result element (LRE). An LRE also appears in a template. It consists of any non-instruction element that should be copied as-is to the result document, for example, an <code>&lt;hr&gt;</code> element in an HTML conversion stylesheet.</p>
<p>On a related note, any attribute in an LRE and some attributes of a limited number of XSLT elements can also include what is known as an attribute value template. An attribute value template is simply a string that includes an embedded XPath expression which is used to specify the value of an attribute. At run-time the expression is evaluated and the result of the evaluation is substituted for the XPath expression. For example, assume that a variable "<code>image-dir</code>" is defined as follows:</p>