|
Navigation: CATraxx FAQ > Upgrading to the latest version > Version 7 > Version 7.30 uses a new XSLT transformation engine |
|
CATraxx version 7.30 uses a new XSLT transformation engine. Unfortunately, this means that some of the old xsl templates will not work properly.
If you have not customized the xsl templates
To reinstall all xsl templates, download and run catraxx_setup_xsl.exe.
Note: This will overwrite all existing xsl templates.
If you have customized the xsl templates
This means that you will have to manually update the xsl templates.
First, you need to update all calls to the add-pagelinks function. There are at least 17 files you need to update (all located in the \Explorer Templates folder):
AlbumList.xsl
AlbumList_Acquired.xsl
AlbumList_Cover.xsl
AlbumList_Thumbnail.xsl
AlbumLoanList.xsl
ArtistList.xsl
BorrowerList.xsl
GenreList.xsl
LabelList.xsl
LoanList.xsl
PersonList.xsl
TrackList.xsl
TrackList_BandMemberInstruments.xsl
TrackList_Covers.xsl
TrackList_GuestMusicianInstruments.xsl
TrackList_ProductionRoles.xsl
TrackList_SongwriterRoles.xsl
Change the following two lines (add "data/" - highlighted in red):
<xsl:with-param name="totalpages" select="recordset/totalpages"/>
<xsl:with-param name="pageno" select="recordset/pageno"/>
to
<xsl:with-param name="totalpages" select="data/recordset/totalpages"/>
<xsl:with-param name="pageno" select="data/recordset/pageno"/>
In addition, you need to modify these files:
Track.xsl
Change
custom30=!''
to
custom30!=''
and
Album_Image7.xsl
Change
<xsl:if test="{image6/filename} != ''">
to
xsl:if test="data/record/albumdata/image6/filename != ''">
and change
<xsl:if test="{image8/filename} != ''">
to
<xsl:if test="data/record/albumdata/image8/filename != ''">
In the \HTML Export folder, you need to modify 6 files:
AlbumList.xsl
Remove:
<xsl:variable name="prevartist">
<xsl:value-of select="preceding::artists/@sort"/>
</xsl:variable>
And change
<xsl:if test="not($prevartist=artists/@sort)">
to
<xsl:if test="preceding::albumdata[1]/artists/@sort!=artists/@sort or not(preceding::albumdata[1])">
AlbumListArtist.xsl
Remove:
<xsl:variable name="prevartist">
<xsl:value-of select="preceding::artists/@sort"/>
</xsl:variable>
And change
<xsl:if test="not($prevartist=artists/@sort)">
to
<xsl:if test="preceding::albumdata[1]/artists/@sort!=artists/@sort or not(preceding::albumdata[1])">
AlbumListCover.xsl
Remove:
<xsl:variable name="prevartist">
<xsl:value-of select="preceding::artists/@sort"/>
</xsl:variable>
And change
<xsl:if test="not($prevartist=artists/@sort)">
to
<xsl:if test="preceding::albumdata[1]/artists/@sort!=artists/@sort or not(preceding::albumdata[1])">
AlbumListDetails.xsl
Remove:
<xsl:variable name="prevartist">
<xsl:value-of select="preceding::artists/@sort"/>
</xsl:variable>
And change
<xsl:if test="not($prevartist=artists/@sort)">
to
<xsl:if test="preceding::albumdata[1]/artists/@sort!=artists/@sort or not(preceding::albumdata[1])">
IndexArtistTopArtistListOverview.xsl
Change
translate(substring(preceding::sortby, 1, 1), 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'))">
to
translate(substring(preceding::record[1]/sortby, 1, 1), 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'))">
TrackList.xsl
Remove:
<xsl:variable name="prevartist">
<xsl:value-of select="preceding::artists/@sort"/>
</xsl:variable>
And change
<xsl:if test="not($prevartist=artists/@sort)">
to
<xsl:if test="preceding::trackdata[1]/artists/@sort!=artists/@sort or not(preceding::trackdata[1])">