xsl-list
[Top] [All Lists]

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

2009-11-22 14:58:00
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--