Bruce,
At 04:06 PM 5/31/2005, you wrote:
> The only thing I can suggest here is that perhaps the xsl:value-of here
> does not return a Boolean value, as you appear to expect it to, but a
> string, which perhaps always casts to Boolean true() (because both the
> strings "true" and "false" have non-zero length). That's the way it would
> work in 1.0, and under value-of in Mike's XSLT 2.0 book it reads that the
> instruction "constructs a text node", which would seem to be similar.
Actually, I wasn't understanding how the preceding axis was working,
nor exactly how your posted code. So I left out the position
conditional, which was the problem. This works:
<xsl:function name="bib:ibid" as="xs:boolean">
<xsl:param name="citation" as="node()"/>
<xsl:value-of select="$citation/db:biblioref/@linkend =
$citation/preceding::db:biblioref[1]/@linkend"/>
</xsl:function>
Oh, of course, yes I didn't notice that.
Interesting and noteworthy that the cast to Boolean is happening properly
even with xsl:value-of ... must look at the rules for this I guess.
Cheers,
Wendell
======================================================================
Wendell Piez
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--