You are here: XSL custom xmlns/urn in PHP5 for callbacks « PHP « IT news, forums, messages
XSL custom xmlns/urn in PHP5 for callbacks

Posted by Torgny Bjers on 08/02/05 18:31

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация