xsl-list
[Top] [All Lists]

Re: variable question

2004-11-10 15:56:38

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



<Prev in Thread] Current Thread [Next in Thread>