<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CFHTMLHEAD</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="説明">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CFHTMLHEAD</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">説明</span>
<p>
生成される HTML ページの head セクションにテキストを書き込みます。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">カテゴリ</span>
<p>
ページ処理タグ
</p>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="syntax"><span class="title">シンタックス</span><pre>&lt;cfhtmlhead
   text = &quot;text&quot;&gt;
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">関連項目</span>
<p>
cfcache、cfflush、cfheader、cfheader、cfinclude、cfsetting、cfsilent
</p>

<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">使用方法</span>
<p>
このタグは、HTML ページのヘッダ内に JavaScript コードを埋め込む場合や、meta、link、title、base などの他の HTML タグを配置する場合などに使用します。 
</p>

<p>
ページ内で cfflush タグの後にこのタグを使用するとエラーが発生します。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">例</span><pre>&lt;!--- この例では、Macromedia Designer &amp; Developer Center XML が
提供している情報を示しています 
(http://www.macromedia.com/devnet/resources/macromedia_resources.rdf)。
詳細については、http://www.macromedia.com/desdev/articles/xml_resource_feed.html 
を参照してください。 ---&gt;

&lt;!--- URL アドレスを設定します。 ---&gt;
&lt;cfset urlAddress=&quot;http://www.macromedia.com/devnet/resources/macromedia_resources.rdf&quot;&gt;

&lt;!--- CFHTTP タグを使用して、urladdress で示されるファイルの内容を取得 ---
このタグは、終了タグで終わるのではなく /&gt; で終わっています。 ---&gt;
&lt;cfhttp url=&quot;#urladdress#&quot; method=&quot;GET&quot; resolveurl=&quot;Yes&quot; throwOnError=&quot;Yes&quot;/&gt;

&lt;!--- XML を解析して、リソースのリストを出力します。 ---&gt;
&lt;cfset xmlDoc = XmlParse(CFHTTP.FileContent)&gt;

&lt;!--- リソース要素の配列 (xmlroot の xmlChildren) を取得します。 ---&gt;
&lt;cfset resources=xmlDoc.xmlroot.item&gt;
&lt;cfset numresources=ArrayLen(xmlDoc.xmlRoot.xmlChildren)-1&gt;
&lt;cfloop index=&quot;i&quot; from=&quot;1&quot; to=&quot;#numresources#&quot;&gt;
&lt;cfset item=resources[i]&gt;
&lt;cfoutput&gt;
&lt;strong&gt;&lt;a href=#item.link.xmltext#&gt;#item.title.xmltext#&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;作成者&lt;/strong&gt;&amp;nbsp;&amp;nbsp;#item.creator.xmltext#&lt;br&gt;
&lt;strong&gt;説明&lt;/strong&gt; #item.description.xmlText#&lt;br&gt;
&lt;strong&gt;次の製品に適用&lt;/strong&gt;&lt;br&gt;
&lt;cfloop index=&quot;i&quot; from=&quot;1&quot; to=&quot;#arrayLen(item.subject)#&quot; step=&quot;1&quot;&gt;
#item.subject[i].xmltext#&lt;br&gt;
&lt;/cfloop&gt;
&lt;br&gt;
&lt;/cfoutput&gt;
&lt;/cfloop&gt; 
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="TEXT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">TEXT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>HTML ページの &lt;head&gt; 領域に追加するテキストです。</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
