Variables

Arthur Rother arthur.rother at ovidius.com
Fri Jun 18 21:58:32 BST 1999


Hi,

I once wrote a program for a company. The program's job was to fill a
container (an xml file with your kind of variables) with data. The user of
that program was given a table view of all variables and the user had to
optionaly specify a file containig the variables value, or just insert
data. Some other data was inserted automatically from a defaults file (also
xml file).

You need to have some kind of API, with which you can transform the
document and replace each occurrence of a variable element with your value.
I used MetaMorphosis (http://www.ovidius.com, free for linux, a demo for
windows, pay otherwise). I used MetaMorphosis, because I happen to work at
Ovidius. But I think, you can use any transformation language (maybe DOM),
that can do queries in multiple documents (I don't know, if XLT can do
that) to resolve the variables (This only, if you have the variables values
in some other xml file). I think, to formulate something like this,
MetaMorphosis is the quickest and easiest to do so, allthough you have to
learn a new language. 
So use MetaMorphosis or program this kind of traversal by hand use DOM.

Best regards, Arthur Rother
Ovidius GmbH 

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list