root > misc > scripts > upload-history.xsl

upload-history.xsl

application/xml, 930 bytes (load raw)
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:output method="html"/>
        <xsl:template match="/">
                <xsl:apply-templates select="yurik/pages/page"/>
                <xsl:for-each select="pages/page/imagehistory/ih" order-by="timestamp">
                        <p><xsl:value-of select="@timestamp"/>
                        </p>
                       
                </xsl:for-each>
        </xsl:template>
        <xsl:template match="page">
                <hr/>
                <hr/>
               
                <ul>
                <xsl:apply-templates select="image"/>
                <xsl:apply-templates select="imghistory/ih"/>
                </ul>
        </xsl:template>
       
        <xsl:template match="image|ih">
                <li>
                <a>
                        <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
                        <xsl:value-of select="@timestamp"/>
                </a>:
                by <b><xsl:value-of select="@user"/></b>
                (<xsl:value-of select="@width"/>x<xsl:value-of select="@height"/>, <xsl:value-of select="@size"/> bytes)
                <i>
                        <xsl:value-of select="@comment"/>
                </i>
                </li>
        </xsl:template>
</xsl:stylesheet>