cvs: phpdoc-ja /reference/domxml/functions DomDocument-create-entity-reference.xml DomDocument-create-processing-instruction.xml
DomDocument-create-text-node.xml DomDocument-doctype.xml DomDocument-document-element.xml DomDocument-dump-mem.xml DomDocument-get-element-by-id.xml
DomDocument-get-elements-by-tagname.xml DomDocument-html-dump-mem.xml
| From: | Hideyuki Shimooka | Date: | Sun, 24 Jul 2005 07:33:48 +0000 |
| Subject: | cvs: phpdoc-ja /reference/domxml/functions DomDocument-create-entity-reference.xml DomDocument-create-processing-instruction.xml DomDocument-create-text-node.xml DomDocument-doctype.xml DomDocument-document-element.xml DomDocument-dump-mem.xml DomDocument-get-element-by-id.xml DomDocument-get-elements-by-tagname.xml DomDocument-html-dump-mem.xml |
||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1066@lists.php.net to get a copy of this message | ||
shimooka Sun Jul 24 03:33:48 2005 EDT
Modified files:
/phpdoc-ja/reference/domxml/functions
DomDocument-create-entity-reference.xml
DomDocument-create-processing-instruction.xml
DomDocument-create-text-node.xml
DomDocument-doctype.xml
DomDocument-document-element.xml
DomDocument-dump-mem.xml
DomDocument-get-element-by-id.xml
DomDocument-get-elements-by-tagname.xml
DomDocument-html-dump-mem.xml
Log:
translation updated
http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml Sun Jul 24 03:33:48 2005 @@ -1,37 +1,38 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-create-entity-reference"> +<!-- $Revision: 1.4 $ --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-create-entity-reference"> <refnamediv> <refname>DomDocument->create_entity_reference</refname> <refpurpose> + ã¨ã³ãã£ãã£åç §ã使ãã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->create_entity_reference</methodname> + <type>domentityreference</type><methodname>DomDocument->create_entity_reference</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> - This function returns a new instance of class - <classname>DomEntityReference</classname>. The content of the entity - reference is the - value of the passed parameter. This node will not show up in the - document unless it is inserted with e.g. - <function>DomNode_append_child</function>. + ãã®é¢æ°ã¯ <classname>DomEntityReference</classname> + ã¯ã©ã¹ã®æ°è¦ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¾ãã + ã¨ã³ãã£ãã£åç §ã®å å®¹ã¯æ¸¡ããããã©ã¡ã¼ã¿ã®å¤ã§ãã&node.inserted; </para> <para> - The return value is false if an error occured. + ã¨ã©ã¼ãçºçããå ´åãæ»ãå¤ã¯ &false; ã§ãã </para> <para> - See also <function>DomNode_append_child</function>, - <function>DomDocument_create_element</function>, - <function>DomDocument_create_text</function>, - <function>DomDocument_create_cdata_section</function>, - <function>DomDocument_create_processing_instruction</function>, - <function>DomDocument_create_attribute</function>, - <function>DomNode_insert_before</function>. + <function>domnode_append_child</function>, + <function>domdocument_create_element</function>, + <function>domdocument_create_text</function>, + <function>domdocument_create_cdata_section</function>, + <function>domdocument_create_processing_instruction</function>, + <function>domdocument_create_attribute</function>, + <function>domnode_insert_before</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml Sun Jul 24 03:33:48 2005 @@ -1,37 +1,36 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-create-processing-instruction"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-create-processing-instruction"> <refnamediv> <refname>DomDocument->create_processing_instruction</refname> - <refpurpose> - æ°è¦PIãã¼ãã使ãã - </refpurpose> + <refpurpose>æ°è¦ PI ãã¼ãã使ãã</refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>string</type><methodname>DomDocument->create_processing_instruction</methodname> + <type>domprocessinginstruction</type><methodname>DomDocument->create_processing_instruction</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> - This function returns a new instance of class - <classname>DomCData</classname>. The content of the pi is the - value of the passed parameter. This node will not show up in the - document unless it is inserted with e.g. - <function>DomNode_append_child</function>. + ãã®é¢æ°ã¯ <classname>DomCData</classname> + ã¯ã©ã¹ã®æ°è¦ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¾ãã + PI ã®å å®¹ã¯æ¸¡ããããã©ã¡ã¼ã¿ã®å¤ã§ãã&node.inserted; </para> <para> - The return value is false if an error occured. + ã¨ã©ã¼ãçºçããå ´åãæ»ãå¤ã¯ &false; ã§ãã </para> <para> - See also <function>DomNode_append_child</function>, - <function>DomDocument_create_element</function>, - <function>DomDocument_create_text</function>, - <function>DomDocument_create_cdata_section</function>, - <function>DomDocument_create_attribute</function>, - <function>DomDocument_create_entity_reference</function>, - <function>DomNode_insert_before</function>. + <function>domnode_append_child</function>, + <function>domdocument_create_element</function>, + <function>domdocument_create_text</function>, + <function>domdocument_create_cdata_section</function>, + <function>domdocument_create_attribute</function>, + <function>domdocument_create_entity_reference</function>, + <function>domnode_insert_before</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml Sun Jul 24 03:33:48 2005 @@ -1,39 +1,37 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-create-text-node"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-create-text-node"> <refnamediv> <refname>DomDocument->create_text_node</refname> - <refpurpose> - æ°è¦ããã¹ããã¼ãã使ãã - </refpurpose> + <refpurpose>æ°è¦ããã¹ããã¼ãã使ãã</refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->create_text_node</methodname> + <type>domtext</type><methodname>DomDocument->create_text_node</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> - This function returns a new instance of class - <classname>DomText</classname>. The content of the text is the value of - the passed - parameter. This node will not show up in the - document unless it is inserted with e.g. - <function>DomNode_append_child</function>. + ãã®é¢æ°ã¯ <classname>DomText</classname> + ã¯ã©ã¹ã®æ°è¦ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¾ãã + ããã¹ãã®å å®¹ã¯æ¸¡ããããã©ã¡ã¼ã¿ã®å¤ã§ãã&node.inserted; </para> <para> - The return value is false if an error occured. + ã¨ã©ã¼ãçºçããå ´åãæ»ãå¤ã¯ &false; ã§ãã </para> <para> - See also <function>DomNode_append_child</function>, - <function>DomDocument_create_element</function>, - <function>DomDocument_create_comment</function>, - <function>DomDocument_create_text</function>, - <function>DomDocument_create_attribute</function>, - <function>DomDocument_create_processing_instruction</function>, - <function>DomDocument_create_entity_reference</function>, - <function>DomNode_insert_before</function>. + <function>domnode_append_child</function>, + <function>domdocument_create_element</function>, + <function>domdocument_create_comment</function>, + <function>domdocument_create_text</function>, + <function>domdocument_create_attribute</function>, + <function>domdocument_create_processing_instruction</function>, + <function>domdocument_create_entity_reference</function>, + <function>domnode_insert_before</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml Sun Jul 24 03:33:48 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> <refentry id="function.DomDocument-doctype"> <refnamediv> <refname>DomDocument->doctype</refname> @@ -9,20 +10,19 @@ </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->doctype</methodname> + <type>domdocumenttype</type><methodname>DomDocument->doctype</methodname> <void/> </methodsynopsis> <para> - ãã®é¢æ°ã¯ãã¯ã©ã¹<classname>DomDocumentType</classname>ã®ãªãã¸ã§ - ã¯ããè¿ãã¾ãã4.3ããåã®ãã¼ã¸ã§ã³ã®PHPã§ã¯ããã®ãªãã¸ã§ã¯ã - ã¯ãã¯ã©ã¹<classname>Dtd</classname>ã§ããããDOMæ¨æºã«ã¯ãã®ãã - ãªã¯ã©ã¹ã¯ããã¾ããã + ãã®é¢æ°ã¯ãã¯ã©ã¹ <classname>DomDocumentType</classname> + ã®ãªãã¸ã§ã¯ããè¿ãã¾ãã4.3ããåã®ãã¼ã¸ã§ã³ã®PHPã§ã¯ã + ãã®ãªãã¸ã§ã¯ãã¯ãã¯ã©ã¹ <classname>Dtd</classname> ã§ãããã + DOM æ¨æºã«ã¯ãã®ãããªã¯ã©ã¹ã¯ããã¾ããã </para> <para> - ã¯ã©ã¹<classname>DomDocumentType</classname>ã®ã¡ã½ãããåç §ä¸ã - ãã + ã¯ã©ã¹<classname>DomDocumentType</classname>ã®ã¡ã½ãããåç §ä¸ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml Sun Jul 24 03:33:48 2005 @@ -1,33 +1,35 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-document-element"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-document-element"> <refnamediv> <refname>DomDocument->document_element</refname> <refpurpose> - ã«ã¼ãã¨ã¬ã¡ã³ããã¼ããè¿ã + ã«ã¼ãè¦ç´ ãã¼ããè¿ã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->document_element</methodname> + <type>domelement</type><methodname>DomDocument->document_element</methodname> <void/> </methodsynopsis> <para> - This function returns the root element node of a document. + ãã®é¢æ°ã¯æç« ã®ã«ã¼ãè¦ç´ ãã¼ããè¿ãã¾ãã </para> <para> - The following example returns just the element with name CHAPTER and - prints it. The other node -- the comment -- is not returned. + 以ä¸ã®ä¾ã¯ãã CHAPTER ã¨ããååã®è¦ç´ ãè¿ã表示ãã¾ãã + ä»ã®ãã¼ã -- ã³ã¡ã³ã -- ã¯è¿ãã¾ããã <example> - <title>Retrieving root element</title> + <title>ã«ã¼ãè¦ç´ ãåå¾ãã</title> <programlisting role="php"> <![CDATA[ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -37,6 +39,18 @@ ?> ]]> </programlisting> + &example.outputs; + <screen> +<![CDATA[ +domelement Object +( + [type] => 1 + [tagname] => chapter + [0] => 6 + [1] => 137960648 +) +]]> + </screen> </example> </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml Sun Jul 24 03:33:48 2005 @@ -1,30 +1,31 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-dump-mem"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-dump-mem"> <refnamediv> <refname>DomDocument->dump_mem</refname> <refpurpose> - å é¨XMLããªã¼ãæååã«ãã³ããã + å é¨ XML ããªã¼ãæååã«ãã³ããã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>DomDocument->dump_mem</methodname> <methodparam choice="opt"><type>bool</type><parameter>format</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> </methodsynopsis> - &warn.experimental.func; <para> - Creates an XML document from the dom representation. This function - usually is called after building a new dom document from scratch - as in the example below. The - <parameter>format</parameter> specifies whether the output should be - neatly formatted, or not. + DOM 表ç¾ãã XML æç« ãçæãã¾ãããã®é¢æ°ã¯ä»¥ä¸ã®ä¾ã®ããã«ã + é常ã¹ã¯ã©ããããæ°è¦ DOM æç« ãçæããå¾ã«ã³ã¼ã«ããã¾ãã + <parameter>format</parameter> ã«ããã + ãã¡ãã¨æ´å½¢ãããã©ãããæå®ãã¾ãã </para> <para> <example> - <title>Creating a simple HTML document header</title> + <title>ç°¡å㪠HTML æç« ã®ããããçæãã</title> <programlisting role="php"> <![CDATA[ <?php @@ -47,12 +48,13 @@ </para> <note> <para> - The first parameter was added in PHP 4.3.0. + 第 1 ãã©ã¡ã¼ã¿ã¯ PHP 4.3.0 ã§è¿½å ããã¾ããã </para> </note> <para> - See also <function>DomDocument_dump_file</function>, - <function>DomDocument_html_dump_mem</function>. + <function>domdocument_dump_file</function>, + <function>domdocument_html_dump_mem</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml:1.4 phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml:1.5 --- phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml:1.4 Sun Jan 2 02:23:30 2005 +++ phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml Sun Jul 24 03:33:48 2005 @@ -1,22 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-get-element-by-id"> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-get-element-by-id"> <refnamediv> <refname>DomDocument->get_element_by_id</refname> <refpurpose> + ç¹å®ã® ID ãæã¤è¦ç´ ãæ¤ç´¢ãã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->get_element_by_id</methodname> + <type>domelement</type><methodname>DomDocument->get_element_by_id</methodname> <methodparam><type>string</type><parameter>id</parameter></methodparam> </methodsynopsis> <para> + ãã®é¢æ°ã¯ <function>domdocument_get_elements_by_tagname</function> + ã¨ä¼¼ã¦ãã¾ãããä¸ãããã ID ãæã¤è¦ç´ ãæ¤ç´¢ãã¾ãã + DOM æ¨æºã«ããã°ãããã«ã¯å±æ§ ID ã ID åã¨ãã¦å®ç¾©ãã DTD + ãå¿ è¦ã«ãªãã¾ãããç¾å¨ã®å®è£ ã¯åç´ã« "//*[@ID = '%s']" ã«å¯¾ãã + xpath æ¤ç´¢ãè¡ã£ã¦ãã¾ããããã¯å±æ§ã ID åã§ãªãå ´åã« NULL + ãè¿ãå¿ è¦ããã DOM æ¨æºã«æºæ ãã¦ãã¾ããã + ãã®åä½ã¯åºå®ããã¦ããããã§ãã®ã§ãç¾å¨ã®åä½ãå½ã¦ã«ããªãã§ãã ããã </para> <para> - <function>DomDocument_add_root</function>ãåç §ãã ããã + <function>domdocument_get_elements_by_tagname</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml:1.4 phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml:1.5 --- phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml:1.4 Sun Jan 2 02:23:30 2005 +++ phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml Sun Jul 24 03:33:48 2005 @@ -1,14 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-get-elements-by-tagname"> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-get-elements-by-tagname"> <refnamediv> <refname>DomDocument->get_elements_by_tagname</refname> <refpurpose> + æç« ä¸ã«ä¸ããããã¿ã°åãæã¤ãã¼ãã®é åãè¿ãã + ãããã¯ãè¦ã¤ãããªãå ´åã¯ç©ºã®é åãè¿ã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>DomDocument->get_elements_by_tagname</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> @@ -16,7 +20,8 @@ <para> </para> <para> - <function>DomDocument_add_root</function>ãåç §ãã ããã + <function>domdocument_add_root</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml Sun Jul 24 03:33:48 2005 @@ -1,50 +1,63 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-html-dump-mem"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-html-dump-mem"> <refnamediv> <refname>DomDocument->html_dump_mem</refname> <refpurpose> - HTMLã¨ãã¦æååã«å é¨XMLããªã¼ããã³ããã + HTML ã¨ãã¦æååã«å é¨ XML ããªã¼ããã³ããã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>DomDocument->html_dump_mem</methodname> <void/> </methodsynopsis> <para> - Creates an HTML document from the dom representation. This function - usually is called after building a new dom document from scratch - as in the example below. + DOM 表ç¾ãã HTML æç« ãçæãã¾ãããã®é¢æ°ã¯ä»¥ä¸ã®ä¾ã®ããã«ã + é常ã¹ã¯ã©ããããæ°è¦ DOM æç« ãçæããå¾ã«ã³ã¼ã«ããã¾ãã </para> <para> <example> - <title>Creating a simple HTML document header</title> + <title>ç°¡å㪠HTML æç« ã®ããããçæãã</title> <programlisting role="php"> <![CDATA[ <?php + +// æç« ãçæãã $doc = domxml_new_doc("1.0"); -$root = $doc->create_element("HTML"); + +$root = $doc->create_element("html"); $root = $doc->append_child($root); -$head = $doc->create_element("HEAD"); + +$head = $doc->create_element("head"); $head = $root->append_child($head); -$title = $doc->create_element("TITLE"); + +$title = $doc->create_element("title"); $title = $head->append_child($title); + $text = $doc->create_text_node("This is the title"); $text = $title->append_child($text); -echo "<PRE>"; -echo htmlentities($doc->html_dump_mem()); -echo "</PRE>"; + +echo $doc->html_dump_mem(); ?> ]]> </programlisting> + &example.outputs; + <screen role="xml"> +<![CDATA[ +<html><head><title>This is the title</title></head></html> +]]> + </screen> </example> </para> <para> - See also <function>DomDocument_dump_file</function>, - <function>DomDocument_html_dump_mem</function>. + <function>domdocument_dump_file</function>, + <function>domdocument_html_dump_mem</function> + ãåç §ãã ããã </para> </refsect1> </refentry>
http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml Sun Jul 24 03:33:48 2005 @@ -1,37 +1,38 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-create-entity-reference"> +<!-- $Revision: 1.4 $ --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-create-entity-reference"> <refnamediv> <refname>DomDocument->create_entity_reference</refname> <refpurpose> + ã¨ã³ãã£ãã£åç §ã使ãã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->create_entity_reference</methodname> + <type>domentityreference</type><methodname>DomDocument->create_entity_reference</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> - This function returns a new instance of class - <classname>DomEntityReference</classname>. The content of the entity - reference is the - value of the passed parameter. This node will not show up in the - document unless it is inserted with e.g. - <function>DomNode_append_child</function>. + ãã®é¢æ°ã¯ <classname>DomEntityReference</classname> + ã¯ã©ã¹ã®æ°è¦ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¾ãã + ã¨ã³ãã£ãã£åç §ã®å å®¹ã¯æ¸¡ããããã©ã¡ã¼ã¿ã®å¤ã§ãã&node.inserted; </para> <para> - The return value is false if an error occured. + ã¨ã©ã¼ãçºçããå ´åãæ»ãå¤ã¯ &false; ã§ãã </para> <para> - See also <function>DomNode_append_child</function>, - <function>DomDocument_create_element</function>, - <function>DomDocument_create_text</function>, - <function>DomDocument_create_cdata_section</function>, - <function>DomDocument_create_processing_instruction</function>, - <function>DomDocument_create_attribute</function>, - <function>DomNode_insert_before</function>. + <function>domnode_append_child</function>, + <function>domdocument_create_element</function>, + <function>domdocument_create_text</function>, + <function>domdocument_create_cdata_section</function>, + <function>domdocument_create_processing_instruction</function>, + <function>domdocument_create_attribute</function>, + <function>domnode_insert_before</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml Sun Jul 24 03:33:48 2005 @@ -1,37 +1,36 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-create-processing-instruction"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-create-processing-instruction"> <refnamediv> <refname>DomDocument->create_processing_instruction</refname> - <refpurpose> - æ°è¦PIãã¼ãã使ãã - </refpurpose> + <refpurpose>æ°è¦ PI ãã¼ãã使ãã</refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>string</type><methodname>DomDocument->create_processing_instruction</methodname> + <type>domprocessinginstruction</type><methodname>DomDocument->create_processing_instruction</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> - This function returns a new instance of class - <classname>DomCData</classname>. The content of the pi is the - value of the passed parameter. This node will not show up in the - document unless it is inserted with e.g. - <function>DomNode_append_child</function>. + ãã®é¢æ°ã¯ <classname>DomCData</classname> + ã¯ã©ã¹ã®æ°è¦ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¾ãã + PI ã®å å®¹ã¯æ¸¡ããããã©ã¡ã¼ã¿ã®å¤ã§ãã&node.inserted; </para> <para> - The return value is false if an error occured. + ã¨ã©ã¼ãçºçããå ´åãæ»ãå¤ã¯ &false; ã§ãã </para> <para> - See also <function>DomNode_append_child</function>, - <function>DomDocument_create_element</function>, - <function>DomDocument_create_text</function>, - <function>DomDocument_create_cdata_section</function>, - <function>DomDocument_create_attribute</function>, - <function>DomDocument_create_entity_reference</function>, - <function>DomNode_insert_before</function>. + <function>domnode_append_child</function>, + <function>domdocument_create_element</function>, + <function>domdocument_create_text</function>, + <function>domdocument_create_cdata_section</function>, + <function>domdocument_create_attribute</function>, + <function>domdocument_create_entity_reference</function>, + <function>domnode_insert_before</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml Sun Jul 24 03:33:48 2005 @@ -1,39 +1,37 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-create-text-node"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-create-text-node"> <refnamediv> <refname>DomDocument->create_text_node</refname> - <refpurpose> - æ°è¦ããã¹ããã¼ãã使ãã - </refpurpose> + <refpurpose>æ°è¦ããã¹ããã¼ãã使ãã</refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->create_text_node</methodname> + <type>domtext</type><methodname>DomDocument->create_text_node</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> - This function returns a new instance of class - <classname>DomText</classname>. The content of the text is the value of - the passed - parameter. This node will not show up in the - document unless it is inserted with e.g. - <function>DomNode_append_child</function>. + ãã®é¢æ°ã¯ <classname>DomText</classname> + ã¯ã©ã¹ã®æ°è¦ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¾ãã + ããã¹ãã®å å®¹ã¯æ¸¡ããããã©ã¡ã¼ã¿ã®å¤ã§ãã&node.inserted; </para> <para> - The return value is false if an error occured. + ã¨ã©ã¼ãçºçããå ´åãæ»ãå¤ã¯ &false; ã§ãã </para> <para> - See also <function>DomNode_append_child</function>, - <function>DomDocument_create_element</function>, - <function>DomDocument_create_comment</function>, - <function>DomDocument_create_text</function>, - <function>DomDocument_create_attribute</function>, - <function>DomDocument_create_processing_instruction</function>, - <function>DomDocument_create_entity_reference</function>, - <function>DomNode_insert_before</function>. + <function>domnode_append_child</function>, + <function>domdocument_create_element</function>, + <function>domdocument_create_comment</function>, + <function>domdocument_create_text</function>, + <function>domdocument_create_attribute</function>, + <function>domdocument_create_processing_instruction</function>, + <function>domdocument_create_entity_reference</function>, + <function>domnode_insert_before</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml Sun Jul 24 03:33:48 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> <refentry id="function.DomDocument-doctype"> <refnamediv> <refname>DomDocument->doctype</refname> @@ -9,20 +10,19 @@ </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->doctype</methodname> + <type>domdocumenttype</type><methodname>DomDocument->doctype</methodname> <void/> </methodsynopsis> <para> - ãã®é¢æ°ã¯ãã¯ã©ã¹<classname>DomDocumentType</classname>ã®ãªãã¸ã§ - ã¯ããè¿ãã¾ãã4.3ããåã®ãã¼ã¸ã§ã³ã®PHPã§ã¯ããã®ãªãã¸ã§ã¯ã - ã¯ãã¯ã©ã¹<classname>Dtd</classname>ã§ããããDOMæ¨æºã«ã¯ãã®ãã - ãªã¯ã©ã¹ã¯ããã¾ããã + ãã®é¢æ°ã¯ãã¯ã©ã¹ <classname>DomDocumentType</classname> + ã®ãªãã¸ã§ã¯ããè¿ãã¾ãã4.3ããåã®ãã¼ã¸ã§ã³ã®PHPã§ã¯ã + ãã®ãªãã¸ã§ã¯ãã¯ãã¯ã©ã¹ <classname>Dtd</classname> ã§ãããã + DOM æ¨æºã«ã¯ãã®ãããªã¯ã©ã¹ã¯ããã¾ããã </para> <para> - ã¯ã©ã¹<classname>DomDocumentType</classname>ã®ã¡ã½ãããåç §ä¸ã - ãã + ã¯ã©ã¹<classname>DomDocumentType</classname>ã®ã¡ã½ãããåç §ä¸ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml Sun Jul 24 03:33:48 2005 @@ -1,33 +1,35 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-document-element"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-document-element"> <refnamediv> <refname>DomDocument->document_element</refname> <refpurpose> - ã«ã¼ãã¨ã¬ã¡ã³ããã¼ããè¿ã + ã«ã¼ãè¦ç´ ãã¼ããè¿ã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->document_element</methodname> + <type>domelement</type><methodname>DomDocument->document_element</methodname> <void/> </methodsynopsis> <para> - This function returns the root element node of a document. + ãã®é¢æ°ã¯æç« ã®ã«ã¼ãè¦ç´ ãã¼ããè¿ãã¾ãã </para> <para> - The following example returns just the element with name CHAPTER and - prints it. The other node -- the comment -- is not returned. + 以ä¸ã®ä¾ã¯ãã CHAPTER ã¨ããååã®è¦ç´ ãè¿ã表示ãã¾ãã + ä»ã®ãã¼ã -- ã³ã¡ã³ã -- ã¯è¿ãã¾ããã <example> - <title>Retrieving root element</title> + <title>ã«ã¼ãè¦ç´ ãåå¾ãã</title> <programlisting role="php"> <![CDATA[ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -37,6 +39,18 @@ ?> ]]> </programlisting> + &example.outputs; + <screen> +<![CDATA[ +domelement Object +( + [type] => 1 + [tagname] => chapter + [0] => 6 + [1] => 137960648 +) +]]> + </screen> </example> </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml Sun Jul 24 03:33:48 2005 @@ -1,30 +1,31 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-dump-mem"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-dump-mem"> <refnamediv> <refname>DomDocument->dump_mem</refname> <refpurpose> - å é¨XMLããªã¼ãæååã«ãã³ããã + å é¨ XML ããªã¼ãæååã«ãã³ããã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>DomDocument->dump_mem</methodname> <methodparam choice="opt"><type>bool</type><parameter>format</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> </methodsynopsis> - &warn.experimental.func; <para> - Creates an XML document from the dom representation. This function - usually is called after building a new dom document from scratch - as in the example below. The - <parameter>format</parameter> specifies whether the output should be - neatly formatted, or not. + DOM 表ç¾ãã XML æç« ãçæãã¾ãããã®é¢æ°ã¯ä»¥ä¸ã®ä¾ã®ããã«ã + é常ã¹ã¯ã©ããããæ°è¦ DOM æç« ãçæããå¾ã«ã³ã¼ã«ããã¾ãã + <parameter>format</parameter> ã«ããã + ãã¡ãã¨æ´å½¢ãããã©ãããæå®ãã¾ãã </para> <para> <example> - <title>Creating a simple HTML document header</title> + <title>ç°¡å㪠HTML æç« ã®ããããçæãã</title> <programlisting role="php"> <![CDATA[ <?php @@ -47,12 +48,13 @@ </para> <note> <para> - The first parameter was added in PHP 4.3.0. + 第 1 ãã©ã¡ã¼ã¿ã¯ PHP 4.3.0 ã§è¿½å ããã¾ããã </para> </note> <para> - See also <function>DomDocument_dump_file</function>, - <function>DomDocument_html_dump_mem</function>. + <function>domdocument_dump_file</function>, + <function>domdocument_html_dump_mem</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml:1.4 phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml:1.5 --- phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml:1.4 Sun Jan 2 02:23:30 2005 +++ phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml Sun Jul 24 03:33:48 2005 @@ -1,22 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-get-element-by-id"> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-get-element-by-id"> <refnamediv> <refname>DomDocument->get_element_by_id</refname> <refpurpose> + ç¹å®ã® ID ãæã¤è¦ç´ ãæ¤ç´¢ãã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->get_element_by_id</methodname> + <type>domelement</type><methodname>DomDocument->get_element_by_id</methodname> <methodparam><type>string</type><parameter>id</parameter></methodparam> </methodsynopsis> <para> + ãã®é¢æ°ã¯ <function>domdocument_get_elements_by_tagname</function> + ã¨ä¼¼ã¦ãã¾ãããä¸ãããã ID ãæã¤è¦ç´ ãæ¤ç´¢ãã¾ãã + DOM æ¨æºã«ããã°ãããã«ã¯å±æ§ ID ã ID åã¨ãã¦å®ç¾©ãã DTD + ãå¿ è¦ã«ãªãã¾ãããç¾å¨ã®å®è£ ã¯åç´ã« "//*[@ID = '%s']" ã«å¯¾ãã + xpath æ¤ç´¢ãè¡ã£ã¦ãã¾ããããã¯å±æ§ã ID åã§ãªãå ´åã« NULL + ãè¿ãå¿ è¦ããã DOM æ¨æºã«æºæ ãã¦ãã¾ããã + ãã®åä½ã¯åºå®ããã¦ããããã§ãã®ã§ãç¾å¨ã®åä½ãå½ã¦ã«ããªãã§ãã ããã </para> <para> - <function>DomDocument_add_root</function>ãåç §ãã ããã + <function>domdocument_get_elements_by_tagname</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml:1.4 phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml:1.5 --- phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml:1.4 Sun Jan 2 02:23:30 2005 +++ phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml Sun Jul 24 03:33:48 2005 @@ -1,14 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-get-elements-by-tagname"> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-get-elements-by-tagname"> <refnamediv> <refname>DomDocument->get_elements_by_tagname</refname> <refpurpose> + æç« ä¸ã«ä¸ããããã¿ã°åãæã¤ãã¼ãã®é åãè¿ãã + ãããã¯ãè¦ã¤ãããªãå ´åã¯ç©ºã®é åãè¿ã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>DomDocument->get_elements_by_tagname</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> @@ -16,7 +20,8 @@ <para> </para> <para> - <function>DomDocument_add_root</function>ãåç §ãã ããã + <function>domdocument_add_root</function> + ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml Sun Jul 24 03:33:48 2005 @@ -1,50 +1,63 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-html-dump-mem"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-html-dump-mem"> <refnamediv> <refname>DomDocument->html_dump_mem</refname> <refpurpose> - HTMLã¨ãã¦æååã«å é¨XMLããªã¼ããã³ããã + HTML ã¨ãã¦æååã«å é¨ XML ããªã¼ããã³ããã </refpurpose> </refnamediv> <refsect1> - <title>説æ</title> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>DomDocument->html_dump_mem</methodname> <void/> </methodsynopsis> <para> - Creates an HTML document from the dom representation. This function - usually is called after building a new dom document from scratch - as in the example below. + DOM 表ç¾ãã HTML æç« ãçæãã¾ãããã®é¢æ°ã¯ä»¥ä¸ã®ä¾ã®ããã«ã + é常ã¹ã¯ã©ããããæ°è¦ DOM æç« ãçæããå¾ã«ã³ã¼ã«ããã¾ãã </para> <para> <example> - <title>Creating a simple HTML document header</title> + <title>ç°¡å㪠HTML æç« ã®ããããçæãã</title> <programlisting role="php"> <![CDATA[ <?php + +// æç« ãçæãã $doc = domxml_new_doc("1.0"); -$root = $doc->create_element("HTML"); + +$root = $doc->create_element("html"); $root = $doc->append_child($root); -$head = $doc->create_element("HEAD"); + +$head = $doc->create_element("head"); $head = $root->append_child($head); -$title = $doc->create_element("TITLE"); + +$title = $doc->create_element("title"); $title = $head->append_child($title); + $text = $doc->create_text_node("This is the title"); $text = $title->append_child($text); -echo "<PRE>"; -echo htmlentities($doc->html_dump_mem()); -echo "</PRE>"; + +echo $doc->html_dump_mem(); ?> ]]> </programlisting> + &example.outputs; + <screen role="xml"> +<![CDATA[ +<html><head><title>This is the title</title></head></html> +]]> + </screen> </example> </para> <para> - See also <function>DomDocument_dump_file</function>, - <function>DomDocument_html_dump_mem</function>. + <function>domdocument_dump_file</function>, + <function>domdocument_html_dump_mem</function> + ãåç §ãã ããã </para> </refsect1> </refentry>