-
Notifications
You must be signed in to change notification settings - Fork 0
/
count_useragents.xsl
32 lines (29 loc) · 988 Bytes
/
count_useragents.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
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:func="http://exslt.org/functions"
xmlns:my="my://own.uri"
extension-element-prefixes="func">
<xsl:output method="text"
encoding="ISO-8859-1"
indent="yes"/>
<!--
roland: count devices stored in WURFL
send comments, questions to roland guelle <[email protected]>
-->
<xsl:template match="/">
<xsl:text>
*****************************************************************************
Useragents: </xsl:text>
<xsl:value-of select="count(//device)"/>
<xsl:text>
Devices: </xsl:text>
<xsl:value-of select="count(//device[@actual_device_root='true'])"/>
<xsl:text>
Capabilities: </xsl:text>
<xsl:value-of select="count(//devices/device[@id='generic']/group/capability)"/>
<xsl:text>
*****************************************************************************
</xsl:text>
</xsl:template>
</xsl:stylesheet>