<?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; July &gt; 31 &gt; サイト全体を XML + XSLT ?</title>
  <link href="http://lowreal.net/logs/2004/07/31/2"/>
  <icon>http://lowreal.net/img/banner.png</icon>
  <link rel="self" type="application/atom+xml" href="http://lowreal.net/logs/2004/07/31/2.atom"/>
  <link rel="alternate" type="application/xhtml+xml" href="http://lowreal.net/logs/2004/07/31/2.xhtml"/>
  <updated>2004-07-31T17:46:41+09:00</updated>
  <author>
    <name>cho45(砂糖)</name>
  </author>
  <id>http://lowreal.net/2004/07/31/2</id>
  <entry>
    <title>サイト全体を XML + XSLT ?</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/07/31/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/07/31/2.xhtml"/>
    <updated>2004-07-31T17:46:41+09:00</updated>
    <published>2004-07-31T17:46:41+09:00</published>
    <id>http://lowreal.net/2004/07/31/2</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>サイト全体を <abbr title="Extensible Markup Language">XML</abbr> データをもとにして <abbr title="Extensible Stylesheet Language">XSL</abbr> 変換したほうが楽っぽいなぁ。辞書とか、ヘッダ・フッタとかの共通部分を完全に一箇所にまとめられるし、<abbr title="XSL Transformations">XSLT</abbr> っつうちゃんと仕様の決まってるやつをテンプレートとして使うから他人が構造を見ても (まずないけど) 理解しやすいし。</p>
        <p>とりあえずそれっぽい <abbr title="Extensible Markup Language">XML</abbr> データを変換する <abbr title="XSL Transformations">XSLT</abbr> を書いてみた。んでも <abbr title="Extensible Markup Language">XML</abbr> データがどうしても脳内 <abbr>DTD</abbr> なわけで……ただ単に簡略化した <abbr title="Extensible Hyper Text Markup Language">XHTML</abbr> のほうがいいだろうか。でも h 要素使ってる<span class="fn">テンプレ側で h1 要素を固定した場合、データに直接 h1, h2 と書いてしまうと面倒くさいので。</span>し……どうやって変換すればいいだろう。っていっても現状 <abbr title="PHP: Hypertext Preprocessor">PHP</abbr> にクエリ突っ込むような形しかないけど……</p>
      </div>
    </content>
  </entry>
</feed>
