text
stringlengths
1
254
output
stringlengths
2
255
The third parameter, attribs, contains an associative array with the element' s attributes (if any).
2番目のパラメヌタ、 name は、 このハンドラがコヌルされた芁玠の名前を有しおいたす。 倧文字倉換 がこのパヌサヌ に関しお有効な堎合、芁玠の名前は倧文字になりたす。
Attribute names are case-folded on the same criteria as element names.
第3のパラメヌタ、 attribs はその芁玠の (å…š)属性に関する連想配列です。この配列のキヌは属性の名前であ り、倀は属性の倀です。属性の名前は、芁玠名ず同様に 倧文字倉換 ずなりたす。 属性の倀は、倧文字倉換 されたせん 。
The original order of the attributes can be retrieved by walking through attribs the normal way, using each().
この属性は、 each() を䜿甚しお attribs を順次アクセスするこずにより 元の順序で取埗するこずができたす。配列の最初のキヌは最初の属 性であり、埌も同様です。
The function named by end_element_handler must accept two parameters: end_element_handler (resource parser, string name)
endElementHandler ずいう名前の関数は、2぀の パラメヌタをずりたす。 endElementHandler (int parser, string name)
The second parameter, name, contains the name of the element for which this handler is called.
最初のパラメヌタ、 parser は ハンドラをコヌルする XML パヌサぞのリファレンスです。
If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
2番目のパラメヌタ、 name はこのハンドラ がコヌルされた芁玠の名前を有しおいたす。このパヌサにおいお 倧文字倉換 が有効な堎合、芁玠名は倧文字になりたす。
Note:
あるハンドラ関数が空の文字列たたは FALSE に蚭定されおいる堎合、そのハンドラは無効です。
Prev
ハンドラが蚭定されおいる堎合に TRUE 、 parser がパヌサでない堎合に FALSE が返されたす。
xml_set_end_namespace_decl_handler
泚意 関数名の代わりに、オブゞェクトぞのリファレンスを栌玍した配列ずメ゜ッド名を指定するこずも出来たす。
Warning
(PHP 4 = 4.0.5)
Note:
この関数は、 珟圚のずころ詳现な情報はありたせん。匕数のリストのみが 蚘述されおいたす。
Prev
泚意 関数名の代わりに、オブゞェクトぞのリファレンスを栌玍した配列ずメ゜ッド名を指定するこずも出来たす。
Prev
(PHP 3 = 3.0.6, PHP 4)
Sets the external entity reference handler function for the XML parser parser. handler is a string containing the name of a function that must exist when xml_parse() is called for parser.
XML パヌサ parser の衚蚘宣蚀甚ハンドラ関数 を蚭定したす。 handler は、 parser に関しお xml_parse() がコヌルされた際に必芁な関数の名前を有する文字列です。
The first parameter, parser, is a reference to the XML parser calling the handler.
最初のパラメヌタ、 parser は ハンドラをコヌルする XML パヌサぞのリファレンスです。
The second parameter, open_entity_names, is a space-separated list of the names of the entities that are open for the parse of this entity (including the name of the referenced entity).
2番目のパラメヌタ、 openEntityNames は、 ゚ンティティの凊理を行うためにオヌプンされた゚ンティティの 名前のスペヌス区切りのリストです。 (参照される゚ンティティの名前を含みたす)
Currently this parameter will always be set to an empty string.
これは倖郚゚ンティティのシステム ID( systemid )を有しおいたす。 珟圚このパラメヌタは垞に空の文字列に蚭定されおいたす。
The fourth parameter, system_id, is the system identifier as specified in the entity declaration.
4番目のパラメヌタ、 systemId は ゚ンティティ宣蚀で指定されたシステム ID です。
If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
5番目のパラメヌタ、 publicId ぱンティ ティ宣蚀で指定されたパブリック IDたたは指定されない堎合は空の 文字列です。パブリック ID の䞭の空癜文字は、XML 仕様で芏定さ れた正芏化を行っおいたす。
Note:
ハンドラ関数は、空の文字列たたはハンドラが無効の堎合 FALSE に蚭定したす。
Prev
ハンドラが蚭定されおいる堎合、 TRUE が返され、 parser がパヌサでない堎合に FALSE が 返されたす。
xml_set_end_namespace_decl_handler
泚意 関数名の代わりに、オブゞェクトぞのリファレンスを栌玍した配列ずメ゜ッド名を指定するこずも出来たす。
Prev
(PHP 3 = 3.0.6, PHP 4)
Sets the notation declaration handler function for the XML parser parser. handler is a string containing the name of a function that must exist when xml_parse() is called for parser.
XMLパヌサ parser の衚蚘法宣蚀甚ハンドラ関数 を蚭定したす。 handler は、 parser に関しお xml_parse() がコヌルされた際に必芁な関数の名前を有する文字列です。
!NOTATION name {system_id _BAR_ public_id}
衚蚘法の宣蚀は、ドキュメントの DTD の郚分であり、次のようなフォヌ マットを有しおいたす。
The first parameter, parser, is a reference to the XML parser calling the handler.
handler ずいう名前の関数は、5぀のパラメヌタを ずりたす。 handler (int parser, string notationName, string base, string systemId, string publicId)
This is the base for resolving the system identifier (system_id) of the notation declaration.
最初のパラメヌタ、 parser は ハンドラをコヌルする XML パヌサぞのリファレンスです。
System identifier of the external notation declaration.
これは、前蚘の衚蚘甚フォヌマットに瀺すように衚蚘法の 名前 です。
If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
倖郚゚ンティティのシステムID( systemId )を 取埗する際の基本ずなりたす。珟圚、このパラメヌタは、垞に空の文 字列に蚭定されおいたす。
Note:
倖郚衚蚘甚宣蚀のパブリック ID
Prev
あるホンドラ関数が空の文字列たたは FALSE に蚭 定されおいた堎合、そのハンドラは無効ずなりたす。
xml_set_external_entity_ref_handler
ハンドラが蚭定されおいる堎合に TRUE 、 parser がパヌサでない堎合に FALSE を返したす。
xml_set_object
泚意 関数名の代わりに、オブゞェクトぞのリファレンスを栌玍した配列ずメ゜ッド名を指定するこずも出来たす。
(PHP 4)
(PHP 4)
All callback functions could be set with xml_set_element_handler() etc and assumed to be methods of object.
この関数は、 object の内郚から parser を䜿甚可胜にしたす。 xml_set_element_handler() 等により蚭定される 党おのコヌルバック関数は、 object のメ゜ッドであるず仮定されたす。
Prev
(PHP 3 = 3.0.6, PHP 4)
Sets the processing instruction (PI) handler function for the XML parser parser. handler is a string containing the name of a function that must exist when xml_parse() is called for parser.
XML パヌサ parser の凊理呜什 (PI)甚ハンドラ 関数を蚭定したす。 handler は、 parser に関しお xml_parse() がコヌルされた際に必芁な関数の名前 を有する文字列です。
? target data?
凊理呜什は、次のフォヌマットを有しおいたす。
The first parameter, parser, is a reference to the XML parser calling the handler.
handler ずいう名前の関数は、次の3 ぀の パラメヌタを匕数ずしたす。 handler (int parser, string target, string data)
The third parameter, data, contains the PI data.
最初のパラメヌタ、 parser は ハンドラをコヌルする XML パヌサぞのリファレンスです。
If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
第2のパラメヌタ、 target は PI のタヌゲットを有しおいたす。
Note:
第3のパラメヌタ、 data は PI デヌタを 有しおいたす。
Prev
あるハンドラ関数が空の文字列たたは、 FALSE に蚭 定されおいる堎合、そのハンドラ無効です。
xml_set_object
ハンドラが蚭定されおいる堎合に TRUE 、 parser がパヌサでない堎合に FALSE が返され たす。
xml_set_start_namespace_decl_handler
泚意 関数名の代わりに、オブゞェクトぞのリファレンスを栌玍した配列ずメ゜ッド名を指定するこずも出来たす。
Warning
(PHP 4 = 4.0.5)
Note:
この関数は、 珟圚のずころ詳现な情報はありたせん。匕数のリストのみが 蚘述されおいたす。
Prev
泚意 関数名の代わりに、オブゞェクトぞのリファレンスを栌玍した配列ずメ゜ッド名を指定するこずも出来たす。
Prev
(PHP 3 = 3.0.6, PHP 4)
Sets the unparsed entity declaration handler function for the XML parser parser. handler is a string containing the name of a function that must exist when xml_parse() is called for parser.
XML パヌサ parser の凊理されない゚ンティティ 宣蚀甚ハンドラ関数を蚭定したす。 handler は、 parser に関しお xml_parse() がコヌルされた際に必芁な関数の名前を有する文字列です。
!ENTITY name {publicId _BAR_ systemId} NDATA notationName
このハンドラは、XML パヌサが次のようなNDATA宣蚀を有する倖郚゚ンティ ティ宣蚀を凊理する際にコヌルされたす。
See section 4.2.2 of the XML 1.0 spec for the definition of notation declared external entities.
倖郚゚ンティティ宣蚀の蚘述甚定矩に関しおは、 XML 1.0 仕様の 4.2.2 節 を参照䞋さい。
The first parameter, parser, is a reference to the XML parser calling the handler.
handler ずいう名前の関数は次のような 6぀のパラメヌタをずりたす。 handler (int parser, string entityName, string base, string systemId, string publicId, string notationName)
This is the base for resolving the system identifier (systemId) of the external entity.
最初のパラメヌタ、 parser は ハンドラをコヌルする XML パヌサぞのリファレンスです。
Currently this parameter will always be set to an empty string.
宣蚀しようずする゚ンティティの名前
Public identifier for the external entity.
倖郚゚ンティティのシステムID( systemId) を取埗する際の基本ずなりたす。珟圚、このパラメヌタは、垞に空 の文字列に蚭定されおいたす。
Name of the notation of this entity (see xml_set_notation_decl_handler()).
倖郚゚ンティティのシステム ID。
If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
倖郚゚ンティティのパブリック ID。
Note:
この゚ンティティの衚蚘法の名前 (xml_set_notation_decl_handler() を参照䞋 さい)
Prev
あるハンドラ関数が空の文字列たたは FALSE に蚭定 されおいた堎合、そのハンドラは無効ずなりたす。
xml_set_start_namespace_decl_handler
ハンドラが蚭定されおいる堎合に TRUE 、 parser がパヌサでない堎合に FALSE を返したす。
XML-RPC functions
泚意 関数名の代わりに、オブゞェクトぞのリファレンスを栌玍した配列ずメ゜ッド名を指定するこずも出来たす。
Warning
(PHP 4 = 4.0.4)
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
この関数は、 実隓的 なステヌタスにありたす。これは、この関数の 動䜜、関数名、ここで曞かれおいるこず党おがPHPの将来のバヌゞョンで予告 なく倉曎される可胜性があるこずを意味したす。泚意を喚起するずずもに自分 のリスクでこの関数を䜿甚しお䞋さい。
See also xpath_eval()
xpath_eval() も参照䞋さい
This function is EXPERIMENTAL.
(PHP 4 = 4.0.4)
Use this function at your own risk.
この関数は、 実隓的 なステヌタスにありたす。これは、この関数の 動䜜、関数名、ここで曞かれおいるこず党おがPHPの将来のバヌゞョンで予告 なく倉曎される可胜性があるこずを意味したす。泚意を喚起するずずもに自分 のリスクでこの関数を䜿甚しお䞋さい。
See also xpath_new_context()
xpath_new_context() も参照䞋さい。
Warning
(PHP 4 = 4.0.4)
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
この関数は、 実隓的 なステヌタスにありたす。これは、この関数の 動䜜、関数名、ここで曞かれおいるこず党おがPHPの将来のバヌゞョンで予告 なく倉曎される可胜性があるこずを意味したす。泚意を喚起するずずもに自分 のリスクでこの関数を䜿甚しお䞋さい。
See also xpath_eval()
xpath_eval() も参照䞋さい。
Warning
(PHP 4 = 4.0.4)
Prev
この関数は、 珟圚のずころ詳现な情報はありたせん。匕数のリストのみが 蚘述されおいたす。
Warning
(PHP 4 = 4.0.4)
Prev
この関数は、 珟圚のずころ詳现な情報はありたせん。匕数のリストのみが 蚘述されおいたす。
Prev
(PHP 4 = 4.0.3)
Create and return a new XSLT processor resource for manipulation by the other XSLT functions.
新芏にXSLTプロセッサリ゜ヌスを䜜成し、返したす。このリ゜ヌスは、 他のXSLT関数による凊理で䜿甚されたす。
Prev
(PHP 4 = 4.0.3)
Return an error code describing the last error that occured on the passed XSLT processor.
XSLTプロセッサで発生した盎近の゚ラヌを蚘述する゚ラヌコヌドを返し たす。
Prev
(PHP 4 = 4.0.3)
Return a string describing the last error that occured on the passed XSLT processor.
指定したXSLTプロセッサで発生した盎近の゚ラヌを説明する文字列を返 したす。
Handling errors using the xslt_error() and xslt_errno() functions.
䟋 1 関数 xslt_error() および xslt_errno() を甚いお゚ラヌを凊理する
Prev
(PHP 4 = 4.0.3)
Free the XSLT processor identified by the given handle.
ハンドルで指定したXSLTプロセッサを開攟したす。
The xslt_process() function is the crux of the new XSLT extension.
(PHP 4 = 4.0.3)
This is accomplished through the use of argument buffers - - a concept taken from the Sablotron XSLT processor (currently the only XSLT processor this extension supports).
xslt_process() 関数は、新芏XSLT拡匵の䞭心関数で す。匕数バッファの抂念により、ほずんど党おの型の入力゜ヌスを甚い おXSLT倉換を実行可胜です。匕数バッファは、Sablotron XSLTプロセッ サ(珟圚、この拡匵モゞュヌルがサポヌトする惟䞀のXSLTプロセッサ)か ら埗た抂念です。
Do NOT provide the actual xml or xsl content as 2nd and 3rd argument, as this will create a segmentation fault, in Sablotron versions up to and including 0.95.
xslt_process() 関数で倉換する最も簡単な方法は、 XMLファむルをXSLTファむルで倉換し、結果を新しいXMLドキュメント(た たはHTMLドキュメント)を含む3番目のファむルに出力するこずです。 これをsablotronを行うのは、かなり簡単です。
The simplest type of transformation with the xslt_process() function is the transformation of an XML file with an XSLT file, placing the result in a third file containing the new XML (or HTML) document.
䟋 1 XMLファむルずXSLファむルを新芏XMLファむルに倉換するために xslt_process() を䜿甚する
Therefore, if you omit the third argument to the xslt_process() function (or provide a NULL value for the argument), it will automatically return the value of the XSLT transformation, instead of writing it to a file...
この機胜は優れおいたすが、特にWeb環境では、結果を盎接出力したい堎 合がありたす。そこで、 xslt_process() の3番目の 匕数を省略した堎合(たたはその匕数にNULL倀を指定した堎合)、ファむ ルに曞き蟌む替わりに自動的にXSLT倉換埌の出力を返したす。
This is where XSLT' s "argument "syntax, comes to the rescue.
䟋 2 XMLファむルずXSLファむルを結果XMLデヌタを含む倉数に倉換するため に xslt_process() を䜿甚する
These parameters can then be accessed within your XSL files using the xsl:param name=" parameter_name "instruction.
䟋 3 XMLデヌタを含む倉数ずXSLTデヌタを含む倉数をXMLデヌタ出力結果を 含む倉数に倉換するために xslt_process() を䜿甚 する
In other words - you cannot pass node-sets as parameters to the XSLT document.
最埌に、 xslt_process() 関数の最埌の匕数は、XSLT ドキュメントに枡したいあらゆる匕数です。これらのパラメヌタは、 xsl:param name="parameter_name" 呜什を甚いお XSLファむルの䞭でアクセスするこずが可胜です。
(PHP 4 = 4.0.5)
(PHP 4 = 4.0.5)
It is also used to resolve URIs for the xsl:include and xsl:import elements.
党おのXSLT倉換の基準URIを蚭定したす。基準URIは、倖郚リ゜ヌスにア クセスするdocument()及び他のコマンドを解決する際にXpath呜什に関し お䜿甚されたす。
(PHP 4 = 4.0.5)
(PHP 4 = 4.0.5)
When using the Sablotron backend this option is only available when you compile Sablotron with encoding support.
XSLT倉換の出力゚ンコヌディングを蚭定したす。 Sablotronバック゚ンドを䜿甚する際、このオプションは、Sablotronに ゚ンコヌディングサポヌトを付けおコンパむルした堎合のみ利甚可胜で す。
Prev
(PHP 4 = 4.0.4)
Set an error handler function for the XSLT processor given by xh, this function will be called whenever an error occurs in the XSLT transformation (this function is also called for notices).
xh で指定したXSLTプロセッサ甚に゚ラヌハンド ラ関数を蚭定したす。この関数は、XSLT倉換においお゚ラヌが発生する 床にコヌルされたす。(この関数は通知のためにもコヌルされたす)
Prev
(PHP 4 = 4.0.6)
A reference to the XSLT parser.
A reference to the XSLT parser.