Re: [xsl] variable question

Subject: Re: [xsl] variable question
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Wed, 10 Nov 2004 17:56:38 -0500
On Nov 10, 2004, at 5:00 PM, Jeni Tennison wrote:

Note that the path "$bibrecord/key('biblio', $bibkey)" is newly
allowed in XPath 2.0, and makes searching documents using keys a whole
lot easier than it used to be.

Ah, that's what I'm looking for.


I'm getting this error though:

A sequence of more than one item is not allowed as the second argument of concat()
Here's how I've defined the top-level variables:


<xsl:variable name="bibkey" select="//db:biblioref/@linkend" />
<xsl:variable name="bibrecord" select="doc(concat('bib-data/', $bibkey, '.mods'))" />
<xsl:key name="biblio" match="//mods:mods" use="@ID" />


Why am I getting that error then?

Bruce

Current Thread