XSL custom xmlns/urn in PHP5 for callbacks

From: Date: Tue, 02 Aug 2005 15:31:35 +0000
Subject: XSL custom xmlns/urn in PHP5 for callbacks
Groups: php.general 
Request: Send a blank email to php-general+get-219842@lists.php.net to get a copy of this message
Hello, I recently started working with PHP5 after having spent quite some time with C#.NET (at work), and I was wondering if there's a way to create a custom callback namespace for XSL in PHP5? The example below should illustrate what I need: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:myapp.library="urn:myapp.library" exclude-result-prefixes="myapp.library"> <xsl:output method="html"/> <xsl:param name="currentPage"/> <xsl:template match="/"><xsl:value-of select="myapp.library:ClassMethod('arg1', 'arg2')" disable-output-escaping="yes"/></xsl:template> </xsl:stylesheet> Hope someone can help here. If not possible, I can always use the standard PHP function/class::method callbacks, but it would be nice to have custom xmlns so that I could add several different libraries. Warm Regards, Torgny

« previous php.general (#219842) next »