Subject: Re: generating XML from ini-file
From: Rick Geimer <rick.geimer@xxxxxxx>
Date: Mon, 26 Apr 1999 09:02:59 -0700
|
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
|