XSL 関数とは? わかりやすく解説

XSL 関数

このリファレンスにある多くの例は、XML ファイルと XSL ファイルの両方を必要とします。 例では、以下の内容を含む collection.xmlcollection.xsl を使用します。
例 2464. collection.xml
<collection>
 <cd>
  <title>Fight for your mind</title>
  <artist>Ben Harper</artist>
  <year>1995</year>
 </cd>
 <cd>
  <title>Electric Ladyland</title>
  <artist>Jimi Hendrix</artist>
  <year>1997</year>
 </cd>
</collection>
例 2465. collection.xsl
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:param name="owner" select=""Nicolas Eliaszewicz'"/>
 <xsl:output method="html" encoding="iso-8859-1" indent="no"/>
 <xsl:template match="collection">
  Hey! Welcome to <xsl:value-of select="$owner"/>'s sweet CD collection!
  <xsl:apply-templates/>
 </xsl:template>
 <xsl:template match="cd">
  <h1><xsl:value-of select="title"/></h1>
  <h2>by <xsl:value-of select="artist"/> - <xsl:value-of select="year"/></h2>
  <hr />
 </xsl:template>
</xsl:stylesheet>

定義済み定数

以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。
XSL_CLONE_AUTO (integer)
XSL_CLONE_NEVER (integer)
XSL_CLONE_ALWAYS (integer)

目次

XSLTProcessor::__construct — 新規 XSLTProcessor オブジェクトを生成する
XSLTProcessor::getParameter — パラメータの値を取得する
XSLTProcessor::hasExsltSupport — PHP が EXSLT をサポートしているかどうかを判定する
XSLTProcessor::importStylesheet — スタイルシートを取り込む
XSLTProcessor::registerPHPFunctions — PHP 関数を XSLT 関数として利用できるようにする
XSLTProcessor::removeParameter — パラメータを削除する
XSLTProcessor::setParameter — パラメータの値を設定する
XSLTProcessor::transformToDoc — DOMDocument に変換する
XSLTProcessor::transformToURI — URI に変換する
XSLTProcessor::transformToXML — XML に変換する




固有名詞の分類

このページでは「PHP関数リファレンス」からXSL 関数を検索した結果を表示しています。
Weblioに収録されているすべての辞書からXSL 関数を検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からXSL 関数 を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「XSL 関数」の関連用語

XSL 関数のお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



XSL 関数のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2024 by the PHP Documentation Group.

©2024 GRAS Group, Inc.RSS