blob: ea32419647d28d2f2ff457a5492e9db73fbe9a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?xml version="1.0" encoding="utf-8"?> <x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:t="urn:test" exclude-result-prefixes="t" > <x:output method="xml" encoding="utf-8"/> <x:template match="/doc|/test"> <out> <from-func><x:value-of select="t:str()"/></from-func> <from-func><x:apply-templates select="t:doc()"/></from-func> <x:apply-templates/> </out> </x:template> <x:template match="*"> <x:copy> <x:apply-templates select="@*|*"/> </x:copy> </x:template> <x:template match="@*"> <x:copy/> </x:template> </x:stylesheet>
|