[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: document(lang_*.xml)?

Subject: Re: document(lang_*.xml)?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 24 Jan 2003 13:07:08 GMT
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.