Not sure what you want but I made up a stylesheet for use on the following xml. If your output for true and false sections is the same you might not need two templates to match, just two to slect. That's why I coloured the output.
Code:
<Documents>
<Section Title="A" Sidebar="false">
<Document><data>Joe</data></Document>
<Document><data>Gins</data></Document>
<Document><data>Sephi</data></Document>
</Section>
<Section Title="B" Sidebar="false">
<Document><data>Xavier</data></Document>
<Document><data>Peter</data></Document>
<Document><data>Stephen</data></Document>
</Section>
<Section Title="C" Sidebar="true">
<Document><data>William</data></Document>
<Document><data>Sheila</data></Document>
<Document><data>Smokie</data></Document>
</Section>
</Documents>
The xslt is
Code:
<woodenShoe:stylesheet version="1.0" xmlns:woodenShoe="http://www.w3.org/1999/XSL/Transform">
<woodenShoe:output method="html"/>
<woodenShoe:template match="/">
<html>
<head><title>True versus False</title></head>
<body>
<woodenShoe:apply-templates select="Documents"/>
</body>
</html>
</woodenShoe:template>
<woodenShoe:template match="Documents">
<table border="1">
<tbody>
<tr>
<td>
<woodenShoe:apply-templates select="Section[@Sidebar = 'false']"/>
</td>
<td>
<woodenShoe:apply-templates select="Section[@Sidebar = 'true']"/>
</td>
</tr>
</tbody>
</table>
</woodenShoe:template>
<woodenShoe:template match="Section[@Sidebar = 'false']">
<div style="color:#dd0000"><woodenShoe:value-of select="@Title"/>:</div>
<woodenShoe:apply-templates select="Document"/>
</woodenShoe:template>
<woodenShoe:template match="Section[@Sidebar = 'true']">
<div style="color:#00dd00"><woodenShoe:value-of select="@Title"/>:</div>
<woodenShoe:apply-templates select="Document"/>
</woodenShoe:template>
<woodenShoe:template match="Document">
#160;#160;<woodenShoe:value-of select="data/text()"/><br/>
</woodenShoe:template>
</woodenShoe:stylesheet>
Personally I would have thought you wanted one column for true, one for false and each item in a fresh row but that's not difficult to manage either.
My apologies to shbyland for the woodenShoe bit...
Joe (MVP - xml)