Skip to content

Commit

Permalink
Hide server-side rendered content
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Dec 21, 2023
1 parent 4ac2127 commit 428a9c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,9 @@ exclude-result-prefixes="#all"
<xsl:variable name="container" select="." as="element()"/>
<xsl:variable name="progress-container" select="if (contains-token(@class, 'row-fluid')) then ./div[contains-token(@class, 'main')] else ." as="element()"/>

<!-- container could be hidden server-side -->
<ixsl:set-style name="display" select="'block'"/>

<!-- show progress bar in the middle column -->
<xsl:for-each select="$progress-container">
<xsl:result-document href="?." method="ixsl:replace-content">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ extension-element-prefixes="ixsl"
<xsl:with-param name="typeof" select="$typeof"/>
<xsl:with-param name="content-value" select="$content-value"/>
<xsl:with-param name="mode" select="$mode"/>
<xsl:with-param name="style" select="'display: none;'"/>
</xsl:next-match>
</xsl:template>

Expand All @@ -500,6 +501,7 @@ extension-element-prefixes="ixsl"
<xsl:param name="typeof" select="rdf:type/@rdf:resource/xs:anyURI(.)" as="xs:anyURI*"/>
<xsl:param name="content-value" as="xs:anyURI?"/>
<xsl:param name="mode" as="xs:anyURI?"/>
<xsl:param name="style" as="xs:string?"/>

<div>
<xsl:if test="$id">
Expand All @@ -514,6 +516,9 @@ extension-element-prefixes="ixsl"
<xsl:if test="$typeof">
<xsl:attribute name="typeof" select="$typeof"/>
</xsl:if>
<xsl:if test="$style">
<xsl:attribute name="style" select="$style"/>
</xsl:if>

<xsl:apply-templates select="." mode="bs2:Left"/>

Expand Down

0 comments on commit 428a9c2

Please sign in to comment.