Developer forum

Forum » Development » TemplateParagraphColumn in xsl does not display all paragraphs

TemplateParagraphColumn in xsl does not display all paragraphs


Reply

I just started using the new xslt templates.

 

I ran into a problem when trying to displaying all paragraphs in a column. It only shows the last paragraph in the selected column :(

 

Why is the template not showing all paragraphs ??

 

My xslt template is posted here:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" omit-xml-declaration="yes" indent="yes"  encoding="utf-8" />
<xsl:param name="html-content-type" />

<xsl:template match="/Template">
  <xsl:choose>
    <xsl:when test="GlobalTags/Global.Page.ID=1">
      <xsl:apply-templates select="/Template" mode="frontpage" />
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates select="/Template" mode="subpages" />
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

 

<xsl:template match="/Template" mode="frontpage">
 <div class="left"><xsl:value-of select="TemplateParagraphColumn1" disable-output-escaping="yes"/></div>
 <div class="paragraphcontent"><xsl:value-of select="TemplateParagraphColumn2" disable-output-escaping="yes"/></div>
 <div class="right"><xsl:value-of select="TemplateParagraphColumn3" disable-output-escaping="yes"/></div>
</xsl:template>

 

<xsl:template match="/Template" mode="subpages">
 <div class="paragraphcontent"><xsl:value-of select="TemplateParagraphColumn1" disable-output-escaping="yes"/></div>
 <div class="right"><xsl:value-of select="TemplateParagraphColumn2" disable-output-escaping="yes"/></div>
</xsl:template>

</xsl:stylesheet>
 

 


Replies

 
Reply

Sorry for the late response. This is a known issue that we're working on fixing.

 

You must be logged in to post in the forum