+ <span class="unknown-tag" x-node="{name()}">
+ <xsl:apply-templates select="child::node()">
+ <xsl:with-param name="mixed" select="true()" />
+ </xsl:apply-templates>
+ </span>
+ </xsl:template>
+
+ <xsl:template name="context-menu">
+ <!-- <span class="default-menu context-menu"> -->
+ <!-- <button class="edit-button">Edytuj</button> -->
+ <!-- <span class="delete-button">Delete</span> -->
+ <!-- </span> -->
+ <!-- <span class="edit-menu context-menu">
+ <span class="accept-button">Accept</span>
+ <span class="reject-button">Close</span>
+ </span> -->
+ </xsl:template>
+
+ <xsl:template name="standard-attributes">
+ <xsl:param name="extra-class" />
+ <xsl:attribute name="class"><xsl:value-of select="local-name()" /><xsl:text> </xsl:text><xsl:value-of select="$extra-class" /></xsl:attribute>
+
+ <xsl:attribute name="x-node"><xsl:value-of select="local-name()" /></xsl:attribute>
+
+ <xsl:if test="local-name() != name()">
+ <xsl:attribute name="x-ns"><xsl:value-of select="namespace-uri()" /></xsl:attribute>
+ </xsl:if>
+
+ <xsl:for-each select="@*">
+ <xsl:variable name="id" select="generate-id()" />
+ <xsl:attribute name="x-attr-value-{$id}"><xsl:value-of select="."/></xsl:attribute>
+ <xsl:attribute name="x-attr-name-{$id}"><xsl:value-of select="local-name()"/></xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="namespace-uri()">
+ <xsl:attribute name="x-attr-ns-{$id}"><xsl:value-of select="namespace-uri()"/></xsl:attribute>
+ </xsl:when>
+ <!-- if the element belongs to default namespace and attribut has no namespace -->
+ <xsl:when test="not(namespace-uri(.))">
+ <xsl:attribute name="data-wlf-{local-name()}"><xsl:value-of select="."/></xsl:attribute>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:for-each>