-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmaster.json.xsl
More file actions
45 lines (31 loc) · 838 Bytes
/
master.json.xsl
File metadata and controls
45 lines (31 loc) · 838 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Master HTML5 Stylesheet
Imported by the switchboard to output JSON
@package Utility Monkey
@author John Porter <john@designermonkey.co.uk>
@license CC0 <http://creativecommons.org/publicdomain/zero/1.0/>
-->
<!--
Import the JSON templates files
-->
<xsl:import href="../utilities/jsonml.xsl" />
<xsl:import href="../utilities/xml-to-jsonml.xsl" />
<!--
Define the output
-->
<xsl:output method="text"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="no"/>
<xsl:strip-space elements="*" />
<!--
Root template
-->
<xsl:template match="/" mode="json">
<xsl:text>{</xsl:text>
<xsl:apply-templates select="data" mode="json"/>
<xsl:text>}</xsl:text>
</xsl:template>
</xsl:stylesheet>