NGMP: getMessage now does XSLT server-side

Wes Morgan <[email protected]>
Newsgroups gmane.mail.im2000
Organization Libretech.org
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The version of the getMessage CGI script now in CVS can do XSLT on the server 
now. It takes an optional second parameter called 'format' that you can set 
to either 'html', 'xml', or 'mime'. HTML and XML are pretty self-explanatory. 
For backwards compatibility, it treats the omission of the format param as if 
you had said &format=xml (and does no XSLT processing of the message). The 
&format=mime option runs the message through a stylesheet that converts it 
into a format suitable for injecting into legacy email systems. It generates 
very limited headers at this point, which is partly due to the limited amount 
of information I'm sending in the message packets, and partly due to the fact 
that I don't know what all headers I *should* be generating (contributions 
welcome here). Anyway, I'm planning to do a 1.1 release of the prototype at 
the end of the week, so this feature will be there. In the meantime, feel 
free to checkout the CVS version and play around with it. You'll notice the 
message.mime.xsl stylesheet has been added to the repository. The script 
currently looks for these stylesheets in the cgi-bin directory that it's 
running from, so if you are running 1.0a of the prototype, don't forget to 
copy message.html.xsl to your cgi-bin directory. Then, by sticking 
&format=html on the end of the message retrieval URL, you can view the 
message in browsers that do not yet support client-side XSLT.

Wes Morgan
- -- 
This American dream may be poisonous
Violence is contagious
Crowded or empty
I walk these city streets alone
Whoever brought me here
Is gonna have to take me home

"What I'll Remember Most" - Over the Rhine
- ----------------------------------
Libretech.org - Technology Is Free (http://www.libretech.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/cje5I89ooLagmnQRAixDAJ9+lQY5QT9rCEIhqzFgiGHSiQiZmgCdHAka
+z49D3+Ejph/Uw9IllW6hiU=
=ggEL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.