OSDN Git Service

img -> picture
authoritozyun <itozyun@git.sourceforge.jp>
Fri, 30 Dec 2011 17:07:08 +0000 (02:07 +0900)
committeritozyun <itozyun@git.sourceforge.jp>
Fri, 30 Dec 2011 17:07:08 +0000 (02:07 +0900)
test/XmlXsltTest/pettanr.xml
test/XmlXsltTest/pettanr.xsl

index 5954f3c..d6942a9 100644 (file)
 >\r
 \r
        <panel h="200" bgcolor="#ccc">\r
-               <img url="uploaded/1483.gif" x="20" y="40" w="267" h="292" name="ペン次郎・フム" author="yas" site="http://www.pen-chan.jp/"/>\r
+               <picture url="uploaded/1483.gif" x="20" y="40" w="267" h="292" name="ペン次郎・フム" author="yas" site="http://www.pen-chan.jp/"/>\r
                <balloon type="0" tail="5" w="150" h="140" x="240" y="-10" size="16" bold="1">こんちにわ</balloon>\r
        </panel>\r
 \r
        <panel h="300" bgcolor="#fcc">\r
-               <img url="uploaded/2313.gif" x="300" y="40" w="200" h="153" name="うさたろう:睡眠中" author="yuji" site="yuji.com"/>\r
-               <img url="uploaded/1486.gif" x="200" y="150" w="138" h="183" name="ペン次郎・ラジャ" author="yas" site="http://www.pen-chan.jp/"/>\r
-               <img url="uploaded/1486.gif" x="-20" y="30" w="138" h="183" name="ペン次郎・ラジャ~~~~~~~~~~~~~~~" author="yas" site="http://www.pen-chan.jp/"/>\r
+               <picture url="uploaded/2313.gif" x="300" y="40" w="200" h="153" name="うさたろう:睡眠中" author="yuji" site="yuji.com"/>\r
+               <picture url="uploaded/1486.gif" x="200" y="150" w="138" h="183" name="ペン次郎・ラジャ" author="yas" site="http://www.pen-chan.jp/"/>\r
+               <picture url="uploaded/1486.gif" x="-20" y="30" w="138" h="183" name="ペン次郎・ラジャ~~~~~~~~~~~~~~~" author="yas" site="http://www.pen-chan.jp/"/>\r
                <balloon type="1" tail="1" w="200" h="100" x="20" y="20">こんばんわ</balloon>\r
                <balloon type="0" tail="2" w="150" h="100" x="80" y="180" size="20" bold="1">フギャー</balloon>\r
        </panel>\r
index 7c8e946..ec57ff8 100644 (file)
@@ -65,7 +65,7 @@
                                        <xsl:apply-templates/>\r
                                </div>\r
                        </xsl:for-each>\r
-                       <xsl:for-each select="./img">\r
+                       <xsl:for-each select="./picture">\r
                                <xsl:if test="@name">\r
                                        \r
                                        <div class="tooltip-container">\r
                </div>\r
     </xsl:template>\r
 \r
-    <xsl:template match="img">\r
+    <xsl:template match="picture">\r
                <xsl:for-each select=".">\r
                        <img>\r
                                <xsl:attribute name="src">\r