blob: 505d5340c90e2a33610a846f3459a2b96989d5ce (
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
28
29
30
31
32
33
34
35
36
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" />
<xsl:include href="templates.xsl" />
<xsl:param name="icon">
<xsl:text>mail</xsl:text>
</xsl:param>
<xsl:param name="title">
<xsl:text>Contact</xsl:text>
</xsl:param>
<xsl:param name="content">
<form id="contact-form" method="POST" action="/contact">
<label>
Name
<input id="name_in" type="text" name="name" placeholder="Name" />
</label>
<label>
Email
<input id="email_in" type="email" name="email" placeholder="you@ema.il" />
</label>
<label>
Message
<textarea id="message_in" name="message" placeholder="What's up bud?"></textarea>
</label>
<button type="submit">Transmit</button>
</form>
</xsl:param>
<xsl:template match="/">
<xsl:call-template name="page">
<xsl:with-param name="icon" select="$icon" />
<xsl:with-param name="title" select="$title" />
<xsl:with-param name="content" select="$content" />
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>
|