All pastes #489076 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-15 10:25 UTC
rendered paste body
<?xml version="1.0"?>
<xsl:stylesheet version = "1.0" xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

	<xsl:template match="detection-run">

		<html>
			<head>
				<title>Kismet run for <xsl:value-of select="@start-time"/></title>

				<script type="text/javascript">
				
				function LoadNetwork(ssid)
				{
					var xmlHttp;
					
					try
					{
						// Firefox, Opera 8.0+, Safari
						xmlHttp=new XMLHttpRequest();
					}
					catch (e)
					{
						// Internet Explorer
						try
						{
							xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
						}
						catch (e)
						{
							try
							{
								xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
							}
							catch (e)
							{
								alert("Your browser does not support AJAX!");
								return false;
							}
						}
					}

					network = "<xsl:value-of select="//detection-run/wireless-network[SSID=a]/BSSID" />";
					document.getElementById("test").innerHTML=network;
					return;

				}
			      </script>

			</head>

			<body>

				<h1>Kismet run for <xsl:value-of select="@start-time"/></h1>

				<span id="test"></span>

				<xsl:for-each select="//detection-run/wireless-network">

					<p onclick='LoadNetwork("{SSID}")'>
						<xsl:value-of select="SSID"/>
					</p>

				</xsl:for-each>

			</body>

		</html>
	<xsl:apply-templates/>

	</xsl:template>
</xsl:stylesheet>