Re: [xsl] sort a node across a dynamic group of files

Subject: Re: [xsl] sort a node across a dynamic group of files
From: "J. Argyl Plath" <jargylplath@xxxxxxxxx>
Date: Sun, 22 Nov 2009 14:57:32 -0500
On 22 Nov 09, at 14:51, Martin Honnen wrote:

> Can't you generate a toc file listing the names of all entry files you want
to process e.g.
>
> <toc>
>  <file>0001.xml</file>
>  <file>0002.xml</file>
>  <file>0003.xml</file>
> </toc>
>
> Then you could simply process e.g.
>
> <xsl:template match="toc">
>  <xsl:for-each select="document(file)/entry">
>    <xsl:sort .../>
>  </xsl:for-each>
> </xsl:template>

I had considered this method. I could create a server script that generates
that TOC file periodically, but I was hoping to avoid the lag between each
cron execution and the entry files being created. Worse case though, this
would be an adequate fix. Thank you!

-J

--
J. Argyl Plath
:-{)
I'm wearing a moustache to help fight prostate cancer.
Learn more and help out at:
http://us.movember.com/mospace/24373

Current Thread