fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added auto-removal of commas in theme edit box, if there was only 1 theme netered...
[redakcja.git]
/
platforma
/
static
/
xsl
/
wl2html_client.xsl
diff --git
a/platforma/static/xsl/wl2html_client.xsl
b/platforma/static/xsl/wl2html_client.xsl
old mode 100755
(executable)
new mode 100644
(file)
index
3b44fbd
..
d7f397d
--- a/
platforma/static/xsl/wl2html_client.xsl
+++ b/
platforma/static/xsl/wl2html_client.xsl
@@
-7,9
+7,9
@@
-->
<xsl:output method="xml" encoding="utf-8" indent="no" omit-xml-declaration="yes" />
-->
<xsl:output method="xml" encoding="utf-8" indent="no" omit-xml-declaration="yes" />
- <xsl:template match="/">
+ <
!-- <
xsl:template match="/">
<xsl:apply-templates select="chunk|utwor" />
<xsl:apply-templates select="chunk|utwor" />
- </xsl:template>
+ </xsl:template>
-->
<!--
Base tag for rendering a fragment of text
<!--
Base tag for rendering a fragment of text
@@
-27,7
+27,7
@@
<xsl:template match="utwor">
<div>
<xsl:call-template name="standard-attributes" />
<xsl:template match="utwor">
<div>
<xsl:call-template name="standard-attributes" />
- <xsl:apply-templates select="child::*">
+ <xsl:apply-templates select="child::*
| text()
">
<xsl:with-param name="mixed" select="false()" />
</xsl:apply-templates>
</div>
<xsl:with-param name="mixed" select="false()" />
</xsl:apply-templates>
</div>
@@
-212,7
+212,7
@@
-->
<xsl:template match="motto">
<xsl:param name="mixed" />
-->
<xsl:template match="motto">
<xsl:param name="mixed" />
- <div>
+ <div
x-editable="true"
>
<xsl:call-template name="standard-attributes" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
<xsl:call-template name="standard-attributes" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
@@
-432,7
+432,7
@@
<xsl:template match="didaskalia">
<xsl:param name="mixed" />
<xsl:template match="didaskalia">
<xsl:param name="mixed" />
- <div>
+ <div
x-editable="true"
>
<xsl:call-template name="standard-attributes" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
<xsl:call-template name="standard-attributes" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
@@
-680,7
+680,7
@@
<xsl:value-of select="substring-after(@id, 'm')" />
</xsl:attribute>
<xsl:call-template name="context-menu" />
<xsl:value-of select="substring-after(@id, 'm')" />
</xsl:attribute>
<xsl:call-template name="context-menu" />
- <span class="theme-text-list"><xsl:value-of select="." /></span>
+ <span class="theme-text-list"><xsl:value-of select=".
|node()
" /></span>
</span>
</xsl:template>
</span>
</xsl:template>
@@
-701,11
+701,11
@@
-->
<xsl:template match="text()">
-->
<xsl:template match="text()">
+ <!-- <xsl:value-of select="." /> -->
<xsl:param name="mixed" />
<xsl:choose>
<xsl:when test="normalize-space(.) = ''" />
<xsl:param name="mixed" />
<xsl:choose>
<xsl:when test="normalize-space(.) = ''" />
- <xsl:when test="not($mixed)"><span x-node="out-of-flow-text" class="out-of-flow-text"
- x-content="{.}"></span></xsl:when>
+ <xsl:when test="not($mixed)"><div x-node="out-of-flow-text" class="out-of-flow-text" x-editable="true"><xsl:value-of select="." /></div></xsl:when>
<xsl:otherwise><xsl:value-of select="." /></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:otherwise><xsl:value-of select="." /></xsl:otherwise>
</xsl:choose>
</xsl:template>
@@
-724,12
+724,16
@@
</xsl:template>
<xsl:template match="*">
</xsl:template>
<xsl:template match="*">
- <error>Unknown tag: <xsl:value-of select="name()" /></error>
+ <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"> -->
</xsl:template>
<xsl:template name="context-menu">
<!-- <span class="default-menu context-menu"> -->
- <
button class="edit-button">Edytuj</button
>
+ <
!-- <button class="edit-button">Edytuj</button> --
>
<!-- <span class="delete-button">Delete</span> -->
<!-- </span> -->
<!-- <span class="edit-menu context-menu">
<!-- <span class="delete-button">Delete</span> -->
<!-- </span> -->
<!-- <span class="edit-menu context-menu">