blob: 40f9eaf1e95a743028ec2965241c7ec1319c0714 (
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
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:dyn="http://exslt.org/dynamic"
exclude-result-prefixes="dyn"
>
<xsl:output indent="yes"/>
<xsl:template match="/dynmap">
<result>
<node-set>
<xsl:copy-of select="dyn:map(*, 'child::*[string-length(.) > 3]')"/>
</node-set>
<boolean>
<xsl:copy-of select="dyn:map(*, 'string-length(name()) > 3')"/>
</boolean>
<number>
<xsl:copy-of select="dyn:map(*, 'count(*)')"/>
</number>
<string>
<xsl:copy-of select="dyn:map(*, 'name()')"/>
</string>
<namespace>
<xsl:copy-of select="dyn:map(namespace::*, 'name(/*)')"/>
</namespace>
</result>
</xsl:template>
</xsl:stylesheet>
|