/[formed]/trunk/contrib/convert-formedtree2html.xsl
ViewVC logotype

Diff of /trunk/contrib/convert-formedtree2html.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 66 by frank, Fri Aug 17 16:13:36 2007 UTC revision 67 by frank, Tue Aug 21 13:15:51 2007 UTC
# Line 104  Line 104 
104                                          <xsl:text>]</xsl:text>                                          <xsl:text>]</xsl:text>
105                                  </b>                                  </b>
106                          </td>                          </td>
107                          <td> <xsl:value-of select="local-name()"/> </td>                          <td> <xsl:call-template name="local_name_mapping" /> </td>
108                          <td> <xsl:value-of select="@name"/> </td>                          <td> <xsl:value-of select="@name"/> </td>
109                          <td colspan="6">                          <td colspan="6">
110                          </td>                          </td>
# Line 124  Line 124 
124          <xsl:template match="text|textarea|int|date|bool">          <xsl:template match="text|textarea|int|date|bool">
125                  <tr>                  <tr>
126                          <td> <xsl:value-of select="@description"/> </td>                          <td> <xsl:value-of select="@description"/> </td>
127                          <td> <xsl:value-of select="local-name()"/> </td>                          <td> <xsl:call-template name="local_name_mapping" /> </td>
128                          <td> <xsl:value-of select="@name"/> </td>                          <td> <xsl:value-of select="@name"/> </td>
129                          <td> <xsl:value-of select="@size"/> </td>                          <td> <xsl:value-of select="@size"/> </td>
130                          <td> <xsl:value-of select="@maxlength"/> </td>                          <td> <xsl:value-of select="@maxlength"/> </td>
# Line 144  Line 144 
144                  </tr>                  </tr>
145          </xsl:template>          </xsl:template>
146    
147            <xsl:template name="local_name_mapping">
148                    <xsl:choose>
149                            <xsl:when test="local-name() = 'switch'">
150                                    Unterschiede in Formularversionen
151                            </xsl:when>
152                            <xsl:when test="local-name() = 'radio'">
153                                    Radiobutton
154                            </xsl:when>
155                            <xsl:when test="local-name() = 'choice'">
156                                    Auswahlliste
157                            </xsl:when>
158                            <xsl:when test="local-name() = 'check'">
159                                    Checkbox
160                            </xsl:when>
161                            <xsl:when test="local-name() = 'text'">
162                                    Textfeld
163                            </xsl:when>
164                            <xsl:when test="local-name() = 'textarea'">
165                                    Textbereich
166                            </xsl:when>
167                            <xsl:when test="local-name() = 'date'">
168                                    Datum
169                            </xsl:when>
170                            <xsl:when test="local-name() = 'int'">
171                                    Zahl
172                            </xsl:when>
173                            <xsl:when test="local-name() = 'bool'">
174                                    Ja/Nein-Feld
175                            </xsl:when>
176                            <xsl:otherwise>
177                                    unbekannt: <xsl:value-of select="local-name()"/>
178                            </xsl:otherwise>
179                    </xsl:choose>
180            </xsl:template>
181    
182    
183          <!-- suppress unneeded textual content -->          <!-- suppress unneeded textual content -->
184          <xsl:template match="text()"/>          <xsl:template match="text()"/>
185  </xsl:stylesheet>  </xsl:stylesheet>

Legend:
Removed from v.66  
changed lines
  Added in v.67

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26