<?xml version="1.0" encoding="UTF-8" ?>
<feed xml:lang="ja" xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <title type="text">適当ツール</title>
  <subtitle type="html">適当ツール説明</subtitle>
  <link rel="self" type="application/atom+xml" href="http://gunkanmaki.ky-3.net/atom"/>
  <link rel="alternate" type="text/html" href="http://gunkanmaki.ky-3.net/"/>
  <updated>2009-09-10T01:32:56+09:00</updated>
  <author><name>No Name Ninja</name></author>
  <generator uri="//www.ninja.co.jp/blog/" version="0.9">忍者ブログ</generator>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />
  <entry>
    <id>gunkanmaki.ky-3.net://entry/5</id>
    <link rel="alternate" type="text/html" href="http://gunkanmaki.ky-3.net/xml/chrome%E3%81%A7xml%E3%82%92%E8%A6%8B%E3%82%8B" />
    <published>2011-04-03T08:32:19+09:00</published> 
    <updated>2011-04-03T08:32:19+09:00</updated> 
    <category term="xml" label="xml" />
    <title>chromeでxmlを見る</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[ローカルファイルに対するアクセスルールが厳しいらしく、<br />
単体で表示できるものはいいが、<br />
他のローカルファイルを読み込んだりするようなものは、<br />
普通には見れないらしい。<br />
<br />
chromeの起動オプションに<br />
-allow-file-access-from-files<br />
をつけると、それが解除されるらしい。<br />
<br />
具体的には、chromeのショートカットのリンク先の欄に次のように付け加えて起動。<br />
<font color="#FF0000">&quot;C:\Documents and Settings\ユーザー名\Local Settings\Application Data\Google\Chrome\Application\chrome.exe&quot; -allow-file-access-from-files<br />
</font><br />
その他オプションもイロイロあるらしい。<br />
詳しくは<a href="http://chrome.half-moon.org/">chrome.half-moon.org/</a>このあたりで・・・<br />
<br type="_moz" />]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>gunkanmaki.ky-3.net://entry/4</id>
    <link rel="alternate" type="text/html" href="http://gunkanmaki.ky-3.net/xml/%E3%81%B2%E3%81%A8%E3%81%A4%E3%81%AExml%E3%82%92%E8%A4%87%E6%95%B0%E3%81%AExsl%E3%81%A7" />
    <published>2011-04-03T07:56:47+09:00</published> 
    <updated>2011-04-03T07:56:47+09:00</updated> 
    <category term="xml" label="xml" />
    <title>ひとつのxmlを複数のxslで</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[xmlで、複数のスタイルシートが使いたくなり、<br />
スタイルシートの切り替えとかやってみようとしたが、<br />
面倒だったり、ブラウザにより、挙動がおかしかったりしたので、 <br />
大本のデータはを読み込む別々のxmlを作成することにより、対処しよう。<br />
<br />
大本のxmlをsample.xmlとして、<br />
sample1.xsl、sample2.xslを準備し、<br />
それに対応するxmlをsample1.xml、sample2.xmlとする。<br />
<br />
・sample1.xml<br />
<div><font color="#0000FF">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</font></div>
<div><font color="#0000FF">&lt;!DOCTYPE ROOT [<br />
</font></div>
<div><font color="#0000FF">&lt;!ENTITY origData SYSTEM &quot;sample.xml&quot;&gt;<br />
</font></div>
<div><font color="#0000FF">]&gt;<br />
</font></div>
<div><font color="#0000FF">&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;sample1.xsl&quot;?&gt;<br />
</font></div>
<div><font color="#0000FF">&lt;ROOT&gt;<br />
</font></div>
<div><font color="#0000FF">&amp;origData;<br />
</font></div>
<div><font color="#0000FF">&lt;/ROOT&gt;<br />
</font></div>
<font color="#0000FF"> <!--?xml version="1.0" encoding="UTF-8"?--></font><root><br />
&nbsp;</root>こんな感じで、記述して、 <br />
sample.xmlは、<br />
<font color="#0000FF">&lt;!DOCTYPE ○○&gt;<br />
</font>
<div><font color="#0000FF">&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;○○.xsl&quot; ?&gt;<br />
</font>の部分をとっぱらって、</div>
sample1.xslは、これまでのルートにさらに上のノード？ROOTを追加して記述する。<br />
（sample.xmlのルートノードもとっぱらえば、<br />
xslの記述は変えなくて済みそうだが、<br />
現在使っているxmlエディタが、<br />
ルートノードがないとエラーになるので、<br />
このようにした。）<br />
<br />
sample2も同様にすれば、<br />
ブックマークに登録するなり、 <br />
２箇所にリンクをはるなりすれば、<br />
JavaScript等使わなくても、<br />
ひとつのxmlに対して、複数のxslが使えるようになった・・・<br />
<br type="_moz" />]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>gunkanmaki.ky-3.net://entry/3</id>
    <link rel="alternate" type="text/html" href="http://gunkanmaki.ky-3.net/xml/xsl-attribute" />
    <published>2009-09-24T11:30:14+09:00</published> 
    <updated>2009-09-24T11:30:14+09:00</updated> 
    <category term="xml" label="xml" />
    <title>xsl:attribute</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[&lt;a href=&quot;index.html&quot;&gt;インデックス&lt;/a&gt;なのを実現するには、<br />
xslで次のように記述<br />
<br />
&lt;a&gt;<br />
&lt;xsl:attribute name=&quot;href&quot;&gt;<br />
index.html<br />
&lt;/xsl:attribute&gt;<br />
インデックス<br />
&lt;/a&gt;<br />
<br type="_moz" />]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>gunkanmaki.ky-3.net://entry/2</id>
    <link rel="alternate" type="text/html" href="http://gunkanmaki.ky-3.net/xml/xml%E3%82%92%E3%81%84%E3%81%98%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B" />
    <published>2009-09-10T18:22:51+09:00</published> 
    <updated>2009-09-10T18:22:51+09:00</updated> 
    <category term="xml" label="xml" />
    <title>xmlをいじってみる</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<ul>
    <li>&lt;BR /&gt;で改行</li>
    <li>&lt;a href=&quot;http://www・・・&quot;&gt;どこそこ&lt;/a&gt; みたいなのを実現するには、xsl:attributeを使用</li>
</ul>]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>gunkanmaki.ky-3.net://entry/1</id>
    <link rel="alternate" type="text/html" href="http://gunkanmaki.ky-3.net/%E6%9C%AA%E9%81%B8%E6%8A%9E/%E3%81%A8%E3%82%8A%E3%81%82%E3%81%88%E3%81%9A%E6%9B%B8%E3%81%84%E3%81%A6%E3%81%BF%E3%82%8B" />
    <published>2009-09-10T01:35:55+09:00</published> 
    <updated>2009-09-10T01:35:55+09:00</updated> 
    <category term="未選択" label="未選択" />
    <title>とりあえず書いてみる</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[どんな感じになるのか・・・<br type="_moz" />]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
</feed>