Creating a Custom Report

Francis Greaves themetman at themetman.net
Thu Feb 3 07:43:06 GMT 2022


---- On Wed, 02 Feb 2022 18:21:06 +0000 Robby Stephenson <robby at periapsis.org> wrote ----



On Wed, Feb 2, 2022 at 9:05 AM Francis Greaves <mailto:themetman at themetman.net> wrote:



Having browsed through some of the archives, I found this one: https://mail.kde.org/pipermail/tellico-users/2021-October/001660.html



I have looked at the Column_View.xsl, created one of my own from this, changed line 39 to this:



<xsl:param name="column-names" select="'title player-number'"/>




Not changed anything else, and expected to see two columns, one with the Album Title, the other with the Player Number in it. However I get  the same as the original Column View Report, just the Album title.










Make sure you're editing line 39 that starts with <xsl:variable and not line 38 that starts with <xsl:param. Tellico overrides the param but not the variable.



And from within the interface, the Column View should pick up your visible columns, so if you hide all the columns except title and Player Number, then generate the report, perhaps that will give you what you need.



Robby








Thanks Robby, yes I had made that error and edited the wrong line, so I have tried both this:

<xsl:variable name="columns" select="'title' 'player-number'"/>


and this:
<xsl:variable name="columns" select="'title player-number'"/>




and this:

<xsl:variable name="columns" select="title player-number"/>




and get this error with a slight difference of course to the actual text of the " title player-number " depending on where the single quotes are:

XPath error : Invalid expression

'title' 'player-number'

        ^

compilation error: file %2Fusr%2Fshare%2Ftellico%2Freport-templates%2FColumn_View_FG.xsl line 27 element variable

XSLT-variable: Failed to compile the XPath expression ''title' 'player-number''.

null stylesheet pointer for  "%2Fusr%2Fshare%2Ftellico%2Freport-templates%2FColumn_View_FG.xsl"

XPath error : Invalid expression

'title' 'player-number'

        ^

compilation error: file %2Fusr%2Fshare%2Ftellico%2Freport-templates%2FColumn_View_FG.xsl line 27 element variable

XSLT-variable: Failed to compile the XPath expression ''title' 'player-number''.

null stylesheet pointer for  "%2Fusr%2Fshare%2Ftellico%2Freport-templates%2FColumn_View_FG.xsl"

error loading xslt file: "/usr/share/tellico/report-templates/Column_View_FG.xsl"





Any clues?



Regards

Francis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/tellico-users/attachments/20220203/5e486ff1/attachment.htm>


More information about the tellico-users mailing list