Aaarrgh! Layouts!

Posted: 14 October 2009 in layouts, SitePublisher, Teamsite, Uncategorized
Tags: , ,

I was a bit frustrated by the layouts in SitePublisher. The layout is nothing but a class that reads your page’s properties (.page files are XML), churns out some more XML and then passes it through an XSL to render it in the way you want it done. Except you don’t get to see the initial XML created by the layout implementation class.

in the layout’s xsl file, in the main template, you can use a simple trick (probably best to create a new layout and call that the debug layout).

<xsl:output method="xml" />
<xsl:template match="/">
    <xsl:copy><xsl:apply-templates /></xsl:copy>

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s