[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] multiple input files to one output file
Hi all, Is it possible with XSLT to have lots of input files, and create one output file listing specific data from each of the files? What I'm trying to do is generate HTML Help from an XML format. I have Help texts stored in separate XML documents (each help text is one XML document), each Help text having a code, title, version, and one or more keywords in its header. Besides creating one HTML file for each XML help text document, I need to read all these headers and create one index file containing all the keywords and a link to the topic they're from. Similarly a table of contents file that contains all the titles and a link to the topic. The index file and table of contents file are needed to create HTML Help. What are my options to achieve this? To clarify: Sample XML: <?xml version="1.0"?> <om id="ciOM000001" lang="English" status="Released"> <header> <keyword>Invoicing</keyword> <keyword>Invoicing, procedure</keyword> <keyword>Billing request, procedure</keyword> <browse> <group>gen</group> <seqnr>1</seqnr> </browse> </header> <text> <title>Billing request procedure</title> <!-- more text here --> </text> </om> Desired output index file something like: <html> <head> </head><body> <ul> <li><object type="text/sitemap"> <param name="Name" value="invoicing"> <param name="Local" value="ciOM000001.htm"> </object> <ul> <li> <object type="text/sitemap"> <param name="Name" value="invoicing, procedure"> <param name="Local" value="ciOM000001.htm"> </object></li> <li> <object type="text/sitemap"> <param name="Name" value="billing request, procedure"> <param name="Local" value="ciOM000001.htm"> </object></li> </ul> <li> <object type="text/sitemap"> <param name="Name" value="billing"> <param name="Local" value="ciOM000002.htm"> </object></li> <!-- and so on, taking all keywords from all XML help text files --> </ul> </body></html> 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
|