<commit_before><?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns="http://www.w3.org/1999/xhtml"
  version="1.0" 
  xmlns:ni="xalan://org.apache.xalan.lib.NodeInfo"
  exclude-result-prefixes="ni">
  
  <xsl:output
    method="xml"
    indent="yes"
    encoding="utf-8"
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>

  <xsl:param name="basedir"/>
  <xsl:param name="branding"/>
  <xsl:variable name="brand" select="document(concat($branding,'/branding.xml'))/brand"/>
  <xsl:param name="webappprefix"/>
  <xsl:param name="outputext"/>
  <xsl:param name="sourceref"/>
  <xsl:variable name="source" select="substring-after(ni:systemId(),concat($sourceref,'/'))"/>

  <xsl:include href="menu.xsl"/>
  <xsl:include href="docbook.xsl"/>

  <xsl:template match="/">
    <html>
      <head>
        <title><xsl:value-of select="$brand/title"/></title>
        <xsl:for-each select="$brand/stylesheet">
          <link rel="stylesheet" type="text/css" href="{concat($basedir, '/', @file)}" media="screen,printer"/>
        </xsl:for-each>
        <xsl:for-each select="$brand/meta">
          <meta>
            <xsl:copy-of select="@*"/>
          </meta>
        </xsl:for-each>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <!-- The ; below is for Netscape 4 (to avoid generating <script/>) -->
        <script type="text/javascript" src="{$basedir}/style/footer.js">;</script>
      </head>
      
      <body>
        <div id="header">
          <h1><a href="{$basedir}/"><xsl:apply-templates mode="copy-no-ns" select="$brand/title/node()"/></a></h1>
          <p><xsl:apply-templates mode="copy-no-ns" select="$brand/headline/node()"/></p>
        </div>
        
        <!-- <p>NI: <xsl:value-of select="ni:systemId()"/></p>
             <p>Sourceref: <xsl:value-of select="$sourceref"/></p>
             <p>Source file: <xsl:value-of select="$source"/></p>
             <p>Menu path: <xsl:call-template name="menupath"/></p> -->
             
        <div id="nav">
          <xsl:call-template name="sidebar"/>
        </div>
        
        <div id="content">
          <xsl:apply-templates/>
        </div>
        
        
        <div id="footer">
          <div id="address"><a href="mailto:info%5Bat%5Dflymine.org">info[at]flymine.org</a> - Tel: +44 (0)1223 333377 - University of Cambridge - UK</div>
          <div id="wellcome"><xsl:apply-templates mode="copy-no-ns" select="$brand/funding/node()"/></div>
        </div>
      </body>
    </html>
  </xsl:template>
  
  <xsl:template match="index">
    <ul>
      <xsl:apply-templates/>
    </ul><commit_msg>Fixed clash between GBrowse and FlyMine CSS over #content.<commit_after><?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns="http://www.w3.org/1999/xhtml"
  version="1.0" 
  xmlns:ni="xalan://org.apache.xalan.lib.NodeInfo"
  exclude-result-prefixes="ni">
  
  <xsl:output
    method="xml"
    indent="yes"
    encoding="utf-8"
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>

  <xsl:param name="basedir"/>
  <xsl:param name="branding"/>
  <xsl:variable name="brand" select="document(concat($branding,'/branding.xml'))/brand"/>
  <xsl:param name="webappprefix"/>
  <xsl:param name="outputext"/>
  <xsl:param name="sourceref"/>
  <xsl:variable name="source" select="substring-after(ni:systemId(),concat($sourceref,'/'))"/>

  <xsl:include href="menu.xsl"/>
  <xsl:include href="docbook.xsl"/>

  <xsl:template match="/">
    <html>
      <head>
        <title><xsl:value-of select="$brand/title"/></title>
        <xsl:for-each select="$brand/stylesheet">
          <link rel="stylesheet" type="text/css" href="{concat($basedir, '/', @file)}" media="screen,printer"/>
        </xsl:for-each>
        <xsl:for-each select="$brand/meta">
          <meta>
            <xsl:copy-of select="@*"/>
          </meta>
        </xsl:for-each>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <!-- The ; below is for Netscape 4 (to avoid generating <script/>) -->
        <script type="text/javascript" src="{$basedir}/style/footer.js">;</script>
      </head>
      
      <body>
        <div id="header">
          <h1><a href="{$basedir}/"><xsl:apply-templates mode="copy-no-ns" select="$brand/title/node()"/></a></h1>
          <p><xsl:apply-templates mode="copy-no-ns" select="$brand/headline/node()"/></p>
        </div>
        
        <!-- <p>NI: <xsl:value-of select="ni:systemId()"/></p>
             <p>Sourceref: <xsl:value-of select="$sourceref"/></p>
             <p>Source file: <xsl:value-of select="$source"/></p>
             <p>Menu path: <xsl:call-template name="menupath"/></p> -->
             
        <div id="nav">
          <xsl:call-template name="sidebar"/>
        </div>
        
        <div id="pagecontent">
          <xsl:apply-templates/>
        </div>
        
        
        <div id="footer">
          <div id="address"><a href="mailto:info%5Bat%5Dflymine.org">info[at]flymine.org</a> - Tel: +44 (0)1223 333377 - University of Cambridge - UK</div>
          <div id="wellcome"><xsl:apply-templates mode="copy-no-ns" select="$brand/funding/node()"/></div>
        </div>
      </body>
    </html>
  </xsl:template>
  
  <xsl:template match="index">
    <ul>
      <xsl:apply-templates/>
    </ul>
{'fraction_non_alphanumeric': 0.21501523024547572, 'fraction_numerical': 0.014692707400107507, 'mean_word_length': 2.696688741721854, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 2, '>': 159, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3771946', 'n_tokens_mistral': 2055, 'n_tokens_neox': 1893, 'n_words': 283}