Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<xsl:stylesheet version="2.0" 
4
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
5
	xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
6

    
7
	<xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
8

    
9
	<xsl:template match="/">
10
		<xsl:for-each select="//field">
11
			<xsl:variable name="field" select="@name"></xsl:variable>
12
			<xsl:variable name="label" select="@label"></xsl:variable>
13
				<table class="table table-striped" ng-hide="browse_{$field}_showAll">
14
					<xsl:for-each select="./value">
15
						<tr ng-hide="browse_{$field}_showAll">
16
							<th><a href="javascript:void(0)" data-dismiss="modal" ng-click="updateQueryWithValue('{$field}', '{@name}', 1500)"><xsl:value-of select="@name" /></a></th>
17
							<td class="text-right"><xsl:value-of select="@size" /></td>
18
						</tr>
19
					</xsl:for-each>
20
				</table>
21
		</xsl:for-each>
22
	</xsl:template>
23
</xsl:stylesheet>
(5-5/5)