diff options
author | dakkar <dakkar@thenautilus.net> | 2009-11-05 13:52:51 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2009-11-05 13:52:51 +0100 |
commit | 7dfba0e7cf30ddbf834abee94520efcac26385d7 (patch) | |
tree | 3e7a80b2abce6b634a418b6c54b195b9afd0c2e6 /boom/test.xsl | |
parent | use Try::Tiny instead of eval (diff) | |
download | WebCoso-7dfba0e7cf30ddbf834abee94520efcac26385d7.tar.gz WebCoso-7dfba0e7cf30ddbf834abee94520efcac26385d7.tar.bz2 WebCoso-7dfba0e7cf30ddbf834abee94520efcac26385d7.zip |
still segfaults
and I can't reproduce the error in a minimal test caseā¦
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 |