Skip to content

Commit 1797bb8

Browse files
committed
- New xsl files
1 parent d261601 commit 1797bb8

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

ext/xsl/tests/phpfunc-nostring.xsl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="iso-8859-1"?>
2+
<!-- $Id: phpfunc-nostring.xsl,v 1.1 2009-05-23 14:49:29 felipe Exp $ -->
3+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4+
xmlns:php="http://php.net/xsl"
5+
>
6+
<xsl:output method="text" encoding="iso-8859-1" indent="no"/>
7+
<xsl:template match="/">
8+
<xsl:value-of select="php:function(123,'this is an example')"/>
9+
</xsl:template>
10+
</xsl:stylesheet>

ext/xsl/tests/phpfunc-undef.xsl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="iso-8859-1"?>
2+
<!-- $Id: phpfunc-undef.xsl,v 1.1 2009-05-23 14:49:29 felipe Exp $ -->
3+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4+
xmlns:php="http://php.net/xsl"
5+
>
6+
<xsl:output method="text" encoding="iso-8859-1" indent="no"/>
7+
<xsl:template match="/">
8+
<xsl:value-of select="php:function('undefinedfunc','this is an example')"/>
9+
</xsl:template>
10+
</xsl:stylesheet>

ext/xsl/tests/phpfunc.xsl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="iso-8859-1"?>
2+
<!-- $Id: phpfunc.xsl,v 1.1 2009-05-23 14:49:29 felipe Exp $ -->
3+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4+
xmlns:php="http://php.net/xsl"
5+
>
6+
<xsl:output method="text" encoding="iso-8859-1" indent="no"/>
7+
<!-- <xsl:param name="foo" select="'bar'"/>-->
8+
<xsl:template match="/">
9+
<xsl:value-of select="php:function('ucwords','this is an example')"/>
10+
</xsl:template>
11+
</xsl:stylesheet>

0 commit comments

Comments
 (0)