Custom Layout XSL issue

Hi Experts,

System Details
OS - RHEL 7.7
TS -

I am trying to create a custom layout for my livesite pages.

Below are the steps I followed along with code:

1> Created a custom layout xsl under livesite-customer-src/etc/classed folder
2> Added a entry in pagetype-config.xml
3>created a canvas under iw folder.

Now I am trying to add one more custom layout under my main custom layout, so I have created a new custom layout with name two-column-layout.xsl and try to call the template from main xsl. The problem is when I am trying to preview the .page I am getting error
"Caused by: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXException: javax.xml.transform.TransformerException: ElemTemplateElement error: two_column_layout"

My main xsl code snippet is below:

<body id="home">
	<xsl:value-of select="$newline" />
	<xsl:text>$ASP_FORM_START[]</xsl:text> <!-- For ASP.NET rendering -->
	<xsl:value-of select="$newline" />
		<xsl:when test="PageType/Layout[@canvas-path='2ColumnLayout.xml']">
			<xsl:call-template name="two_column_layout" />
			<xsl:apply-templates select="/Page/Layout"/>
	<xsl:text>$ASP_FORM_END[]</xsl:text> <!-- For ASP.NET rendering -->
	<xsl:comment>ls:end[body]</xsl:comment>  <!-- Taglib delimiter -->
	<xsl:value-of select="$newline" />
	<xsl:comment>ls:begin[page_track]</xsl:comment>  <!-- Taglib delimiter -->
	<xsl:comment>ls:end[page_track]</xsl:comment>  <!-- Taglib delimiter -->
	<xsl:value-of select="$newline" />

And two column layout xsl has below code snippet:

<xsl:stylesheet version="1.0" xmlns:xsl="">
	<xsl:template name="two_column_layout">
		<div class="site-header">
			<div class="container clearfix">
				<xsl:apply-templates select="/Page/Layout/descendant::FixedLayoutArea[@ID='headerArea']" />

I couldn't debug the issue as if I am using only main access I can preview the page but once I add call template in main xsl I started getting preview error in .pages. Can someone please point me to the right direction where I am doing wrong.


Niraj Kumar

Sign In or Register to comment.