[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] configuring a conditional


Subject: Re: [xsl] configuring a conditional
From: Bruce D'Arcus <bdarcus@xxxxxxxxx>
Date: Tue, 24 May 2005 12:41:49 -0400

On May 24, 2005, at 12:22 PM, Bruce D'Arcus wrote:

incidentally it looks like that code requres  $cite-ref to be a single
element node, but you have declared it as

<xsl:param name="cite-ref" as="element()*"/>

ie you allow it to be the empty sequence or more than one element.

Yes, I think I had a comment there that indicated I originally defined it as just element(), but in one case (when I was formatting an entire book manuscript), I got an error about an empty sequence. Am not sure how that's possible in this case ...

Maybe it's when I have a biblioiref/@linkend value that does not point to a mods:mods/@ID? In other words, the @linkend value is wrong, so the processor never gets the mods record it's looking for.


I think I need to come up with a mechanism to flag this for users.

Bruce


Current Thread