RDF->HTML function

Chris Howells chris at chrishowells.co.uk
Thu Feb 27 22:30:58 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Currently I'm trying to write a RDF->HTML function, for sites like koffice.org 
which have an infrequently updated news section (no need to write to RDF file 
etc).

I've done this by copying one of the existing RDF->HTML functions from the 
functions file, but I'm not too sure about the following line:

$printDate = ereg_replace("^[[:blank:]]*([0-9]+) ([a-zA-Z]{3}).*$", "\\2. 
\\1", $date[1]);

which cleans up the date. Why is the date messy in the first place? Is it 
required by the RDF standard or just the way that the RDF file was written?

Thanks,

- -- 
Cheers, Chris Howells -- chris at chrishowells.co.uk, howells at kde.org
Web: http://chrishowells.co.uk, PGP ID: 33795A2C
KDE: http://www.koffice.org, http://printing.kde.org, http://usability.kde.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+XpGiF8Iu1zN5WiwRAmRcAJ0bmsb06e7ZCveiwgPmONofdF4BOgCfSdAm
rFZkanuwPru4G6O9UH19KBs=
=R000
-----END PGP SIGNATURE-----




More information about the kde-www mailing list