diff 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
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl	Tue Jan 05 08:52:49 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl	Wed Jan 06 09:13:45 2010 +0000
@@ -6,15 +6,15 @@
                 xmlns:art="http://www.intevation.de/2009/artifacts">
     <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no"/>
     
-    <xsl:template match="*[local-name() = 'select']">
+    <xsl:template match="xform:select">
         <xsl:variable name="selectName" select="@ref"/>
             <div id="timeseriesfilter">
                 <table>
                     <tr>
-                        <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th>
+                        <th class="parameter"><xsl:value-of select="xform:label"/>:</th>
                         <td>
                             <table>
-                                <xsl:apply-templates select="choices/item" mode="table"/>
+                                <xsl:apply-templates select="xform:choices/xform:item" mode="table"/>
                             </table>
                         </td>
                     </tr>
@@ -23,37 +23,37 @@
     </xsl:template>
 
 
-    <xsl:template match="*[local-name() = 'item']" mode="table">
+    <xsl:template match="xform:item" mode="table">
         <xsl:if test="@selected = 'true'">
             <tr>
-                <td class="value"><xsl:value-of select="./label"/></td>
+                <td class="value"><xsl:value-of select="./xform:label"/></td>
             </tr>
         </xsl:if>
     </xsl:template>
     
 
-    <xsl:template match="*[local-name() = 'select1']">
+    <xsl:template match="xform:select1">
         <xsl:variable name="selectName" select="@ref"/>
             <div id="timeseriesfilter">
                 <table>
                     <tr>
-                        <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th>
-                        <td><xsl:value-of select="./choices/item/label" /></td>
+                        <th class="parameter"><xsl:value-of select="xform:label"/>:</th>
+                        <td><xsl:value-of select="./xform:choices/xform:item/xform:label" /></td>
                     </tr>
                 </table>
              </div>
     </xsl:template>
     
 
-    <xsl:template match="*[local-name() = 'group']">
-        <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
+    <xsl:template match="xform:group">
+        <xsl:variable name="inputName" select="xform:label"/>
         <div id="timeseriesfilter">
             <table>
                 <tr>
-                    <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th>
+                    <th class="parameter"><xsl:value-of select="xform:label"/>:</th>
                     <td>
                         <table>
-                            <xsl:apply-templates select="input" mode="table"/>
+                            <xsl:apply-templates select="xform:input" mode="table"/>
                         </table>
                     </td>
                 </tr>
@@ -62,10 +62,10 @@
     </xsl:template>
 
 
-    <xsl:template match="*[local-name() = 'input']" mode="table">
+    <xsl:template match="xform:input" mode="table">
         <tr>
             <td class="value">
-                <xsl:value-of select="./label"/>&#160;<xsl:value-of select="./value"/>
+                <xsl:value-of select="./xform:label"/>&#160;<xsl:value-of select="./xform:value"/>
             </td>
         </tr>
     </xsl:template>

http://dive4elements.wald.intevation.org