Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9254 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92007 invoked by uid 1010); 16 Apr 2004 13:58:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91981 invoked from network); 16 Apr 2004 13:58:08 -0000 Received: from unknown (HELO miranda.org) (209.58.150.153) by pb1.pair.com with SMTP; 16 Apr 2004 13:58:08 -0000 Received: (qmail 14536 invoked by uid 546); 16 Apr 2004 13:58:08 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 16 Apr 2004 13:58:08 -0000 Date: Fri, 16 Apr 2004 09:58:08 -0400 (EDT) X-X-Sender: adam@miranda.org To: Kenneth Schwartz cc: internals@lists.php.net In-Reply-To: <20040416061515.379A.IRCHTML@php.net> Message-ID: References: <20040416061515.379A.IRCHTML@php.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] XSL Extension From: adam@trachtenberg.com (Adam Maccabee Trachtenberg) On Fri, 16 Apr 2004, Kenneth Schwartz wrote: > Examples: > > Outputs the RFC formatted date (current date/time) > > > Outputs the RFC formatted date of the element as the unix > timestamp > > I just wanted to be sure of what I've gathered from testing and the > source that the usage of both functions is correct. Any other > information would be appreciated. Yes. This is correct. php:functionString() allows you to pass arbitrary elements to a function. This can be a text node, (as in your example above), or even an entire set of element nodes. For example: myDate is some userland function that iterates through an array of //date nodes using DOM, does something on them, and returns a value. If I was more awake, I'd give you a better example, but you get the picture. -adam -- adam@trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today!