Y.A.S.D.

RDF/XSL

 :
<xsl:apply-templates select="rss:image"/>
 :
<xsl:template match="rss:image">
  <a>
   <xsl:attribute name="href">
    <xsl:value-of select="rss:link"/>
   </xsl:attribute>
   <img>
    <xsl:attribute name="src">
     <xsl:value-of select="rss:url"/>
    </xsl:attribute>
    <xsl:attribute name="alt">
     <xsl:value-of select="rss:title"/>
    </xsl:attribute>
   </img>
  </a>
</xsl:template>
 :

んで

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://roguelife.org/css/rdf.xsl" type="text/xsl"?>
 :
<channel rdf:about="http://RogueLife.org/diary/rdf.py">
 :
 <image rdf:resource="/diary/img/yasdlogo.png" />
</channel>
<image rdf:about="/diary/img/yasdlogo.png">
 <title>Y.A.S.D.</title>
 <link>http://RogueLife.org/diary/</link>
 <url>/diary/img/yasdlogo.png</url>
</image>
 :

な感じで出力するようにしてみたけど, Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20030711 だと画像が出ないな。

 

Comments:

Post a Comment:
  • HTML Syntax: Allowed

[Masubi]
Copyright © 1998-2009 Tomoaki TSUMURA. Powered by Apache Roller 4.0.1.
tomoaki@tsumura.info