I have done a fair amount of experminting with this but cannot get it to work and I'm now looking for pointers or working examples.
I want to customise the output of the Content Query Web Part to remove the:
<li class="dfwp-item"> </li>
tags that wrap each item of the CQWP.
I know that these are stored in the ContentQueryMain.xsl and I can see the variable (correct me if I'm wrong) that defines these opening and closing tags at the top of ContentQueryMain.xsl
<xsl:variable name="BeginListItem" select="string('<li class="dfwp-item">')" />
<xsl:variable name="EndListItem" select="string('</li>')" />
The problem is when I point an exported CQWP at a duplicate of the ContentQueryMain.xsl I get the generic this WebPart cannot display/render error and I'm stumped as to where to look. I figure it could be syntax or it could be that when overriding such a fundamental part it needs a little more care and attention.
Any ideas?
Thanks