Editing Image List report

Robby Stephenson robby at periapsis.org
Sat Sep 9 09:48:26 MDT 2006


On Saturday 09 September 2006 4:12, marcus wrote:
> On Saturday 09 September 2006 02:48, Robby Stephenson wrote:
> >Try this:
> >
> > <xsl:call-template name="field-output">
> >  <xsl:with-param name="entry" select="$entry"/>
> >  <xsl:with-param name="field" select="../tc:fields/tc:field[@name
> > = 'comments'"/>
> > </xsl:call-template>
>
> That unfortunately does not create any output at all. I tried saving as
> HTML, just in case the preview was concealing things, but no file was
> created because it really was zero bytes.

Whoops, I left out a closing bracket after the 'comments string'

<xsl:call-template name="field-output">
 <xsl:with-param name="entry" select="$entry"/>
 <xsl:with-param name="field" 
select="../tc:fields/tc:field[@name='comments']"/>
</xsl:call-template>

> Btw, why does one problem like this cause the entire output to be zero?
> Is this an XSL thing?

If you run from the command-line, you'll probably see a bout of xsl related 
debug output. If the XSL transform fails, yes, you get zero bytes. That's 
the way libxslt works. If the XML is actually mal-formed, you'll get a QDom 
error in a dialog box.

Robby



More information about the tellico-users mailing list