xfce3rc -> xfce4rc conversion ?

Ric fhj52ads at yahoo.com
Sun Aug 3 10:30:26 CEST 2003

Hi Matthew!

I finally found a program that, I think, is going to do the 
initial transform to XML dirty work. You'll be glad to hear that it's 
a PERL program!

If you want to look at it and see what it does:

Unless you have a lot of PERL installed, you will need to get a few
things from CPAN to use the program with the GUI. The GUI interface is
Tk but the GUI is not required to use the txt2XML program; well, it is
not required once the " rules " are written correctly... :)
The list to get is dependent on what you have already installed of
course but I had to get these:

from  ftp://ftp.cpan.org/pub/CPAN/modules/by-module/

and perl Makefile.PL; make; make test  and finally checkinstall each. 
I just got the latest version of each one... it works, AFAIK.

However, it does _not_ reorder and massage the generated XML so that
has to be done to get it into xfce4rc format, somehow -PERL, awk, sed,

I am a bit unsure as to what you meant by 
> into data structures, then writing the XML based on the data
> structures.

If the XML needs to be in a special format, other than valid XML, I
should probably write the rules to create that format or, at least, not
screw it up so that a small PERL program could not use it. :)

There are perl XSLT modules but idunno what/how to use them... do you?

E.g., XML-XSLT  and  XML-LibXSLT modules for perl.  The XML-LibXSLT
module is for using the C library which allows one to transform XML
files into other XML files using the standard XSLT stylesheet
transformation mechanism.  

--- Matthew Weier OPhinney <matthew-lists at weierophinney.net> wrote:
> -- Ric <fhj52ads at yahoo.com> wrote
> (on Thursday, 31 July 2003, 09:56 AM -0700):
> > Hi Matthew:
> > 
> > Thanks for the reply and offer.
> > The real meat is that something similar to a DTDSS is 
> > needed to convert the, probably, regex 
> > found items to the format that is the xfce4rc.
> > That should be available somewhere; after all, something is 
> > parsing and creating/modifying the xfce4rc XML file.
> May not need a DTD, actually -- as long as we have the xfce4rc xml
> documented, we can use logical constructs and/or data structures in
> perl
> to have the elements placed correctly. To my thinking, I'd have the
> perl
> script slurp up the entire file and parse it, placing items it finds
> into data structures, then writing the XML based on the data
> structures.

Have A Great Day!

Mondale knew this was gonna be a bad day when he called 
Dial-a-Prayer and the taped message answered him by name.
 -- Bob Hope, 1903-2003

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

More information about the Xfce4-dev mailing list