Sha256: 5e86bebf4bcb25702c51737512c4c8fabb4815fc716d23565944e122d2b7fc12
Contents?: true
Size: 1.89 KB
Versions: 28
Compression:
Stored size: 1.89 KB
Contents
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="utf-8"/> <xsl:template match="/schema"> <html> <head> <title>Solr-Schema: <xsl:value-of select="@name"/></title> <link rel="stylesheet" type="text/css" href="solr_schema.css"/> </head> <body> <h2>Solr-Schema-Definition:</h2> <h1>"<xsl:value-of select="@name"/>"</h1> <div id="fields"> <xsl:apply-templates select="fields"/> </div> <div id="types"> <xsl:apply-templates select="types"/> </div> </body> </html> </xsl:template> <xsl:template match="fields"> <table> <caption>Fields</caption> <thead> <tr> <th>Name</th> <th>Type</th> <th>Properties</th> </tr> </thead> <tbody> <xsl:for-each select="field"> <tr> <td class="name"><xsl:value-of select="@name"/></td> <td class="type"><xsl:value-of select="@type"/></td> <td class="property"> <xsl:choose><xsl:when test="@indexed='true'">indexed </xsl:when></xsl:choose> <xsl:choose><xsl:when test="@stored='true'">stored </xsl:when></xsl:choose> <xsl:choose><xsl:when test="@multiValued='true'">multiValued </xsl:when></xsl:choose> <xsl:choose><xsl:when test="@required='true'">required </xsl:when></xsl:choose> </td> </tr> </xsl:for-each> </tbody> </table> </xsl:template> <xsl:template match="types"> <table> <caption>Types</caption> <thead> <tr> <th>Name</th> <th>Class</th> </tr> </thead> <tbody> <xsl:for-each select="fieldType"> <tr> <td class="name"><xsl:value-of select="@name"/></td> <td class="type"><xsl:value-of select="@class"/></td> </tr> </xsl:for-each> </tbody> </table> </xsl:template> </xsl:stylesheet>
Version data entries
28 entries across 28 versions & 1 rubygems