File: test.xsl

package info (click to toggle)
php-fxsl 1.1.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 236 kB
  • sloc: php: 350; xml: 177; sh: 12; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 517 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" exclude-result-prefixes="php foo"
 	xmlns:foo="test:uri"
	extension-element-prefixes="php func" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:php="http://php.net/xsl">

	<xsl:output method="xml" indent="yes" encoding="utf-8" />

	<xsl:template match="/">
		<root>
			<demo><xsl:value-of select="php:function('demo')" /></demo>
			<test><xsl:copy-of select="test:bar('hallo','welt')" /></test>
		</root>
	</xsl:template>

</xsl:stylesheet>