Removed subversion files
[redakcja.git] / platforma / static / xsl / html2wl_client.xsl
old mode 100755 (executable)
new mode 100644 (file)
index 726a404..8586587
@@ -7,12 +7,11 @@
     xmlns:dc="http://purl.org/dc/elements/1.1/"\r
 >\r
 \r
-    <xsl:output method="xml" encoding="utf-8" indent="yes"/>\r
+    <xsl:output method="xml" encoding="utf-8" indent="no" omit-xml-declaration="yes" />\r
     <!--\r
         Ten dokument definiuję przekształcenie odwrotne do wl2html\r
     -->\r
 \r
-\r
     <xsl:template match="comment()"><xsl:copy /></xsl:template>\r
 \r
     <!-- libxslt has fuck-ed prorities -->\r
@@ -23,7 +22,7 @@
     <xsl:template match="@*" priority="0" />\r
 \r
     <!-- Specjalne reguły dla przypisów -->\r
-    <xsl:template match="*[@x-annotation-box]">\r
+    <xsl:template match="*[@x-annotation-box]|*[@class='theme-text-list']">\r
         <xsl:apply-templates select="node()" />\r
     </xsl:template>\r
 \r
@@ -34,7 +33,7 @@
         </xsl:element>\r
     </xsl:template>   \r
 \r
-    <xsl:template match="*[@x-node = 'out-of-flow-text']"><xsl:value-of select="@x-content" /></xsl:template>\r
+    <xsl:template match="*[@x-node = 'out-of-flow-text']/text()"><xsl:value-of select="." /></xsl:template>\r
 \r
     <!-- Specjalne reguły dla wersów -->\r
     <xsl:template match="*[@x-node = 'wers']">\r
@@ -72,9 +71,9 @@
             <xsl:apply-templates select="@*" />\r
             <xsl:apply-templates select="node()" />\r
         </xsl:element>\r
-    </xsl:template>\r
-\r
-    <xsl:template match="*[@X-NODE = 'out-of-flow-text']"><xsl:value-of select="@X-CONTENT" /></xsl:template>\r
+    </xsl:template>   \r
+    \r
+    <xsl:template match="*[@X-NODE = 'out-of-flow-text']/text()"><xsl:value-of select="." /></xsl:template>\r
 \r
     <!-- Specjalne reguły dla wersów -->\r
     <xsl:template match="*[@X-NODE = 'wers']">\r
@@ -86,8 +85,8 @@
         <xsl:element name="{@X-NODE}" namespace="{@X-NS}"><xsl:apply-templates select="@*|node()" /></xsl:element>\r
         <xsl:if test="count(following-sibling::*[starts-with(@X-NODE, 'wers')]) > 0"><xsl:text>/&#x000a;</xsl:text></xsl:if>\r
     </xsl:template>\r
-\r
-    \r
-    \r
+        \r
     <xsl:template match="*" />\r
+        \r
+    \r
 </xsl:stylesheet>
\ No newline at end of file