Commit 659866c3 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

improve collection listing

parent 9d1b4ec1
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
<?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">



    <xsl:output method="xml" encoding="utf-8"/>

    <xsl:strip-space elements="*"/>




    <xsl:template match="node() | @*">
        <xsl:copy>
            <xsl:apply-templates select="@* | node()"/>
        </xsl:copy>
    </xsl:template>


    <xsl:template match="/">
        <xsl:apply-templates/>
    </xsl:template>

    <xsl:template match="label">
    </xsl:template>

    <xsl:template match="ul">
        <details>
            <summary><xsl:apply-templates select="preceding-sibling::label/data()"/></summary>
            <ul>
                <xsl:apply-templates select="li"/>
            </ul>
        </details>
    </xsl:template>
</xsl:stylesheet>
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ function max-dev:index() as element(){
                    {if(db:exists($database:max-db))
                        then
                            <div>
                                {database:sources()}
                                {xslt:transform(database:sources(), doc('collections.xsl'))}
                            </div>
                        else <span style='color:red;'> NOK</span>
                    }
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@ aside {
    height: 100%;
}

details ul {
    list-style-type: square;
    margin-left: 5px;
    margin-top: 5px;
}

main ul {
    padding-left: 0;