aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/xsltprocessor
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-06-10 00:09:04 +0900
committerGitHub <noreply@github.com>2021-06-10 00:09:04 +0900
commitce43ac61f9a41606155a948f06b3e061b761f888 (patch)
tree8ecc2c0e58c876fbfa2733073c815363b02481eb /files/ja/web/api/xsltprocessor
parent44deedeeba5f0cf0e92ec099973b7db726e19cd0 (diff)
downloadtranslated-content-ce43ac61f9a41606155a948f06b3e061b761f888.tar.gz
translated-content-ce43ac61f9a41606155a948f06b3e061b761f888.tar.bz2
translated-content-ce43ac61f9a41606155a948f06b3e061b761f888.zip
Web/API/XSLTProcessor/Basic_Example を更新 (#1035)
- 英語版章題マクロを除去 - 2020/12/18 時点の英語版に同期
Diffstat (limited to 'files/ja/web/api/xsltprocessor')
-rw-r--r--files/ja/web/api/xsltprocessor/basic_example/index.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/files/ja/web/api/xsltprocessor/basic_example/index.html b/files/ja/web/api/xsltprocessor/basic_example/index.html
index 3d5b98e875..648b47ce3f 100644
--- a/files/ja/web/api/xsltprocessor/basic_example/index.html
+++ b/files/ja/web/api/xsltprocessor/basic_example/index.html
@@ -1,17 +1,18 @@
---
-title: Basic Example
+title: XSLT の基本的な例
slug: Web/API/XSLTProcessor/Basic_Example
tags:
- XSLT
translation_of: Web/API/XSLTProcessor/Basic_Example
---
-<div>{{英語版章題("Basic Example")}}</div>
-<h2 id=".E5.9F.BA.E6.9C.AC.E7.9A.84.E3.81.AA.E4.BE.8B" name=".E5.9F.BA.E6.9C.AC.E7.9A.84.E3.81.AA.E4.BE.8B">基本的な例</h2>
-<p>最初の例は、ブラウザで XSLT 変換の設定の基本を実演します。 この例は、人が読むことのできる書式で書かれた記事についての情報 (タイトル、著者の一覧、本文) を含む XML ドキュメントを取得します。</p>
-<p>図 1 は基本的な XSLT の例のソースです。XML ドキュメント (example.xml) は記事についての情報を含んでいます。<code>?xml-stylesheet?</code> で処理を指示すると、その href 属性を通して XSLT スタイルシートへリンクします。</p>
+<h2 id="Basic_Example">基本的な例</h2>
+
+<p>最初の例は、ブラウザーで XSLT 変換の設定の基本を実演します。 この例は、人が読むことのできる書式で書かれた記事についての情報 (タイトル、著者の一覧、本文) を含む XML 文書を取得します。</p>
+<p>図 1 は基本的な XSLT の例のソースです。 XML 文書 (example.xml) は記事についての情報を含んでいます。 <code>?xml-stylesheet?</code> で処理を指示すると、その href 属性を通して XSLT スタイルシートへリンクします。</p>
<p>XSLT スタイルシートは、最終的な出力を生成するためのすべてのテンプレートを含む、<code>xsl:stylesheet</code> 要素で開始します。図 1 の例には二つのテンプレートがあります。一つはルートノードに対応し、一つは Author ノードに対応します。ルートノードが出力する記事のタイトルにテンプレートが一致すると、(<code>apply-templates</code> を通して) Authors ノードの子の、すべての Author ノードに対応するテンプレートが処理されます。</p>
+
<p>図 1 : 簡単な XSLT の例</p>
-<p>XML ドキュメント (example.xml) :</p>
+<p>XML 文書 (example.xml) :</p>
<pre class="brush:xml">&lt;?xml version="1.0"?&gt;
&lt;?xml-stylesheet type="text/xsl" href="example.xsl"?&gt;
@@ -41,9 +42,10 @@ translation_of: Web/API/XSLTProcessor/Basic_Example
&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;</pre>
-<p>ブラウザの出力:</p>
+
+<p>ブラウザーの出力:</p>
+
<pre>Article - My Article
Authors:
- Mr. Foo
-- Mr. Bar
-</pre>
+- Mr. Bar</pre>