-
Notifications
You must be signed in to change notification settings - Fork 1
/
OrderNowLetter.xsl
90 lines (88 loc) · 3.16 KB
/
OrderNowLetter.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="utf-8"?>
<!--
Modified on 20160707 by Wee Hiong
1. Add do-not-reply message to the footer.
Modified on 20151222 by Wee Hiong
1. Remove sender's address as contact information is now inside the header.
Modified on 20150828 by Wee Hiong
1. Removed footer.
2. Added whitespace after colons.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="header.xsl" />
<xsl:include href="footer.xsl" />
<xsl:include href="mailReason.xsl" />
<xsl:include href="style.xsl" />
<xsl:variable name="conta1">0</xsl:variable>
<xsl:variable name="stepType" select="/notification_data/request/work_flow_entity/step_type" />
<xsl:variable name="externalRequestId" select="/notification_data/external_request_id" />
<xsl:variable name="externalSystem" select="/notification_data/external_system" />
<xsl:template match="/">
<html>
<head>
<xsl:call-template name="generalStyle" />
</head>
<body>
<xsl:attribute name="style">
<!-- style.xsl -->
<xsl:call-template name="bodyStyleCss" />
</xsl:attribute>
<!-- header.xsl -->
<xsl:call-template name="head" />
<br />
<!-- mailReason.xsl -->
<xsl:call-template name="toWhomIsConcerned" />
<div class="messageArea">
<div class="messageBody">
<table cellspacing="0" cellpadding="5" border="0">
<tr>
<td>
<xsl:choose>
<xsl:when test="/notification_data/order_now_succed='true'">
<br />
<b>@@order_now_succed@@.</b>
</xsl:when>
<xsl:otherwise>
<br />
<b>@@order_now_failed@@
<xsl:value-of select="notification_data/need_review_entity" />.
</b>
</xsl:otherwise>
</xsl:choose>
<br />
<br />
<b>@@pol_reference@@:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="notification_data/line_reference" />
<br />
<b>@@order_number@@:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="notification_data/number" />
</td>
</tr>
<tr>
<td>
<br />
<br />
<b>@@vendor_note@@:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="notification_data/vendor_note" />
<xsl:choose>
<xsl:when test="/notification_data/rush='true'">
<br />
<b>@@rush@@.</b>
</xsl:when>
<xsl:otherwise />
</xsl:choose>
</td>
</tr>
</table>
<br />
<!-- footer.xsl -->
<xsl:call-template name="doNotReply" />
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>