I searched through forum and through the NET but I could not find any answer.
I created an XSL stylesheet, and it displays my view quite well. Except that it does not display column titles. How can I add column titles to this styleshhet? Could anyone help me?
Thanks in advance
My XSL stylesheet is as follows:
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl=“XSLT Namespace”
version="1.0"
xmlns:xalan="http://xml.apache.org/xslt">
<xsl:template match="viewentry[@children]">
<div>
<xsl:attribute name="ID">
<xsl:value-of select="@position" />
</xsl:attribute>
<span style="font-size:11px;font-family:Arial;font-weight:bold;color:red;cursor:hand" onclick="toggleSection(this)">+ </span>
<span style="font-size:11px;font-family:Arial;cursor:hand;color:black" onclick="toggleSection(this.previousSibling)">
<xsl:attribute name="NextEntrySrc">/myNsf.nsf/myView?ReadViewEntries&Start=<xsl:value-of select="@position" />.1&Count=<xsl:value-of select="@children" />&Collapse=<xsl:value-of select="@position" />.1</xsl:attribute>
<xsl:value-of select="entrydata" />
</span>
<div style="margin-left:15px;display:none"></div>
</div>
</xsl:template>
<xsl:template match="viewentry">
<table border="0" width="95%">
<tr bgcolor="#dde0ec">
<xsl:if test="position() mod 2 != 0">
<xsl:attribute name="bgcolor">#f5f5f5</xsl:attribute>
</xsl:if>
<td width="1%" valign="bottom"><a target="frmDocPreview" style="text-decoration:none">
<xsl:attribute name="href">/myNsf.nsf/myView/<xsl:value-of select="@unid"/>?opendocument</xsl:attribute>
<img border="0" src="/icons/doclink.gif" /></a></td>
<xsl:apply-templates select="entrydata" />
</tr>
</table>
</xsl:template>
<xsl:template match="entrydata[@columnnumber=3]">
<td width="1%">
<!--<xsl:value-of select="number" />-->
<xsl:choose>
<xsl:when test="number=5">
<img border="0" src="/icons/vwicn005.gif" />
</xsl:when>
</xsl:choose>
</td>
</xsl:template>
<xsl:template match="entrydata[@columnnumber=4]">
<td width="2%">
<xsl:value-of select="text" />
</td>
</xsl:template>
<xsl:template match="entrydata[@columnnumber=5]">
<td width="10%">
<xsl:value-of select="text" />
</td>
</xsl:template>
<xsl:template match="entrydata[@columnnumber=6]">
<td width="10%">
<xsl:value-of select="text" />
</td>
</xsl:template>
<xsl:template match="entrydata[@columnnumber=7]">
<td width="10%">
<xsl:value-of select="text" />
</td>
</xsl:template>
<xsl:template match="entrydata[@columnnumber=8]">
<td width="10%">
<xsl:value-of select="text" />
</td>
</xsl:template>
</xsl:stylesheet>