[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: document(lang_*.xml)?
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|