|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: combining XML documents
Hi, > read which xml files are stored in 3 different directories and publish this > results on web page (only the "title" tag to be shown), where one can then > select 1 or 2 XML file/s to show different information. Depends slightly on your XQuery processors (the spec doesn't define how files are layed out etc.), but in XQuery it should be something like this: <html> <head><title>Foo</title></head> <body>{ for $doc in ( collection('/path/A'), collection('/path/B'), collection('/path/C') ) return <a href='{ base-uri($doc) }'>{ $doc//title }</a> }</body> If the HTML gets more complicated, I would advise to select the data with XQuery and then transform it to (X)HTML using XSLT. Martin
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. 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
|
|||||||||







