|
Subject: Re: [xsl] loading multiple documents using variables From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Thu, 4 Apr 2002 10:24:12 -0500 |
[Ralph Holz]>
>
> What I'd like to do now is load multiple documents during the
> transformation process, something like:
>
> <xsl:for-each select="doc">
> <xsl:variable name="name"><xsl:value-of select="@id"
/></xsl:variable>
> <xsl:apply-templates select="document('C:\{$name}.xml')" />
> </xsl:for-each>
>
> I'd like to use Xalan Java 2 for this.
>
> The error I get now is that document() needs a valid URI as input, and "{"
> is an offending character:
Use
<xsl:apply-templates select="document(concat('C:',\$name,'.xml')" />
Use attribute value templates (the curly brace constructions) for
constructing results, not for specifying selection.
Cheers,
Tom P
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] strange xslt processors, Bryan Rasmussen | Thread | RE: [xsl] loading multiple document, Snow, Corey |
| [xsl] Oracle / Text, mjyoungblut | Date | RE: [xsl] loading multiple document, Michael Kay |
| Month |