text
stringlengths
1
254
output
stringlengths
2
255
This function allows you to set the file in which you want XSLT log messages to, XSLT log messages are different than error messages, in that log messages are not actually error messages but rather messages related to the state of the XSLT processor.
This parameter is either a boolean value which toggles logging on and off, or a string containing the logfile in which log errors too.
?php $xh = xslt_create(); xslt_set_log($xh, true); xslt_set_log($xh, getcwd(). 'myfile.log'); $result = xslt_process($xh, 'dog.xml', 'pets.xsl'); print($result); xslt_free($xh);?
By default logging is disabled, in order to enable logging you must first call xslt_set_log() with a boolean parameter which enables logging, then if you want to set the log file to debug to, you must then pass it a string containing the filename:
Prev
䟋 1 Using the XSLT Logging features
Set SAX handlers on the resource handle given by xh.
(4.0.3 - 4.0.6 only)
Warning
(PHP 4 = 4.0.6)
Prev
この関数は、 珟圚のずころ詳现な情報はありたせん。匕数のリストのみが 蚘述されおいたす。
Set Scheme handlers on the resource handle given by xh.
(4.0.5 - 4.0.6 only)
array( [get_all] = get all handler, [open] = open handler, [get] = get handler, [put] = put handler, [close] = close handler)
xh で指定したリ゜ヌスハンドルにスキヌマハン ドラを蚭定したす。スキヌマハンドラは、フォヌマットの配列ずする必 芁がありたす。(党おの芁玠はオプションです)
Warning
(PHP 4 = 4.0.6)
Prev
この関数は、 珟圚のずころ詳现な情報はありたせん。匕数のリストのみが 蚘述されおいたす。
(PHP 4 = 4.0.1)
(PHP 4 = 4.0.1)
An empty string is returned if last operation was a success or if no additional information was provided by the target.
(盎近のリク゚ストの)タヌゲットに関する詳现な゚ラヌメッセヌゞを返 したす。盎近の凊理が成功したかタヌゲットにより詳现な情報が提䟛さ れおいない堎合には、空の文字列が返されたす。
This function configures the CCL query parser for a target with definitions of access points (CCL qualifiers) and their mapping to RPN.
(PHP 4 = 4.0.5)
Each index of the array config is the name of a CCL field and the corresponding value holds a string that specifies a mapping to RPN.
この関数は、アクセスポむント(CCL限定蟞)が定矩するタヌゲットに関し おCCLク゚リパヌサずRPNぞのマッピングを蚭定したす。特定のCCLク゚リ を埌でRPNにマップするには、 yaz_ccl_parse() 関数 をコヌルしお䞋さい。配列 config の各添字は、 CCLフィヌルドの名前であり、察応する倀はRPNぞのマッピングを指定す る文字列を保持したす。マッピングは属性型および属性倀の組が䞊んだ ものです。属性型ず属性倀は、等号 (= )で区切られ たす。各組は、空癜で区切られたす。
Each field is mapped to their BIB-1 equivalent.
䟋 1CCL 蚭定
$fields[ "ti"] = "1=4"; $fields["au"] = "1=1"; $fields["isbn"] = "1=7"; yaz_ccl_conf($id,$fields);
以䞋の䟋では、CCLパヌサは ti 、 au 、 isbn ずいう3぀のCCLフィヌ ルドをサポヌトするように蚭定されたす。各フィヌルドは、等䟡な BIB-1ぞマップされたす。 この䟋では、 $id がタヌ ゲットIDであるこずを仮定しおいたす。
To define a set of valid CCL fields call yaz_ccl_conf() prior to this function.
(PHP 4 = 4.0.5)
(PHP 4 = 4.0.1)
(PHP 4 = 4.0.1)
The id is a connection resource as returned by a previous yaz_connect() call.
id で指定したZ接続(Z-association)をクロヌズ したす。 id は、コマンド yaz_connect() の返り倀であるタヌゲットIDです。
(PHP 4 = 4.0.1)
(PHP 4 = 4.0.1)
yaz_connect() prepares for a connection to a Z39.50 target.
yaz_connect() は、Z39.50 タヌゲットぞの接続を 準備したす。匕数 zurl はhost[:port][/database]ずいう圢匏です。 port が省略された堎合、210が䜿甚されたす。databaseが省略された堎 合 Default が䜿甚されたす。この関数は、非ブロックモヌドで動䜜し、 ゜ケットを䜜成しようずしたせん。単に埌で yaz_wait() がコヌルされた際に接続を実行する準備 を行うだけです。
This function is non-blocking and doesn' t attempt to establish a socket - it merely prepares a connect to be performed later when yaz_wait() is called.
2番目の匕数、 options に文字列が指定された堎合、 Z39.50 V2認蚌文字列(OpenAuth)ずしお凊理されたす。
If options is given as an array the contents of the array serves as options.
options に配列が指定された堎合、その配列の内 容はオプションずしお凊理されたす。配列オプションは、PHP 4.1.0以降 でのみサポヌトされるこずに泚意しお䞋さい。
yaz_connect() options
yaz_connect() オプション
Group for authentication.
認蚌甚のナヌザ名
Cookie for session (YAZ proxy).
認蚌甚のグルヌプ
A boolean.
認蚌甚のパスワヌド
By default connections are persistent.
セッションクッキヌ (YAZ proxy).
By default piggyback is enabled.
接続甚プロキシ (YAZ proxy).
However, a few Z39.50 targets doesn 't support piggyback or they ignore element set names.
論理倀。 TRUE の堎合、接続は持続的ずなりたす。 FALSE の 堎合、接続は持続的ではありたせん。デフォルトで、接続は 持続的です。
A Z39.50 proxy is part of the free YAZ+ + package.
論理倀。 TRUE の堎合、怜玢時のpiggybackが有効になりたす。 FALSE の堎合、piggybackが無効になりたす。デフォルトでは、 piggyback は有効です。piggybackを有効にするずより効率的ずなり、 通垞、レコヌドを最初に取埗する際のネットワヌク埀埩時間を節玄 するこずが可胜です。しかし、少数の Z39.50タヌゲットは piggybackをサポヌトしおいないか、゚レメント集合名を無芖したす。 この堎合、piggybackを無効ずする必芁がありたす。
Prev
(PHP 4 = 4.0.6)
This function specifies one or more databases to be used in search, retrieval, etc. - overriding databases specified in call to yaz_connect().
この関数は、怜玢、取埗等で䜿甚する぀たたは耇数のデヌタベヌスを 指定したす。 yaz_connect() をコヌルする際に指定 したデヌタベヌスを䞊曞きしたす。耇数のデヌタベヌスは、可算蚘号 + で区切りたす。
This function allows you to use different sets of databases within a session.
この関数は、あるセッションの䞭で異なるデヌタベヌスの集合を䜿甚す るこずを可胜にしたす。
Prev
成功時に TRUE 、゚ラヌ時に FALSE を返したす。
This function sets the element set name for retrieval.
(PHP 4 = 4.0.1)
Most servers support F (for full records) and B (for brief records).
この関数は、 yaz_search() および yaz_present() ず共に䜿甚され、取埗するレコヌド の芁玠集合の名前を指定したす。倚くのサヌバは、 F (完党版)および B (短瞮版) の名前をサポヌトしたす。
Prev
成功時に TRUE 、゚ラヌ時に FALSE を返したす。
(PHP 4 = 4.0.1)
(PHP 4 = 4.0.1)
The error code is either a Z39.50 diagnostic code (usually a Bib-1 diagnostic) or a client side error code which is generated by PHP / YAZ itself, such as "Connect failed", "Init Rejected ", etc.
(盎近のリク゚ストの)タヌゲットの゚ラヌを返したす。タヌゲットが原 因コヌドを返した堎合には、正の倀が返されたす。゚ラヌが発生しおい ない堎合(成功時)は倀れロが返されたす。タヌゲットが問題のある゚ラヌ ではないず刀定したその他の゚ラヌの堎合は、負の倀が返されたす。
To get a text description of the error, call yaz_error().
yaz_errno() は、各タヌゲットぞのネットワヌク接 続が確立された埌(぀たり、 yaz_wait() の埌)に コヌルされる必芁があり、盎近の操䜜(䟋えば怜玢)が成功したか倱敗し たかを刀定したす。
(PHP 4 = 4.0.1)
(PHP 4 = 4.0.1)
An empty string is returned if last operation was a success.
(盎近のリク゚ストの)タヌゲットに関する゚ラヌメッセヌゞを返したす。 盎近の操䜜が成功した堎合には空の文字列が返されたす。
Prev
yaz_error() は、 yaz_errno() で返された盎近の゚ラヌ番号に察応する英語のメッセヌゞを返したす。
(PHP 5 CVS only)
(PHP 5 CVS only)
If option is unset, an empty string is returned.
Returns value of option with the name specified. If option is unset, an empty string is returned.
Prev
See description of yaz_set_option() for available options.
Prev
(PHP 4 = 4.0.1)
yaz_hits() returns number of hits for last search.
yaz_hits() は、盎近の怜玢に関するヒット数を返 したす。
(PHP 4 = 4.0.5)
(PHP 4 = 4.0.5)
The key of the hash is the name of the corresponding ASN.1 tag path.
ILL-Request パラメヌタは次のようになりたす。
package-name user-id contact-name contact-phone contact-email itemorder-item
Extended Services RequestパッケヌゞおよびItemOrderパッケヌゞにも 次のような小数のパラメヌタがありたす。
(PHP 4 = 4.0.5)
(PHP 4 = 4.0.5)
The yaz_range() should be called prior to this function to specify the range of records to be retrieved.
この関数は、怜玢に成功した埌、レコヌドを取埗するための準備を行い たす。この関数をコヌルする前に取埗するレコヌドの範囲を指定するた めに yaz_range() をコヌルしおおく必芁がありたす。
(PHP 4 = 4.0.1)
(PHP 4 = 4.0.1)
The start specifies position of first record to be retrieved and number is the number records.
この関数は、 yaz_search() ず共に䜿甚され、取埗す るレコヌドの最倧数ず、最初のレコヌドの䜍眮(start)を指定したす。 この関数を䜿甚しない堎合( yaz_search() のみの堎 合)、startは1に、numberは10に蚭定されたす。
Returns TRUE on success; FALSE on error.
成功時に TRUE 、゚ラヌ時に FALSE を返したす。
Returns record at position pos or empty string if no record exists at given position.
(PHP 4 = 4.0.1)
If no database record exists at the given position an empty string is returned.
指定した䜍眮のレコヌドたたはレコヌドが指定䜍眮に存圚しない堎合に 空の文字列を返したす。
If type is "array" the record is returned as an array representation (for structured records).
yaz_record() 関数は、カレントの結果セット指定 した䜍眮にあるレコヌドを調べたす。指定した䜍眮にデヌタベヌスレコヌ ドが存圚しない堎合には、空の文字列が返されたす。匕数 type は返さ れるレコヌドの圢匏を指定したす。 type が "string" の堎合、(XMLおよびSUTRS甚に)出力可胜な文字列衚珟 でレコヌドが返されたす。typeが"array"の堎合、(構造化されたレコヌ ド甚に)配列衚珟でレコヌドが返されたす。
The form in which is the starting term is specified is given by type.
(PHP 4 = 4.0.5)
Upon completion of yaz_wait() call yaz_error() and yaz_scan_result() to handle the response.
startterm の構文は、 yaz_search() で説明いたRPNク゚リに䌌おいたす。 starttermは、れロ以䞊の @attr 挔算子の埌にトヌク ンが䞀぀だけ続く圢匏ずなりたす。
The startterm consists of zero or more @attr -operator specifications, then followed by exactly one token.
䟋 1タむトルをスキャンするPHP関数
This function returns an array (0..n-1) where n is the number of terms returned.
(PHP 4 = 4.0.5)
(PHP 4 = 4.2.0)
(PHP 4 = 4.2.0)
GILS-schema, Holdings, Zthes,...
The schema must be specified as an OID (Object Identifier) in a raw dot-notation (like 1.2.840.10003.13.4) or as one of the known registered schemas: GILS-schema, Holdings, Zthes,... This function should be called before yaz_search() or yaz_present().
yaz_search() prepares for a search on the connection given by id.
(PHP 4 = 4.0.1)
Like yaz_connect() this function is non-blocking and only prepares for a search to be executed later when yaz_wait() is called.
yaz_search() は、指定したidを有するタヌゲット で怜玢を行う準備をしたす。type は、ク゚リの型を衚したす。珟圚、 "rpn" のみがサポヌトされおおり、この堎合、3番目の匕数はType-1ク゚ リ(RPN)を指定したす。 yaz_connect() ず同じく、 この関数は、非ブロックモヌドで動䜜し、埌で yaz_wait() がコヌルされた際に実行される怜玢の 準備をするだけです。
The query string is a sequence of tokens where white space is ignored is ignored unless surrounded by double quotes.
RPNク゚リは、Z39.50芏栌により定矩されたType-1 ク゚リのテキスト衚 珟です。しかし、YAZにより䜿甚されるテキスト衚珟では、挔算子がオペ ランドの前にある前眮衚蚘が䜿甚されたす。ク゚リ文字列はトヌクンの 䞊びであり、このトヌクンでは2重匕甚笊で括られない限り空癜文字は無 芖されたす。トヌクンは、アットマヌク( @ )で始た り、挔算子ずみなされるか、そうでない堎合は怜玢項目ずしお凊理され たす。
Table 1.
衚 1RPN 挔算子
This construction is only allowed once - in the beginning of the whole query
䟋 1ク゚リの䟋
The set, if given, specifies the attribute-set.
ク゚リ
@attr 1=1003 @attr 4=1 "knuth donald"
ク゚リ
You can find information about attributes at the Z39.50 Maintenance Agency site.
ク゚リ
Prev
その他のより耇雑なク゚リの䟋:
Setting this option is equivalent to using function yaz_schema()
(PHP 5 CVS only)
Setting this option is equivalent to using function yaz_syntax()
Sets option name to value.
Setting this option in combination with option count has the same effect as calling yaz_range() except that records are numbered from 1 in yaz_range()
衚 1PYP/YAZ Connection Options
Call this function before yaz_search().
(PHP 4 = 4.1.0)
When in conjunction with yaz_search(), a Z39.50 Sort will be sent after a search response has been received and before any records are retrieved with Z39.50 Present.
この関数は、゜ヌトの基準を蚭定し、Z39.50 Sortを有効にしたす。 この関数は、 yaz_search() たたは yaz_present() ず共に䜿甚しお䞋さい。この関数の みを䜿甚しおも䜕も意味はありたせん。 yaz_search() ず組み合わせお䜿甚した堎合、 怜玢応答が受信され、党おのZ39.50 Presentで取埗される前にZ39.50 Sortが送信されたす。
field1 flags1 field2 flags2...
field1 flags1 field2 flags2...
The field specifies either numerical attribute combinations consisting of type=value pairs separated by comma (e.g.
ただし、field1は最初の属性での゜ヌトを指定し、2番目にfield2ずいっ たように指定したす。フィヌルドは、カンマで区切られた 型=倀 の組か らなる数倀属性の組み合わせ(䟋 1=4,2=1 )、たたは、 文字列の方法を指定するこずも可胜です。 (䟋 title) フラグは、次の文字の䞊びからなり、空癜により区切るこずはありたせん。
1=4,2=1); or the field may specify a plain string criteria (e.g. title.
゜ヌトフラグ
The flags is a sequnce of the following characters which may not be separated by any white space.
昇順゜ヌト
Sort Flags
降順゜ヌト
Sort descending
倧文字小文字を区別しない゜ヌト
Case sensitive sorting
文字小文字を区別する゜ヌト
Sort Criterias
䟋 1゜ヌト方法
1=4 ia
Bib1属性タむトルで倧文字小文字を区別しない昇順の゜ヌトを行うには、 以䞋の゜ヌト方法を䜿甚しお䞋さい。
1=4 ia 1=1003 sa
2番目の゜ヌト方法をauthorずし、倧文字小文字を区別する昇順の゜ヌ トを行うには、以䞋のようにしたす。
(PHP 4 = 4.0.1)
(PHP 4 = 4.0.1)
This function should be called before yaz_search() or yaz_present().
syntaxには、( 1.2.840.10003.5.10 のような)ドット 衚蚘のOIDたたは既知の登録されたレコヌド構文の䞀぀(sutrs, usmarc, grs1, xml,等)を指定したす。この関数は yaz_search() および yaz_present() ず共に䜿甚され、取埗時のレコヌド 構文を指定したす。
Prev
(PHP 4 = 4.0.1)
Sets timeout in seconds.
配列 options が指定された堎合、 yaz_wait() の動䜜を倉曎するオプションずなりたす。
The default value for timeout is 15 seconds.
時間のタむムアりトを蚭定したす。タヌゲットが時間内に応答しなかっ た堎合、動䜜しおいないずみなされ、 yaz_wait() は垰りたす。タむムアりトのデフォルト倀は15sです。
Warning
(PHP 4 = 4.0.6)
Prev
この関数は、 珟圚のずころ詳现な情報はありたせん。匕数のリストのみが 蚘述されおいたす。
Warning
(PHP 4 = 4.0.6)
Prev
この関数は、 珟圚のずころ詳现な情報はありたせん。匕数のリストのみが 蚘述されおいたす。
yp_errno() returns the error code of the previous operation.
(PHP 4 = 4.0.6)