Skip to content

Commit d5c6b43

Browse files
committed
Fixing bugs.
1 parent 39eb7d6 commit d5c6b43

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎siteGenerator/xsl/staticHTML.xsl‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@
9696

9797
<!-- Find repo-config to find collection style values and page stubs -->
9898
<xsl:variable name="configPath">
99+
<xsl:value-of select="'../components/repo-config.xml'"/>
100+
<!--
99101
<xsl:choose>
100102
<xsl:when test="$applicationPath != ''">
101103
<xsl:value-of select="concat($applicationPath, '/siteGenerator/components/repo-config.xml')"/>
@@ -104,6 +106,7 @@
104106
<xsl:value-of select="'../components/repo-config.xml'"/>
105107
</xsl:otherwise>
106108
</xsl:choose>
109+
-->
107110
</xsl:variable>
108111

109112
<!-- Get configuration file. -->
@@ -256,7 +259,7 @@
256259
</xsl:variable>
257260
<xsl:variable name="nodes" select="//t:TEI | //rdf:RDF | *"/>
258261
<xsl:for-each-group select="$path/child::*" group-by=".">
259-
<xsl:message>Path: <xsl:value-of select="$path"/></xsl:message>
262+
<!-- <xsl:message>Path: <xsl:value-of select="$path"/></xsl:message>-->
260263
<xsl:result-document href="{replace(.,'.xml','.html')}">
261264
<xsl:choose>
262265
<xsl:when test="$fileType = 'HTML'">
@@ -314,15 +317,15 @@
314317
<xsl:variable name="collectionTemplate">
315318
<xsl:choose>
316319
<xsl:when test="$idno != ''">
317-
<xsl:message> TEI record with an idno: <xsl:value-of select="$idno"/></xsl:message>
320+
<!-- <xsl:message> TEI record with an idno: <xsl:value-of select="$idno"/></xsl:message>-->
318321
<xsl:variable name="templatePath" select="'../components/page.html'"/>
319322
<!-- <xsl:variable name="templatePath" select="concat($staticSitePath,'/siteGenerator/components/page.html')"/>-->
320323
<xsl:if test="doc-available(xs:anyURI($templatePath))">
321324
<xsl:sequence select="document(xs:anyURI($templatePath))"/>
322325
</xsl:if>
323326
</xsl:when>
324327
<xsl:when test="$convert = 'false' and $outputFile != ''">
325-
<xsl:message>Generate new HTML page</xsl:message>
328+
<!-- <xsl:message>Generate new HTML page</xsl:message>-->
326329
<xsl:variable name="templatePath">
327330
<xsl:choose>
328331
<xsl:when test="$config/descendant::*:collection[@name = $outputCollection]/@template">
@@ -339,14 +342,14 @@
339342
</xsl:if>
340343
</xsl:when>
341344
<xsl:when test="$nodes/@data-template-with != ''">
342-
<xsl:message>Convert HTML from old format </xsl:message>
345+
<!-- <xsl:message>Convert HTML from old format </xsl:message>-->
343346
<xsl:variable name="templatePath" select="concat($staticSitePath,'/siteGenerator/components/page.html')"/>
344347
<xsl:if test="doc-available(xs:anyURI($templatePath))">
345348
<xsl:sequence select="document(xs:anyURI($templatePath))"/>
346349
</xsl:if>
347350
</xsl:when>
348351
<xsl:otherwise>
349-
<xsl:message>Find generic page.html template</xsl:message>
352+
<!-- <xsl:message>Find generic page.html template</xsl:message>-->
350353
<xsl:variable name="templatePath" select="'../components/page.html'"/>
351354
<xsl:if test="doc-available(xs:anyURI($templatePath))">
352355
<xsl:sequence select="document(xs:anyURI($templatePath))"/>

0 commit comments

Comments
 (0)