The problem: Microsoft provide a way to create custom headers using the file Header.xsl but doesn’t provide the same kind of file concerning the footer. So how to create a style containing a footer and a header?

Inside your new style in the file itemstyle.xsl add the following snippet:

For a header add a test to check if there is a preceding sibling:

<xsl:if test="count(preceding-sibling::*)=0">
This is the header !
</xsl:if>

For a footer add a test to check if there is a following sibling:

<xsl:if test="count(following-sibling::*)=0">
     This is the footer !
   </xsl:if>

That’s pretty easy to do and I hope it can help.



Post a comment
Name: 
Email: 
URL: 
Comments: