1
|
<?xml version="1.0"?>
|
2
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
3
|
|
4
|
<xsl:template match="/success">
|
5
|
<html>
|
6
|
<script type="text/javascript">
|
7
|
function redirect()
|
8
|
{
|
9
|
var url = "/sms/?docid=" + "<xsl:value-of select="./docid"/>" + "&status=success";
|
10
|
window.location = url;
|
11
|
}
|
12
|
</script>
|
13
|
<body onload="javascript:redirect()">
|
14
|
</body>
|
15
|
</html>
|
16
|
</xsl:template>
|
17
|
|
18
|
<xsl:template match="/error">
|
19
|
<html>
|
20
|
<script type="text/javascript">
|
21
|
function redirect()
|
22
|
{
|
23
|
var url = "/sms/?status=fail";
|
24
|
window.location = url;
|
25
|
}
|
26
|
</script>
|
27
|
<body onload="javascript:redirect()">
|
28
|
</body>
|
29
|
</html>
|
30
|
</xsl:template>
|
31
|
|
32
|
</xsl:stylesheet>
|