2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
<xsl:template match="register|field">
4
<xsl:if test="local-name() = 'field'">
5
<xsl:value-of select="preceding-sibling::text()"/>
8
<xsl:element name="{local-name()}">
9
<xsl:apply-templates select="@*"/>
10
<xsl:for-each select="view">
12
<xsl:apply-templates select="@*"/>
15
<xsl:apply-templates select="field"/>
17
<xsl:value-of select="text()[last()]"/>
22
<xsl:template match="//model/bank|//model/transform|//model/enum|//model/unit">
23
<xsl:value-of select="preceding-sibling::text()"/>
25
<xsl:apply-templates select="@*|node()"/>
29
<xsl:template match="model">
31
<xsl:apply-templates select="bank"/>
32
<xsl:apply-templates select="transform"/>
33
<xsl:apply-templates select="enum"/>
34
<xsl:apply-templates select="unit"/>
35
<xsl:value-of select="text()[last()]"/>
39
<xsl:template match="@*|node()">
41
<xsl:apply-templates select="@*|node()"/>