[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: preceding axis and context switching (was re: con

Subject: Re: preceding axis and context switching (was re: configuring conditionals)
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 31 May 2005 14:59:14 -0400
axis context
Bruce,

We might have to ask Mike, Dimitre or someone else practiced in the art of XSLT 2.0 functions to confirm this, but

At 06:18 PM 5/28/2005, you wrote:
Yes. Unfortunately, the "ibid" handling is now being applied to both
the first and the following duplicate citation (it should only be for
the latter).  I can't figure out why that should be the case.

Here's my function:

  <xsl:function name="bib:ibid" as="xs:boolean">
    <xsl:param name="citation" as="node()"/>
    <xsl:value-of select="count($citation/db:biblioref)=1 and
$citation/db:biblioref/@linkend =
$citation/preceding::db:citation/db:biblioref/@linkend"/>
  </xsl:function>

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.


Maybe you want to try an xsl:copy-of there instead? Or the new favorite, xsl:sequence.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx 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 ======================================================================

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.