[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: generating XML from ini-file
Oliver, Since your initial document is not XML, I don't think you could use XSL for this transformation. The typical way to do this kind of up-translation is to use a pattern matching language to process the ini-file, write out your XML as best you can to match the structure required by the DTD, then parse the result to make sure the output is error-free. I typically use OmniMark, since it has a powerful pattern matching language and a built-in XML parser, but you could do this with Perl as well, especially with the XML module. Hope this helps. Rick Geimer National Semiconductor rick.geimer@xxxxxxx "Bruening, Oliver" wrote: > i have to generate a xml-document with a given dtd from data which has > an ini-file structure (best case; the data comes from an ibm host ...). > > how can this to done in an elegant way ? my first idea was to traverse > through the dtd and to add the fitting elements to the xml-file. is this > the right way ? any examples or hints around ? > > regards > oliver bruening > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|