Loading src/main/bundles/max-dev/collections.xsl 0 → 100644 +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> src/main/bundles/max-dev/max-dev.xqm +1 −1 Original line number Diff line number Diff line Loading @@ -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> } Loading src/main/bundles/max-dev/static/max.css +5 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,11 @@ aside { height: 100%; } details ul { list-style-type: square; margin-left: 5px; margin-top: 5px; } main ul { padding-left: 0; Loading Loading
src/main/bundles/max-dev/collections.xsl 0 → 100644 +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>
src/main/bundles/max-dev/max-dev.xqm +1 −1 Original line number Diff line number Diff line Loading @@ -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> } Loading
src/main/bundles/max-dev/static/max.css +5 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,11 @@ aside { height: 100%; } details ul { list-style-type: square; margin-left: 5px; margin-top: 5px; } main ul { padding-left: 0; Loading