diff --git a/aufgabe2/js/table.js b/aufgabe2/js/table.js index 4ac659e..4c7f118 100644 --- a/aufgabe2/js/table.js +++ b/aufgabe2/js/table.js @@ -176,9 +176,15 @@ function updateTable(csv, columns) { function sortTable(n) { var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0; - table = document.getElementById("t01"); switching = true; + table = document.getElementById("t01"); + + // xslt table workaround + if (table === null) { + table = document.getElementById("t02"); + } + // Set the sorting direction to ascending: dir = "asc"; diff --git a/aufgabe2/resources/world_data_sheet.xslt b/aufgabe2/resources/world_data_sheet.xslt index 3d1eaa1..4d0a9aa 100644 --- a/aufgabe2/resources/world_data_sheet.xslt +++ b/aufgabe2/resources/world_data_sheet.xslt @@ -21,106 +21,78 @@
- id - + id + + | - name - + name + + | birth rate / 1000 - | cell phones / 100 - | children / woman - | electricity consumption / capita - | gdp / capita - | gdp / capita growth - | inflation_annual - | internet user / 100 - | life expectancy - | military expenditure percent of gdp - | gps lat - | gps long - |
---|