Introduction to XSLT and XPath
A beginner-friendly introduction to XPath — selecting nodes in an XML tree — and XSLT, which transforms XML into other forms such as HTML. Covers XPath (// and predicates), XSLT templates (match→output, value-of, apply-templates), the XML+XSLT→processor→output pipeline, and DH uses like publishing TEI to the web. An experimental, independently-composed video referencing open CC-licensed materials.
XSLTXPathXMLTEIDigital Humanities
⚠ This explainer is an experimental, AI-assisted production (including its structure, figures, and synthesized narration). It may contain inaccuracies—please use it with discretion.
Dialogue walkthrough (VOICEVOX)
Other versions
Narrated explanation
Chapters
- 1
Main
Narration script
- 0:00XMLを選んで、作り変える
- 0:36この動画について
- 1:24この回のゴール
- 2:16今日の流れ
- 2:48XMLは「中身」、見せ方は別
- 3:02XMLは「木(ツリー)」構造
- 3:34そのままでは「見せにくい」
- 4:14選ぶ ― XPath
- 4:22XPath=木の「どこ」を指すパス
- 4:54書き方:スラッシュでたどる
- 5:34角かっこ[ ]で条件を足す
- 6:10ここまでのポイント
- 6:46作り変える ― XSLT
- 6:54XSLT=変換の「指示書」
- 7:25テンプレート=「マッチ→出力」
- 7:56テンプレートの書き方
- 8:35中の要素へ「流し込む」
- 9:02ここまでのポイント
- 9:34全体の流れ
- 9:38XML+XSLT→プロセッサ→出力
- 10:07例:TEIをWebページへ
- 10:46考えてみよう
- 11:12ここまでのポイント
- 11:45使いどころ・始め方
- 11:56DHでの活用
- 12:34「変換」と「問い合わせ」
- 13:32つまずきやすい点
- 14:19始め方・学ぶには
- 15:05まとめ
- 15:55出典・ライセンス
- 16:37ご清聴ありがとうございました










![角かっこ[ ]で条件を足す](/images/lectures/xslt-intro/en/slide-11.png)



















