diff options
Diffstat (limited to 'boom/test.xsl')
-rw-r--r-- | boom/test.xsl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/boom/test.xsl b/boom/test.xsl new file mode 100644 index 0000000..ea32419 --- /dev/null +++ b/boom/test.xsl @@ -0,0 +1,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>
\ No newline at end of file |