|
Subject: Re: [xsl] variable question From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Thu, 11 Nov 2004 15:36:49 -0500 |
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
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Testing</title>
</head>
<body>
<h3>Citations</h3>
<xsl:for-each select="//$bibkey">
<ol>
<li><xsl:value-of select="." /></li>
</ol>
</xsl:for-each>
<h3>Titles</h3>
<xsl:for-each select="$bibrecord/key('biblio', $bibkey)">
<xsl:value-of select="mods:title" />
</xsl:for-each>
</body>
</html>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] variable question, Bruce D'Arcus | Thread | RE: [xsl] variable question, Michael Kay |
| Re: [xsl] characters in xsl, Wendell Piez | Date | Re: [xsl] variable question, Jeni Tennison |
| Month |