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://','mysite.com','/','xml2', '/', $fileName)" /> <p><xsl:value-of select="$infile"/></p> <xsl:apply-templates select="document($infile)"/> </xsl:for-each>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Applying external XML, Rob Belics | Thread | [xsl] reading a .xsv file in xslt, a kusa |
Re: [xsl] reading a .xsv file in xs, Justin Johansson | Date | Re: [xsl] reading a .xsv file in xs, ac |
Month |