+ <div class="unknown-tag" x-node="{name()}">
+ <xsl:apply-templates select="child::node()">
+ <xsl:with-param name="mixed" select="true()" />
+ </xsl:apply-templates>
+ </div>
+ </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>
+
+ <!-- we use upper-case attribute names, so we don't have to wory about HTML parsers -->
+ <xsl:attribute name="x-node"><xsl:value-of select="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-qname-{$id}"><xsl:value-of select="name()"/></xsl:attribute>
+ <xsl:if test="namespace-uri()">
+ <xsl:attribute name="x-attr-ns-{$id}"><xsl:value-of select="namespace-uri()"/></xsl:attribute>
+ </xsl:if>
+ </xsl:for-each>