Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl @ 389:416ff31f6273
Removed local-name() method from xsl stylesheet and adjusted xpathes while reading xml documents.
gnv/trunk@511 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 06 Jan 2010 09:13:45 +0000 |
parents | 6e16dc005704 |
children | 14eecfde4607 |
comparison
equal
deleted
inserted
replaced
388:6e16dc005704 | 389:416ff31f6273 |
---|---|
4 xmlns="http://www.w3.org/2002/xforms" | 4 xmlns="http://www.w3.org/2002/xforms" |
5 xmlns:xform="http://www.w3.org/2002/xforms" | 5 xmlns:xform="http://www.w3.org/2002/xforms" |
6 xmlns:art="http://www.intevation.de/2009/artifacts"> | 6 xmlns:art="http://www.intevation.de/2009/artifacts"> |
7 <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no"/> | 7 <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no"/> |
8 | 8 |
9 <xsl:template match="*[local-name() = 'select']"> | 9 <xsl:template match="xform:select"> |
10 <xsl:variable name="selectName" select="@ref"/> | 10 <xsl:variable name="selectName" select="@ref"/> |
11 <div id="timeseriesfilter"> | 11 <div id="timeseriesfilter"> |
12 <table> | 12 <table> |
13 <tr> | 13 <tr> |
14 <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th> | 14 <th class="parameter"><xsl:value-of select="xform:label"/>:</th> |
15 <td> | 15 <td> |
16 <table> | 16 <table> |
17 <xsl:apply-templates select="choices/item" mode="table"/> | 17 <xsl:apply-templates select="xform:choices/xform:item" mode="table"/> |
18 </table> | 18 </table> |
19 </td> | 19 </td> |
20 </tr> | 20 </tr> |
21 </table> | 21 </table> |
22 </div> | 22 </div> |
23 </xsl:template> | 23 </xsl:template> |
24 | 24 |
25 | 25 |
26 <xsl:template match="*[local-name() = 'item']" mode="table"> | 26 <xsl:template match="xform:item" mode="table"> |
27 <xsl:if test="@selected = 'true'"> | 27 <xsl:if test="@selected = 'true'"> |
28 <tr> | 28 <tr> |
29 <td class="value"><xsl:value-of select="./label"/></td> | 29 <td class="value"><xsl:value-of select="./xform:label"/></td> |
30 </tr> | 30 </tr> |
31 </xsl:if> | 31 </xsl:if> |
32 </xsl:template> | 32 </xsl:template> |
33 | 33 |
34 | 34 |
35 <xsl:template match="*[local-name() = 'select1']"> | 35 <xsl:template match="xform:select1"> |
36 <xsl:variable name="selectName" select="@ref"/> | 36 <xsl:variable name="selectName" select="@ref"/> |
37 <div id="timeseriesfilter"> | 37 <div id="timeseriesfilter"> |
38 <table> | 38 <table> |
39 <tr> | 39 <tr> |
40 <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th> | 40 <th class="parameter"><xsl:value-of select="xform:label"/>:</th> |
41 <td><xsl:value-of select="./choices/item/label" /></td> | 41 <td><xsl:value-of select="./xform:choices/xform:item/xform:label" /></td> |
42 </tr> | 42 </tr> |
43 </table> | 43 </table> |
44 </div> | 44 </div> |
45 </xsl:template> | 45 </xsl:template> |
46 | 46 |
47 | 47 |
48 <xsl:template match="*[local-name() = 'group']"> | 48 <xsl:template match="xform:group"> |
49 <xsl:variable name="inputName" select="*[local-name() = 'label']"/> | 49 <xsl:variable name="inputName" select="xform:label"/> |
50 <div id="timeseriesfilter"> | 50 <div id="timeseriesfilter"> |
51 <table> | 51 <table> |
52 <tr> | 52 <tr> |
53 <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th> | 53 <th class="parameter"><xsl:value-of select="xform:label"/>:</th> |
54 <td> | 54 <td> |
55 <table> | 55 <table> |
56 <xsl:apply-templates select="input" mode="table"/> | 56 <xsl:apply-templates select="xform:input" mode="table"/> |
57 </table> | 57 </table> |
58 </td> | 58 </td> |
59 </tr> | 59 </tr> |
60 </table> | 60 </table> |
61 </div> | 61 </div> |
62 </xsl:template> | 62 </xsl:template> |
63 | 63 |
64 | 64 |
65 <xsl:template match="*[local-name() = 'input']" mode="table"> | 65 <xsl:template match="xform:input" mode="table"> |
66 <tr> | 66 <tr> |
67 <td class="value"> | 67 <td class="value"> |
68 <xsl:value-of select="./label"/> <xsl:value-of select="./value"/> | 68 <xsl:value-of select="./xform:label"/> <xsl:value-of select="./xform:value"/> |
69 </td> | 69 </td> |
70 </tr> | 70 </tr> |
71 </xsl:template> | 71 </xsl:template> |
72 | 72 |
73 | 73 |