[ Create a new account ]
Quite scary
People moan at Perl's syntax, and then they embrace XSL. Go figure!
Ha!
package XML::LibXSLT::Sendmailuse strict;use XML::LibXSLT;use Mail::Sendmail; XML::LibXSLT->register_function( "http://example.org/mail/", "sendMail", \&xsltmail ); sub xsltmail { my ($to, $from, $body) = @_; return sendmail( To => $to, From => $from, Message => $body ); # boolean}
...then later...
<xsl:variable name='mailOk' select='mail:sendMail( /doc/meta/author/@email, $from, ../text )'/><xsl:choose> <xsl:when test='$mailOk'>
-- Robin Berjon [berjon.com]
Get More Comments
Reply
it won't be truly scary... (Score:2)
People moan at Perl's syntax, and then they embrace XSL. Go figure!
Re:it won't be truly scary... (Score:2)
Ha!
-- Robin Berjon [berjon.com]