-
Notifications
You must be signed in to change notification settings - Fork 0
/
walk.xsl
27 lines (23 loc) · 860 Bytes
/
walk.xsl
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
version="1.0"
xmlns:xfdf="http://ns.adobe.com/xfdf/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:x="urn:tnalpgge:enfleshen"
exclude-result-prefixes="xfdf">
<!-- Walk the document and produce the output -->
<xsl:template match="node()|comment()">
<!-- silently omit anything that we do not specifically match -->
</xsl:template>
<xsl:template match="/character">
<xsl:element name="xfdf" namespace="http://ns.adobe.com/xfdf/">
<xsl:attribute name="xml:space">
<xsl:text>preserve</xsl:text>
</xsl:attribute>
<xsl:element name="fields" namespace="http://ns.adobe.com/xfdf/">
<xsl:apply-templates/>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>