{"id":17,"date":"2020-12-01T11:05:11","date_gmt":"2020-12-01T02:05:11","guid":{"rendered":"https:\/\/xslt.auctionpro.co.kr\/?page_id=17"},"modified":"2020-12-01T15:22:01","modified_gmt":"2020-12-01T06:22:01","slug":"output-method","status":"publish","type":"page","link":"https:\/\/xslt.auctionpro.co.kr\/?page_id=17","title":{"rendered":"output method"},"content":{"rendered":"<pre class=\"lang:xhtml decode:true\">&lt;xsl:output\r\nmethod=\"xml|html|text|name\"\r\nversion=\"string\"\r\nencoding=\"string\"\r\nomit-xml-declaration=\"yes|no\"\r\nstandalone=\"yes|no\"\r\ndoctype-public=\"string\"\r\ndoctype-system=\"string\"\r\ncdata-section-elements=\"namelist\"\r\nindent=\"yes|no\"\r\nmedia-type=\"string\"\/&gt;<\/pre>\n<p><strong>Attributes<br \/>\n<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<th>Attribute<\/th>\n<th>Value<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>method<\/td>\n<td>xml<br \/>\nhtml<br \/>\ntext<br \/>\nname<\/td>\n<td>Optional. Defines the output format. The default is XML (but if the first child of the root node is &lt;html&gt; and there are no preceding text nodes, then the default is HTML)Netscape 6 only supports &#8220;html&#8221; and &#8220;xml&#8221;<\/td>\n<\/tr>\n<tr>\n<td>version<\/td>\n<td>string<\/td>\n<td>Optional. Sets the W3C version number for the output format (only used with method=&#8221;html&#8221; or method=&#8221;xml&#8221;)<\/td>\n<\/tr>\n<tr>\n<td>encoding<\/td>\n<td>string<\/td>\n<td>Optional. Sets the value of the encoding attribute in the output<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #ff6600;\">omit-xml-declaration<\/span><\/td>\n<td>yes<br \/>\nno<\/td>\n<td>Optional. &#8220;yes&#8221; specifies that the XML declaration (&lt;?xml&#8230;?&gt;) should be omitted in the output. &#8220;no&#8221; specifies that the XML declaration should be included in the output. The default is &#8220;<span style=\"color: #ff6600;\">no<\/span>&#8220;<\/td>\n<\/tr>\n<tr>\n<td>standalone<\/td>\n<td>yes<br \/>\nno<\/td>\n<td>Optional. &#8220;yes&#8221; specifies that a standalone declaration should occur in the output. &#8220;no&#8221; specifies that a standalone declaration should not occur in the output. The default is &#8220;no&#8221;This attribute is not supported by Netscape 6<\/td>\n<\/tr>\n<tr>\n<td>doctype-public<\/td>\n<td>string<\/td>\n<td>Optional. Sets the value of the PUBLIC attribute of the DOCTYPE declaration in the output<\/td>\n<\/tr>\n<tr>\n<td>doctype-system<\/td>\n<td>string<\/td>\n<td>Optional. Sets the value of the SYSTEM attribute of the DOCTYPE declaration in the output<\/td>\n<\/tr>\n<tr>\n<td>cdata-section-elements<\/td>\n<td>namelist<\/td>\n<td>Optional. A white-space separated list of elements whose text contents should be written as CDATA sections<\/td>\n<\/tr>\n<tr>\n<td>indent<\/td>\n<td>yes<br \/>\nno<\/td>\n<td>Optional. &#8220;yes&#8221; indicates that the output should be indented according to its hierarchic structure. &#8220;no&#8221; indicates that the output should not be indented according to its hierarchic structure.This attribute is not supported by Netscape 6<\/td>\n<\/tr>\n<tr>\n<td>media-type<\/td>\n<td>string<\/td>\n<td>Optional. Defines the MIME type of the output. The default is &#8220;text\/xml&#8221;This attribute is not supported by Netscape 6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong> output method\u00a0 \uac00 \uc5c6\ub294 \uacbd\uc6b0 text \ud615\uc2dd\uc774 \ub098\uc624\uc9c0 \uc54a\ub294 \uacbd\uc6b0\uac00 \uc788\uc5b4\u00a0 \ub2e4\uc74c\uacfc \uac19\uc774 \ub123\uc5b4\uc900\ub2e4.<br \/>\n<\/strong><\/p>\n<pre class=\"lang:xhtml decode:true \">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;xsl:stylesheet version=\"1.0\"\r\n    xmlns:xsl=\"http:\/\/www.w3.org\/1999\/XSL\/Transform\"\r\n    xmlns:msxsl=\"urn:schemas-microsoft-com:xslt\" exclude-result-prefixes=\"msxsl\"\r\n    xmlns:js=\"javascript:code\"&gt;\r\n  \r\n   &lt;xsl:output method=\"text\" indent=\"yes\" omit-xml-declaration=\"no\"\/&gt;\r\n  \r\n  &lt;xsl:template match=\"*\"&gt;\r\n  \r\n    &lt;xsl:element name=\"{name()}\"&gt;\r\n      &lt;xsl:for-each select=\"@*\"&gt;\r\n        &lt;xsl:element name=\"{name()}\"&gt;\r\n          &lt;xsl:value-of select=\".\"\/&gt;\r\n        &lt;\/xsl:element&gt;\r\n      &lt;\/xsl:for-each&gt;\r\n      &lt;xsl:apply-templates select=\"*|text()\"\/&gt;\r\n    &lt;\/xsl:element&gt;\r\n\t\r\n  &lt;\/xsl:template&gt;\r\n  \r\n&lt;\/xsl:stylesheet&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;xsl:output method=&#8221;xml|html|text|name&#8221; version=&#8221;string&#8221; encoding=&#8221;string&#8221; omit-xml-declaration=&#8221;yes|no&#8221; standalone=&#8221;yes|no&#8221; doctype-public=&#8221;string&#8221; doctype-system=&#8221;string&#8221; cdata-section-elements=&#8221;namelist&#8221; indent=&#8221;yes|no&#8221; media-type=&#8221;string&#8221;\/&gt; Attributes Attribute Value Description method xml html text name Optional. Defines the output format. The default is XML (but if the first child of the root node is &lt;html&gt; and there are no preceding text nodes, then the default is HTML)Netscape 6 only supports &hellip;<br \/><a href=\"https:\/\/xslt.auctionpro.co.kr\/?page_id=17\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\"><span class=\"screen-reader-text\">output method<\/span> \ub354\ubcf4\uae30<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-17","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/xslt.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xslt.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xslt.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xslt.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xslt.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":4,"href":"https:\/\/xslt.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/17\/revisions"}],"predecessor-version":[{"id":23,"href":"https:\/\/xslt.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/17\/revisions\/23"}],"wp:attachment":[{"href":"https:\/\/xslt.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}