<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/xml.xsl" type="text/xsl"?><feed xmlns="http://www.w3.org/2005/Atom">
  <title>nulog, NULL::something : out of the headphone &gt; 2004 &gt; August &gt; 04 &gt; msxsl | xmllint</title>
  <link href="http://lowreal.net/logs/2004/08/04/3"/>
  <icon>http://lowreal.net/img/banner.png</icon>
  <link rel="self" type="application/atom+xml" href="http://lowreal.net/logs/2004/08/04/3.atom"/>
  <link rel="alternate" type="application/xhtml+xml" href="http://lowreal.net/logs/2004/08/04/3.xhtml"/>
  <updated>2004-08-04T03:19:17+09:00</updated>
  <author>
    <name>cho45(砂糖)</name>
  </author>
  <id>http://lowreal.net/2004/08/04/3</id>
  <entry>
    <title>msxsl | xmllint</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/08/04/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/08/04/3.xhtml"/>
    <updated>2004-08-04T03:19:17+09:00</updated>
    <published>2004-08-04T03:19:17+09:00</published>
    <id>http://lowreal.net/2004/08/04/3</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><a href="http://lowreal.net/logs//2004/08/02.atom/5">サイト全体を <abbr title="Extensible Markup Language">XML</abbr> + <abbr title="XSL Transformations">XSLT</abbr> 化？</a> の続き。ファイル名から判断して msxsl に突っ込むスクリプトを書く。具体的には <samp>index</samp>.<samp>html</samp>.xml というファイルがあったら 2<samp>html</samp>.xsl を使って <samp>index</samp>.<samp>html</samp> に出力するというもの。</p>
        <p>書いたはいいとして、何故か実行するたびにエラーがでたりでなかったり……パイプの使い方を間違っているんだろうかとかなんとか思ったり思わなかったり。</p>
        <p>xyzzy で CDATA 領域に <code>--</code> が奇数個あるとそれ以降ファイルの最後までコメントとみなされて困る……</p>
        <p>Sequel of <a href="http://lowreal.net/logs//2004/08/02.atom/5">whole site built by <abbr title="Extensible Markup Language">XML</abbr> + <abbr title="XSL Transformations">XSLT</abbr> ?</a>. wrote a script which interpret filename and run msxsl. Concretely speaking if <samp>index</samp>.<samp>html</samp>.xml exists, use 2<samp>html</samp>.xsl and output transformed xml to <samp>index</samp>.<samp>html</samp> in same directory. </p>
      </div>
    </content>
  </entry>
</feed>
