forked from jquery/api.jquerymobile.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentries2html.xsl
More file actions
39 lines (34 loc) · 1.31 KB
/
entries2html.xsl
File metadata and controls
39 lines (34 loc) · 1.31 KB
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
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="entries2html-base.xsl"/>
<xsl:output method="html" omit-xml-declaration="yes"/>
<xsl:template name="example-code">
<xsl:param name="name"/>
<xsl:param name="css"/>
<xsl:param name="html"/>
<xsl:param name="code"/>
<code data-linenum="true">
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><xsl:value-of select="$name"/> demo</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css"><xsl:if test="$css">
<style><xsl:value-of select="$css"/> </style></xsl:if>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>jQuery Mobile Example</h1>
</div>
<div data-role="content"><xsl:value-of select="$html"/>
</div>
</div><xsl:if test="$code">
<script><xsl:value-of select="$code"/></script></xsl:if>
</body>
</html>
</code>
</xsl:template>
</xsl:stylesheet>