Preserved Topic: Parsing HTML/Regexp Shortcomings (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 07-02-2002 00:31
So I am working on my new templating system, and one of the things I want to be able to do is automatically translate something like: |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-02-2002 08:34
hm, maybe you should give XSTL (or called something along that line... style sheets something) a try. It's specifiallly designed to translate one kind of XML to another kind of XML. Provided of course, your source is in XHTML. So you can say replace <div> tags which have class XXX with <td>XXX</td>. but look it up, I never worked with it :-) |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-02-2002 20:49
AS TP said, you should investigate the possibilities of XSLT... |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 07-03-2002 21:29
Good idea guys. I checked it out and looks very promising. The only problem is that a) it is not compiled into our PHP build currently, requiring our tech's assistance and b) I want this code to be portable since I plan on releasing the source at some time in the future. Nevertheless, XSLT seems like a very important technology to be familiar with. code: //Make transformations based on browser specs.
|