Re: [xsl] Applying external XML

Subject: Re: [xsl] Applying external XML
From: Rob Belics <rob_belics@xxxxxxxxxxx>
Date: Tue, 02 Feb 2010 15:31:18 -0600
On Tue, 2010-02-02 at 20:40 +0200, Israel Viente wrote:
> Try to use absolute paths in menu.xml or do something like:
> <xsl:for-each select="item-uri">
>   <xsl:variable name="fileName" select="normalize-space(.)"/>
>   <xsl:variable name="infile"
> select="concat('file:///',$infilepathname, '/', $fileName)" />
>   <xsl:apply-templates select="doc($infile)"/>
> </xsl:for-each>
> Israel

Aha! I modified what you gave and it works. I tried something similar
before but it didn't. Dont' know why. Must be the stress. Thanks!

<xsl:for-each select="item-uri">
  <xsl:variable name="fileName" select="."/>
  <xsl:variable name="infile"
select="concat('http://','','/','xml2', '/', $fileName)" />
<p><xsl:value-of select="$infile"/></p>
  <xsl:apply-templates select="document($infile)"/>

Current Thread