Re: variable question
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?
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format