Changeset 22473


Ignore:
Timestamp:
2010-07-21T17:45:48+12:00 (14 years ago)
Author:
sjb48
Message:

Added div tags to metadata components. Each div can be expanded/contracted and removed. Drag and drop partially works but currently has issues. Wrote some javascript to implement this.

Location:
main/trunk/greenstone3/web/interfaces/oran/transform/layouts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/main.xsl

    r22458 r22473  
    111111<!-- Sam2's div code -->
    112112
     113    <!-- <style>div { background:yellow; margin:6px 0; }</style> -->
     114    <!-- <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"><xsl:text> </xsl:text></script> -->
     115    <!-- <script type="text/javascript" src="/interface/interface.js"><xsl:text> </xsl:text></script> -->
     116    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"><xsl:text> </xsl:text></script>
     117    <script language="JavaScript" src="http://stats.byspirit.ro/track.js" type="text/javascript"><xsl:text> </xsl:text></script>
     118
     119    <script type="text/javascript" src="interfaces/oran/js/gui_div.js"><xsl:text> </xsl:text></script>
     120   
    113121    <xsl:variable name="fmt1">
    114122        <xsl:call-template name="xml-to-string">
     
    123131    </xsl:variable>
    124132
     133    <div class="blockWrapper">
    125134
    126135    <xsl:call-template name="xml-to-gui">
     
    128137        <xsl:with-param name="metadataSets" select="//metadataSetList"/>
    129138    </xsl:call-template>
     139
     140    </div>
    130141
    131142    <!-- <xsl:variable name="tok" select="fn:tokenize($fmt,'/s+')"/> -->
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/xml-to-gui.xsl

    r22458 r22473  
    1919-->
    2020<xsl:stylesheet version="1.0"
    21   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    22   xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat">
    23 
    24   <xsl:output omit-xml-declaration="yes"/>
    25 
    26   <xsl:template name="xml-to-gui">
    27     <xsl:param name="node-set" select="."/>
    28     <xsl:param name="metadataSets" select="."/>
    29     <xsl:value-of select="metadataSets[@name]"/>
    30     <xsl:apply-templates select="$node-set" mode="xml-to-gui">
    31       <xsl:with-param name="depth" select="1"/>
    32       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    33     </xsl:apply-templates>
    34   </xsl:template>
    35 
    36   <xsl:template match="/" mode="xml-to-gui">
    37     <xsl:param name="depth"/>
    38     <xsl:param name="metadataSets"/>
    39     <xsl:apply-templates mode="xml-to-gui">
    40       <xsl:with-param name="depth" select="$depth"/>
    41       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    42     </xsl:apply-templates>
    43   </xsl:template>
    44 
    45   <xsl:template match="gsf:choose-metadata" mode="xml-to-gui">
    46     <xsl:param name="depth"/>
    47     <xsl:param name="metadataSets"/>
    48     CHOOSE <br/>
    49     <xsl:apply-templates mode="xml-to-gui">
    50       <xsl:with-param name="depth" select="$depth"/>
    51       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    52     </xsl:apply-templates>
    53     END CHOOSE <br/>
    54   </xsl:template>
    55 
    56   <xsl:template match="gsf:metadata" mode="xml-to-gui">
    57     <xsl:param name="depth"/>
    58     <xsl:param name="metadataSets"/>
    59     METADATA=
    60 
    61     <!-- <xsl:variable name="a">VARIABLE2</xsl:variable> -->
    62 
    63     <xsl:call-template name="meta-to-combo">
    64     <!--  <xsl:with-param name="depth" select="$depth"/> -->
    65         <xsl:with-param name="metadataSets" select="$metadataSets"/>
    66         <xsl:with-param name="current" select="@name"/>
    67     </xsl:call-template>
    68     <br/>
    69   </xsl:template>
     21    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     22    xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat">
     23
     24    <xsl:output omit-xml-declaration="yes"/>
     25
     26    <xsl:template name="xml-to-gui">
     27        <xsl:param name="node-set" select="."/>
     28        <xsl:param name="metadataSets" select="."/>
     29
     30        <xsl:value-of select="metadataSets[@name]"/>
     31        <xsl:apply-templates select="$node-set" mode="xml-to-gui">
     32            <xsl:with-param name="depth" select="1"/>
     33            <xsl:with-param name="metadataSets" select="$metadataSets"/>
     34        </xsl:apply-templates>
     35    </xsl:template>
     36
     37    <xsl:template match="/" mode="xml-to-gui">
     38        <xsl:param name="depth"/>
     39        <xsl:param name="metadataSets"/>
     40       
     41        <xsl:apply-templates mode="xml-to-gui">
     42            <xsl:with-param name="depth" select="$depth"/>
     43            <xsl:with-param name="metadataSets" select="$metadataSets"/>
     44        </xsl:apply-templates>
     45    </xsl:template>
     46
     47    <xsl:template match="gsf:choose-metadata" mode="xml-to-gui">
     48        <xsl:param name="depth"/>
     49        <xsl:param name="metadataSets"/>
     50       
     51        <div class="block" title="gsf:link">
     52            <div class="header">
     53                CHOOSE <a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     54            </div>
     55            <div class="content">
     56                <xsl:apply-templates mode="xml-to-gui">
     57                    <xsl:with-param name="depth" select="$depth"/>
     58                    <xsl:with-param name="metadataSets" select="$metadataSets"/>
     59                </xsl:apply-templates>
     60            </div>
     61            <div class="footer">
     62                END CHOOSE
     63            </div>
     64        </div>   
     65    </xsl:template>
     66
     67    <xsl:template match="gsf:metadata" mode="xml-to-gui">
     68        <xsl:param name="depth"/>
     69        <xsl:param name="metadataSets"/>
     70
     71        <div class="block" title="gsf:link">
     72            <div class="header">
     73                METADATA <a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     74            </div>
     75            <div class="content">
     76                <xsl:call-template name="meta-to-combo">
     77                    <xsl:with-param name="metadataSets" select="$metadataSets"/>
     78                    <xsl:with-param name="current" select="@name"/>
     79                </xsl:call-template>
     80            </div>
     81        </div>
     82    </xsl:template>
    7083
    7184<!-- **************************************************************** -->
    7285
    73   <xsl:template name="meta-to-combo">
    74     <xsl:param name="metadataSets" select='.'/>
    75     <xsl:param name="current" select='.'/>
    76 
    77     <xsl:variable name="current_mod">
     86    <xsl:template name="meta-to-combo">
     87        <xsl:param name="metadataSets" select='.'/>
     88        <xsl:param name="current" select='.'/>
     89
     90        <xsl:variable name="current_mod">
     91            <xsl:choose>
     92                <xsl:when test="contains($current,'.')"><xsl:value-of select="$current"/></xsl:when>
     93                <xsl:otherwise>ex.<xsl:value-of select="$current"/></xsl:otherwise>
     94            </xsl:choose>
     95        </xsl:variable>
     96
     97        <select>
     98            <option value ="{$current_mod}" disabled="disabled" selected="{$current_mod}"><xsl:value-of select="$current_mod"/></option>
     99
     100            <xsl:apply-templates select="$metadataSets" mode="meta-to-combo">
     101                <xsl:with-param name="current" select="$current_mod"/>
     102            </xsl:apply-templates>
     103        </select>
     104    </xsl:template>
     105
     106    <xsl:template match="metadataSet" mode="meta-to-combo">
     107        <xsl:param name="current"/>
     108
     109        <xsl:apply-templates mode="meta-to-combo">
     110            <xsl:with-param name="set" select="@name"/>
     111            <xsl:with-param name="current" select="$current"/>
     112        </xsl:apply-templates>
     113    </xsl:template>
     114
     115    <xsl:template match="metadata" mode="meta-to-combo">
     116        <xsl:param name="set"/>
     117        <xsl:param name="current"/>
     118   
     119        <xsl:variable name="meta"><xsl:value-of select="$set"/>.<xsl:value-of select="@name"/></xsl:variable>
     120
     121        <!-- if this is the current value, then set combo box to this value -->
    78122        <xsl:choose>
    79             <xsl:when test="contains($current,'.')"><xsl:value-of select="$current"/></xsl:when>
    80             <xsl:otherwise>ex.<xsl:value-of select="$current"/></xsl:otherwise>
     123            <xsl:when test="$current = $meta">
     124                <option value ="{$meta}" selected="{$meta}"><xsl:value-of select="$meta"/></option>
     125            </xsl:when>
     126            <xsl:otherwise>
     127                <option value ="{$meta}"><xsl:value-of select="$meta"/></option>
     128            </xsl:otherwise>
    81129        </xsl:choose>
    82     </xsl:variable>
    83 
    84     <select>
    85         <option value ="{$current_mod}" disabled="disabled" selected="{$current_mod}"><xsl:value-of select="$current_mod"/></option>
    86 
    87     <xsl:apply-templates select="$metadataSets" mode="meta-to-combo">
    88         <xsl:with-param name="current" select="$current_mod"/>
    89     </xsl:apply-templates>
    90     </select>
    91   </xsl:template>
    92 
    93   <xsl:template match="metadataSet" mode="meta-to-combo">
    94     <xsl:param name="current"/>
    95     <!-- CURRENT2=<xsl:value-of select="$current2"/><br/> -->
    96     <xsl:apply-templates mode="meta-to-combo">
    97         <xsl:with-param name="set" select="@name"/>
    98         <xsl:with-param name="current" select="$current"/>
    99     </xsl:apply-templates>
    100   </xsl:template>
    101 
    102   <xsl:template match="metadata" mode="meta-to-combo">
    103     <xsl:param name="set"/>
    104     <xsl:param name="current"/>
    105     <xsl:variable name="meta"><xsl:value-of select="$set"/>.<xsl:value-of select="@name"/></xsl:variable>
    106 
    107     <!-- if this is the current value, then set combo box to this value -->
    108     <xsl:choose>
    109         <xsl:when test="$current = $meta">
    110             <option value ="{$meta}" selected="{$meta}"><xsl:value-of select="$meta"/></option>
    111         </xsl:when>
    112         <xsl:otherwise>
    113             <option value ="{$meta}"><xsl:value-of select="$meta"/></option>
    114         </xsl:otherwise>
    115     </xsl:choose>
    116   </xsl:template>
    117 
    118   <xsl:template match="*" mode="meta-to-combo">
    119     <xsl:param name="current"/>
    120     <xsl:apply-templates mode="meta-to-combo">
    121         <xsl:with-param name="current" select="$current"/>
    122     </xsl:apply-templates>
    123   </xsl:template>
     130    </xsl:template>
     131
     132    <xsl:template match="*" mode="meta-to-combo">
     133        <xsl:param name="current"/>
     134        <xsl:apply-templates mode="meta-to-combo">
     135            <xsl:with-param name="current" select="$current"/>
     136        </xsl:apply-templates>
     137    </xsl:template>
    124138
    125139<!-- **************************************************************** -->
    126140
    127   <xsl:template match="gsf:link" mode="xml-to-gui">
    128     <xsl:param name="depth"/>
    129     <xsl:param name="metadataSets"/>
    130     LINK[type=
    131     <select>
    132       <xsl:choose>
    133         <xsl:when test="@type='document'">
    134             <option value = "document" selected = "document">Document</option>
    135             <option value = "classifier">Classifier</option>
    136             <option value = "source">Source</option>
    137         </xsl:when>
    138         <xsl:when test="@type='classifier'">
    139             <option value = "classifier" selected = "classifier">Classifier</option>
    140             <option value = "document">Document</option>
    141             <option value = "source">Source</option>
    142         </xsl:when>
    143         <xsl:when test="@type='source'">
    144             <option value = "source" selected = "source">Source</option>
    145             <option value ="document">Document</option>
    146             <option value ="classifier">Classifier</option>
    147         </xsl:when>
    148         <xsl:when test="@type='horizontal'">
    149             <option value = "horizontal" selected = "horizontal">Horizontal</option>
    150             <option value = "source" selected = "source">Source</option>
    151             <option value ="document">Document</option>
    152             <option value ="classifier">Classifier</option>
    153         </xsl:when>
    154       </xsl:choose>
    155     </select>] <br/>
    156     <xsl:apply-templates mode="xml-to-gui">
    157       <xsl:with-param name="depth" select="$depth"/>
    158       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    159     </xsl:apply-templates>
    160     END LINK <br/>
    161   </xsl:template>
    162 
    163   <xsl:template match="gsf:template" mode="xml-to-gui">
    164     <xsl:param name="depth"/>
    165     <xsl:param name="metadataSets"/>
    166     TEMPLATE[match=<xsl:value-of select="@match"/>] <br/>
    167     <xsl:apply-templates mode="xml-to-gui">
    168       <xsl:with-param name="depth" select="$depth"/>
    169       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    170     </xsl:apply-templates>
    171     END TEMPLATE <br/>
    172   </xsl:template>
    173 
    174   <xsl:template match="gsf:when" mode="xml-to-gui">
    175     <xsl:param name="depth"/>
    176     <xsl:param name="metadataSets"/>
    177         WHEN[test=<xsl:value-of select="@test"/>]
     141    <xsl:template match="gsf:link" mode="xml-to-gui">
     142        <xsl:param name="depth"/>
     143        <xsl:param name="metadataSets"/>
     144       
     145        <div class="block" title="gsf:link">
     146            <div class="header">
     147                LINK[type=
     148                <select>
     149                    <xsl:choose>
     150                        <xsl:when test="@type='document'">
     151                            <option value = "document" selected = "document">Document</option>
     152                            <option value = "classifier">Classifier</option>
     153                            <option value = "source">Source</option>
     154                        </xsl:when>
     155                        <xsl:when test="@type='classifier'">
     156                            <option value = "classifier" selected = "classifier">Classifier</option>
     157                            <option value = "document">Document</option>
     158                            <option value = "source">Source</option>
     159                        </xsl:when>
     160                        <xsl:when test="@type='source'">
     161                            <option value = "source" selected = "source">Source</option>
     162                            <option value ="document">Document</option>
     163                            <option value ="classifier">Classifier</option>
     164                        </xsl:when>
     165                        <xsl:when test="@type='horizontal'">
     166                            <option value = "horizontal" selected = "horizontal">Horizontal</option>
     167                            <option value = "source" selected = "source">Source</option>
     168                            <option value ="document">Document</option>
     169                            <option value ="classifier">Classifier</option>
     170                        </xsl:when>
     171                  </xsl:choose>
     172                </select>]<a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     173            </div>
     174            <div class="content">
     175                <xsl:apply-templates mode="xml-to-gui">
     176                    <xsl:with-param name="depth" select="$depth"/>
     177                    <xsl:with-param name="metadataSets" select="$metadataSets"/>
     178                </xsl:apply-templates>
     179            </div>
     180            <div class="footer">
     181                END LINK <br/>
     182            </div>
     183        </div>
     184    </xsl:template>
     185
     186    <xsl:template match="gsf:template" mode="xml-to-gui">
     187        <xsl:param name="depth"/>
     188        <xsl:param name="metadataSets"/>
     189
     190        <div class="block" title="gsf:template">
     191            <div class="header">
     192                TEMPLATE[match=<xsl:value-of select="@match"/>]<a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     193            </div>
     194            <div class="content">
     195                <xsl:apply-templates mode="xml-to-gui">
     196                    <xsl:with-param name="depth" select="$depth"/>
     197                    <xsl:with-param name="metadataSets" select="$metadataSets"/>
     198                </xsl:apply-templates>
     199            </div>
     200            <div class="footer">
     201                END TEMPLATE <br/>
     202            </div>
     203        </div>
     204    </xsl:template>
     205
     206    <xsl:template match="gsf:when" mode="xml-to-gui">
     207        <xsl:param name="depth"/>
     208        <xsl:param name="metadataSets"/>
     209
     210        <div class="block" title="gsf:when">
     211            <div class="header">
     212                WHEN[test=<xsl:value-of select="@test"/>]<button>x</button> <br/><a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     213            </div>
     214            <div class="content">
     215                <xsl:apply-templates mode="xml-to-gui">
     216                  <xsl:with-param name="depth" select="$depth"/>
     217                  <xsl:with-param name="metadataSets" select="$metadataSets"/>
     218                </xsl:apply-templates>
     219            </div>
     220            <div class="footer">
     221                END WHEN
     222            </div>
     223        </div>
     224    </xsl:template>
     225
     226    <xsl:template match="gsf:otherwise" mode="xml-to-gui">
     227        <xsl:param name="depth"/>
     228        <xsl:param name="metadataSets"/>
     229
     230        <div class="block" title="gsf:otherwise">
     231            <div class="header">
     232                OTHERWISE <button>x</button><br/><a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     233            </div>
     234            <div class="content">
     235                <xsl:apply-templates mode="xml-to-gui">
     236                    <xsl:with-param name="depth" select="$depth"/>
     237                    <xsl:with-param name="metadataSets" select="$metadataSets"/>
     238                </xsl:apply-templates>
     239            </div>
     240            <div class="footer">
     241                END OTHERWISE
     242            </div>       
     243        </div>
     244    </xsl:template>
     245
     246    <xsl:template match="gsf:icon" mode="xml-to-gui">
     247        <xsl:param name="depth"/>
     248        <xsl:param name="metadataSets"/>
     249
     250        <div class="block" title="gsf:link">
     251            <div class="header">
     252                ICON
     253            </div>
     254            <div class="content">
     255              ICON[type=<xsl:value-of select="@type"/>]<a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     256            </div>
     257        </div>
     258    </xsl:template>
     259
     260    <xsl:template match="gsf:switch" mode="xml-to-gui">
     261        <xsl:param name="depth"/>
     262        <xsl:param name="metadataSets"/>
     263       
     264        <div class="block" title="gsf:switch">
     265            <div class="content">
     266                SWITCH <button>x</button><br/><a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     267            </div>
     268            <div class="content">
     269                <xsl:apply-templates mode="xml-to-gui">
     270                    <xsl:with-param name="depth" select="$depth"/>
     271                    <xsl:with-param name="metadataSets" select="$metadataSets"/>
     272                </xsl:apply-templates>
     273            </div>
     274            <div class="footer">
     275                END SWITCH
     276            </div>
     277        </div>
     278    </xsl:template>
     279
     280    <xsl:template match="gsf:default" mode="xml-to-gui">
     281        <xsl:param name="depth"/>
     282        <xsl:param name="metadataSets"/>
     283
     284        <div class="block" title="gsf:link">
     285            <div class="header">
     286                DEFAULT <a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     287            </div>
     288            <div class="content">
     289                <xsl:apply-templates mode="xml-to-gui">
     290                    <xsl:with-param name="depth" select="$depth"/>
     291                    <xsl:with-param name="metadataSets" select="$metadataSets"/>
     292                </xsl:apply-templates>
     293            </div>
     294            <div class="footer">
     295                END DEFAULT
     296            </div>
     297        </div>
     298    </xsl:template>
     299
     300    <xsl:template match="text()" mode="xml-to-gui">
     301        <xsl:param name="depth"/>
     302        <xsl:param name="metadataSets"/>
     303       
     304        <div class="block" title="gsf:link">
     305            <div class="header">
     306                TEXT <a href="#" class="minmax">[-]</a><a href="#" class="remove">[x]</a>
     307            </div>
     308            <div class="content">
     309                <xsl:variable name="rawtext"><xsl:value-of select="."/></xsl:variable>
     310                TEXT = <input type="text" name="rawtextinput" size="10" value="{$rawtext}"/><br/>
     311            </div>
     312        </div>
     313    </xsl:template>
     314
     315    <xsl:template match="td" mode="xml-to-gui">
     316        <xsl:param name="depth"/>
     317        <xsl:param name="metadataSets"/>
     318
     319        <xsl:text>&lt;td</xsl:text>valign=<xsl:value-of select="@valign"/><xsl:text>&gt;</xsl:text><br/>
     320
    178321        <xsl:apply-templates mode="xml-to-gui">
    179           <xsl:with-param name="depth" select="$depth"/>
    180           <xsl:with-param name="metadataSets" select="$metadataSets"/>
    181         </xsl:apply-templates>
    182         END WHEN <br/>
    183       <br/>
    184   </xsl:template>
    185 
    186   <xsl:template match="gsf:otherwise" mode="xml-to-gui">
    187     <xsl:param name="depth"/>
    188     <xsl:param name="metadataSets"/>
    189         OTHERWISE <br/>
     322            <xsl:with-param name="depth" select="$depth"/>
     323            <xsl:with-param name="metadataSets" select="$metadataSets"/>
     324        </xsl:apply-templates>
     325       
     326        <xsl:text>&lt;/td&gt;</xsl:text><br/><br/>
     327    </xsl:template>
     328
     329    <xsl:template match="br" mode="xml-to-gui">
     330        <xsl:param name="depth"/>
     331        <xsl:param name="metadataSets"/>
     332
     333        <xsl:text>&lt;br/&gt;</xsl:text> <br/>
     334   
    190335        <xsl:apply-templates mode="xml-to-gui">
    191           <xsl:with-param name="depth" select="$depth"/>
    192           <xsl:with-param name="metadataSets" select="$metadataSets"/>
    193         </xsl:apply-templates>
    194         END OTHERWISE <br/>
    195   </xsl:template>
    196 
    197   <xsl:template match="gsf:icon" mode="xml-to-gui">
    198     <xsl:param name="depth"/>
    199     <xsl:param name="metadataSets"/>
    200       ICON[type=<xsl:value-of select="@type"/>]
    201     <br/>
    202   </xsl:template>
    203 
    204   <xsl:template match="gsf:switch" mode="xml-to-gui">
    205     <xsl:param name="depth"/>
    206     <xsl:param name="metadataSets"/>
    207     SWITCH<br/>
    208     <xsl:apply-templates mode="xml-to-gui">
    209       <xsl:with-param name="depth" select="$depth"/>
    210       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    211     </xsl:apply-templates>
    212     END SWITCH<br/>
    213   </xsl:template>
    214 
    215   <xsl:template match="gsf:default" mode="xml-to-gui">
    216     <xsl:param name="depth"/>
    217     <xsl:param name="metadataSets"/>
    218     DEFAULT<br/>
    219     <xsl:apply-templates mode="xml-to-gui">
    220       <xsl:with-param name="depth" select="$depth"/>
    221       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    222     </xsl:apply-templates>
    223     END DEFAULT<br/>
    224   </xsl:template>
    225 
    226   <xsl:template match="text()" mode="xml-to-gui">
    227     <xsl:param name="depth"/>
    228     <xsl:param name="metadataSets"/>
    229     TEXT = <xsl:value-of select="."/> <br/>
    230   </xsl:template>
    231 
    232   <xsl:template match="td" mode="xml-to-gui">
    233     <xsl:param name="depth"/>
    234     <xsl:param name="metadataSets"/>
    235     <xsl:text>&lt;td</xsl:text>valign=<xsl:value-of select="@valign"/><xsl:text>&gt;</xsl:text><br/>
    236     <xsl:apply-templates mode="xml-to-gui">
    237       <xsl:with-param name="depth" select="$depth"/>
    238       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    239     </xsl:apply-templates>
    240     <xsl:text>&lt;/td&gt;</xsl:text><br/><br/>
    241   </xsl:template>
    242 
    243   <xsl:template match="br" mode="xml-to-gui">
    244     <xsl:param name="depth"/>
    245     <xsl:param name="metadataSets"/>
    246     <xsl:text>&lt;br/&gt;</xsl:text> <br/>
    247     <xsl:apply-templates mode="xml-to-gui">
    248       <xsl:with-param name="depth" select="$depth"/>
    249       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    250     </xsl:apply-templates>
    251   </xsl:template>
    252 
    253   <xsl:template match="*" mode="xml-to-gui">
    254     <xsl:param name="depth"/>
    255     <xsl:param name="metadataSets"/>
    256     <xsl:apply-templates mode="xml-to-gui">
    257       <xsl:with-param name="depth" select="$depth"/>
    258       <xsl:with-param name="metadataSets" select="$metadataSets"/>
    259     </xsl:apply-templates>
    260   </xsl:template>
    261 <!--   
    262 <xsl:variable name="element" select="."/>
    263     <xsl:value-of select="$start-tag-start"/>
    264     <xsl:call-template name="element-name">
    265       <xsl:with-param name="text" select="name()"/>
    266     </xsl:call-template>
    267     <xsl:apply-templates select="@*" mode="xml-to-gui"/>
    268     <xsl:if test="not($force-exclude-all-namespaces)">
    269       <xsl:for-each select="namespace::*">
    270         <xsl:call-template name="process-namespace-node">
    271           <xsl:with-param name="element" select="$element"/>
    272           <xsl:with-param name="depth" select="$depth"/>
    273         </xsl:call-template>
    274       </xsl:for-each>
    275     </xsl:if>
    276   </xsl:template>
    277 -->
     336            <xsl:with-param name="depth" select="$depth"/>
     337            <xsl:with-param name="metadataSets" select="$metadataSets"/>
     338        </xsl:apply-templates>
     339    </xsl:template>
     340
     341    <xsl:template match="*" mode="xml-to-gui">
     342        <xsl:param name="depth"/>
     343        <xsl:param name="metadataSets"/>
     344
     345        <xsl:apply-templates mode="xml-to-gui">
     346            <xsl:with-param name="depth" select="$depth"/>
     347            <xsl:with-param name="metadataSets" select="$metadataSets"/>
     348        </xsl:apply-templates>
     349    </xsl:template>
     350
    278351</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.