-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathentries2html.xsl
30 lines (27 loc) · 1.24 KB
/
entries2html.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
28
29
30
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="node_modules/grunt-jquery-content/tasks/jquery-xml/entries2html-base.xsl"/>
<xsl:variable name="method-prefix-dot" select="false()"/>
<xsl:template name="example-code">
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><xsl:value-of select="desc"/></title>
<link rel="stylesheet" href="https://jqueryvalidation.org/files/demo/site-demos.css">
<xsl:if test="css"><style><xsl:copy-of select="css/text()"/> </style></xsl:if>
</head>
<body>
<form id="myform"><xsl:copy-of select="html/text()"/></form>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script>
<script>
// just for the demos, avoids form submit
jQuery.validator.setDefaults({
debug: true,
success: "valid"
});<xsl:copy-of select="code/text()"/></script>
</body>
</html>
</xsl:template>
</xsl:stylesheet>