for-eachの内容をdivにラップする方法を理解するのに問題があります。各divにはそれぞれ4つの要素が含まれています。
以下に、私のXSLTの非常に簡略化されたバージョンを示します。
<xsl:template match="/">
<div class="container"><!-- have to be repeated for every 4 elements from the for-each -->
<xsl:for-each select="$currentPage/GalleriListe/descendant::* [@isDoc] [not(self::GalleriListe)]">
<div>...</div>
</xsl:for-each>
</div>
</xsl:template>
何か案は?ありがとう!