changing report .xsl

Shelagh Manton oneida at tpg.com.au
Wed Oct 25 18:56:04 MDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 25 Oct 2006 06:31:01 -0700
Robby Stephenson <robby at periapsis.org> wrote:

> On Wednesday 25 October 2006 3:07, Shelagh Manton wrote:
> > I want to print out a report which has the title and author with a
> > third column with the ISBN. I tried to understand what is happening
> > in the xsl files and trying to work out what goes where but I'm
> > completely lost. I thought I ought to base it on Column_View.xsl
> > but it needs a third column. And I can't work out how the script
> > knows which field to use in the report.
> 
> The Column View report will show the columns in the current main
> window view, and those columns get passed to the XSL transform
> through an xsl:param element, which is line 39, or close to it. Those
> columns are just a list of field names, separated by a space. Then
> the stylesheet creates a local variable with the fields by splitting
> them up.
> 
> So you need to over-ride the xsl:param. Best way to do it would be to
> delete line 39, and replace $column-names in the next line by 'title
> author isbn'
> 
> In short,
> <xsl:param name="column-names" select="'title'"/>
> <xsl:variable name="columns" select="str:tokenize($column-names)"/>
> 
> becomes
> <xsl:variable name="columns" select="str:tokenize( 'title author
> isbn')"/>
> 
Thanks that did the trick! 

And if you could design a report wizard such as was mentioned, that also
would be lovely. 

Says Shelagh,
( who will be spending some time sorting out her many
incorrectly catalogued books! )
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFQAek4gX4mKgneaIRArB4AJ0Xyzj7rXUwWp7qwJ+P8DtfCXQxbwCcC56C
HyfJ2laWcV2ZfoTQWBuS0oo=
=FJhk
-----END PGP SIGNATURE-----


More information about the tellico-users mailing list