forked from gsr/vast-inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinspector.xsl
72 lines (70 loc) · 2.02 KB
/
inspector.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
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head><title>VAST Inspector</title></head>
<body>
<xsl:for-each select="VAST/Ad">
<h3>System: <xsl:value-of select="InLine/AdSystem" /></h3>
<h1>Title: <xsl:value-of select="InLine/AdTitle" /> <span>ID: <xsl:value-of select="@id" /></span></h1>
<div style="width:50%;float:right;">
Tracking
<ul>
<li>
Impressions
<ul>
<xsl:for-each select="InLine/Impression">
<li><xsl:value-of select="." /></li>
</xsl:for-each>
</ul>
</li>
<li>
firstQuartile
<ul>
<xsl:for-each select="//Tracking[@event='firstQuartile']">
<li><xsl:value-of select="." /></li>
</xsl:for-each>
</ul>
</li>
<li>
midPoint
<ul>
<xsl:for-each select="//Tracking[@event='midPoint']">
<li><xsl:value-of select="." /></li>
</xsl:for-each>
</ul>
</li>
<li>
thirdQuartile
<ul>
<xsl:for-each select="//Tracking[@event='thirdQuartile']">
<li><xsl:value-of select="." /></li>
</xsl:for-each>
</ul>
</li>
<li>
complete
<ul>
<xsl:for-each select="//Tracking[@event='complete']">
<li><xsl:value-of select="." /></li>
</xsl:for-each>
</ul>
</li>
<li>
other
</li>
</ul>
</div>
<div style="width:50%;">
<select>
<xsl:for-each select="//MediaFile">
<option><xsl:value-of select="." /></option>
</xsl:for-each>
</select>
</div>
<br style="clear:both;" />
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>