Re: [xsl] document(lang_*.xml)?

Subject: Re: [xsl] document(lang_*.xml)?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 24 Jan 2003 13:07:08 GMT
> Any ideas how to do it......

If you have an xml file that has the filenames as nodes then it is easy,
eg

<x>
<f>lang_en.xml</f>
<f>lang_de.xml</f>
<f>lang_fr.xml</f>
</x>

then 
<xsl:for-each select="document(x/f)/Language/@id">

will get all the id attributes from all the files.

If you don't have such an xml file your system may have an extension to
access directory listings as xml or just do it from the command line



ls *.xml | sed -e "s@\(.*xml\)@<f>\1xml</f>@"

would for example put <f> </f> around the filename of every xml file in
the current directory given a suitable command line (unix or cygwin bash
on windows for example)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread