Error in customizing BookBrowse.xsl template
Posted: Mon Aug 08, 2016 11:12 am
Hi everybody,
While trying to customize BookBrowse.xsl template I get a strange error message which I cannot understand what it is related to.
If I try to translate "General" on the first line then I get the flwg error message:
ERROR: Table name is not specified in template.
when I display the contents of the book record in the browse pane.
I cannot understand which table is mentioned there and why it is not possible for me to change the text of "General" which is merely a text string.
Anybody can help?
Many thanks in advance.
While trying to customize BookBrowse.xsl template I get a strange error message which I cannot understand what it is related to.
Code: Select all
[b] <td class="record_pane_table_group" colspan="2">General</td>[/b]
</tr>
<tr>
<td class="record_pane_table_group_padding" colspan="2"></td>
</tr>
<xsl:if test="publisher!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/publisher/@name"/></td>
<td class="record_pane_table_fieldvalue">
<a href="BookList.xsl?Publisher={publisher}@xslparam:doctitle=Publisher: {publisher}" target="_blank">
<xsl:value-of select="publisher"/>
</a>
</td>
</tr>
</xsl:if>
<xsl:if test="publicationplace!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap="">Pub. Place</td>
<td class="record_pane_table_fieldvalue">
<a href="BookList.xsl?PublicationPlace={publicationplace}@xslparam:doctitle=Publication Place: {publicationplace}" target="_blank">
<xsl:value-of select="publicationplace"/>
</a>
</td>
</tr>
</xsl:if>
<xsl:if test="isbn!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/isbn/@name"/></td>
<td class="record_pane_table_fieldvalue"><xsl:value-of select="isbn"/></td>
</tr>
</xsl:if>
<xsl:if test="lccn!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/lccn/@name"/></td>
<td class="record_pane_table_fieldvalue"><xsl:value-of select="lccn"/></td>
</tr>
</xsl:if>
<xsl:if test="lccallnum!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/lccallnum/@name"/></td>
<td class="record_pane_table_fieldvalue"><xsl:value-of select="lccallnum"/></td>
</tr>
</xsl:if>
<xsl:if test="dewey!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/dewey/@name"/></td>
<td class="record_pane_table_fieldvalue"><xsl:value-of select="dewey"/></td>
</tr>
</xsl:if>
<xsl:if test="binding!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/binding/@name"/></td>
<td class="record_pane_table_fieldvalue">
<a href="BookList.xsl?Binding={binding}@xslparam:doctitle=Binding: {binding}" target="_blank">
<xsl:value-of select="binding"/>
</a>
</td>
</tr>
</xsl:if>
<xsl:if test="edition!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/edition/@name"/></td>
<td class="record_pane_table_fieldvalue">
<a href="BookList.xsl?Edition={edition}@xslparam:doctitle=Edition: {edition}" target="_blank">
<xsl:value-of select="edition"/>
</a>
</td>
</tr>
</xsl:if>
<xsl:if test="type!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/type/@name"/></td>
<td class="record_pane_table_fieldvalue">
<a href="BookList.xsl?Type={type}@xslparam:doctitle=Type: {type}" target="_blank">
<xsl:value-of select="type"/>
</a>
</td>
</tr>
</xsl:if>
<xsl:if test="country!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/country/@name"/></td>
<td class="record_pane_table_fieldvalue">
<a href="BookList.xsl?Country={country}@xslparam:doctitle=Country: {country}" target="_blank">
<xsl:value-of select="country"/>
</a>
</td>
</tr>
</xsl:if>
<xsl:if test="language!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/language/@name"/></td>
<td class="record_pane_table_fieldvalue">
<a href="BookList.xsl?Language={language}@xslparam:doctitle=Language: {language}" target="_blank">
<xsl:value-of select="language"/>
</a>
</td>
</tr>
</xsl:if>
<xsl:if test="series!=''">
<tr>
<td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/book/series/@name"/></td>
<td class="record_pane_table_fieldvalue">
<a href="BookList.xsl?Series={series}@xslparam:doctitle=Series: {series}" target="_blank">
<xsl:value-of select="series"/>
</a>
<xsl:if test="releaseno/@unformatted!=0">
<xsl:text> (</xsl:text><xsl:value-of select="releaseno"/><xsl:text>)</xsl:text>
</xsl:if>
</td>
</tr>
</xsl:if>
<xsl:if test="dimensions_width/@integer>0 or dimensions_height/@integer>0 or dimensions_depth/@integer>0">
<tr>
<td class="record_pane_table_fieldname" nowrap="">
<xsl:text>Dimensions</xsl:text>
</td>
<td class="record_pane_table_fieldvalue">
<xsl:if test="dimensions_width/@integer>0">
<xsl:text>W:</xsl:text><xsl:value-of select="dimensions_width"/><xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="dimensions_height/@integer>0">
<xsl:text>H:</xsl:text><xsl:value-of select="dimensions_height"/><xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="dimensions_depth/@integer>0">
<xsl:text>D:</xsl:text><xsl:value-of select="dimensions_depth"/>
</xsl:if>
</td>
</tr>
</xsl:if>
<tr>
ERROR: Table name is not specified in template.
when I display the contents of the book record in the browse pane.
I cannot understand which table is mentioned there and why it is not possible for me to change the text of "General" which is merely a text string.
Anybody can help?
Many thanks in advance.