Librarian in regular requirements.
[redakcja.git] / redakcja / static / xsl / wl2html_client.xsl
index 1739f62..784acb7 100644 (file)
         </div>
     </xsl:template>
 
         </div>
     </xsl:template>
 
+    <xsl:template match="nota_red">
+        <xsl:param name="mixed" />
+        <div>
+            <xsl:call-template name="standard-attributes" />
+            <xsl:apply-templates select="child::node()">
+                <xsl:with-param name="mixed" select="false()" />
+            </xsl:apply-templates>
+        </div>
+    </xsl:template>
+
     <!--
         Tagi obejmujące tekst dedykacji (styl wieloakapitowy bądź wielostrofowy):
         <dedykacja> tekst-dedykacji </dedykacja>
     <!--
         Tagi obejmujące tekst dedykacji (styl wieloakapitowy bądź wielostrofowy):
         <dedykacja> tekst-dedykacji </dedykacja>
         </div>
     </xsl:template>
 
         </div>
     </xsl:template>
 
+    <!--
+        Tagi obejmujące tekst w ramce (styl wieloakapitowy bądź wielostrofowy):
+        <ramka> tekst-w-ramce </ramka>
+    -->
+    <xsl:template match="ramka">
+        <xsl:param name="mixed" />
+        <div>
+            <xsl:call-template name="standard-attributes" />
+            <xsl:apply-templates select="child::node()">
+                <xsl:with-param name="mixed" select="false()" />
+            </xsl:apply-templates>
+        </div>
+    </xsl:template>
+
     <!--
         Tagi obejmujące tekst motta (styl wieloakapitowy bądź wielostrofowy):
         <motto> tekst-motta </motto>
     <!--
         Tagi obejmujące tekst motta (styl wieloakapitowy bądź wielostrofowy):
         <motto> tekst-motta </motto>
         </xsl:choose>
     </xsl:template>
 
         </xsl:choose>
     </xsl:template>
 
-    <xsl:template match="wers_cd|wers_akap|wers_wciety">
+    <xsl:template match="wers_cd|wers_akap|wers_wciety|wers_do_prawej">
         <xsl:param name="mixed" />
                <!-- <xsl:choose>
                <xsl:when test="ancestor::*[0]/self::strofa"> -->
         <xsl:param name="mixed" />
                <!-- <xsl:choose>
                <xsl:when test="ancestor::*[0]/self::strofa"> -->
         </em>
     </xsl:template>
 
         </em>
     </xsl:template>
 
-    <xsl:template match="wyroznienie|slowo_obce|mat|didask_tekst|osoba|wyp_osoba|www">
+    <xsl:template match="wyroznienie|slowo_obce|mat|didask_tekst|osoba|wyp_osoba|www|wieksze_odstepy">
         <xsl:param name="mixed" />
         <em>
             <xsl:call-template name="standard-attributes" />
         <xsl:param name="mixed" />
         <em>
             <xsl:call-template name="standard-attributes" />
         </em>
     </xsl:template>
 
         </em>
     </xsl:template>
 
+    <xsl:template match="indeks_dolny">
+        <xsl:param name="mixed" />
+        <sub>
+            <xsl:call-template name="standard-attributes" />
+            <xsl:apply-templates select="child::node()">
+                <xsl:with-param name="mixed" select="true()" />
+            </xsl:apply-templates>
+        </sub>
+    </xsl:template>
+
     <!--
         **********
         SEPARATORY
     <!--
         **********
         SEPARATORY
     -->
     <xsl:template match="sekcja_swiatlo">
         <xsl:param name="mixed" />
     -->
     <xsl:template match="sekcja_swiatlo">
         <xsl:param name="mixed" />
-        <br><xsl:call-template name="standard-attributes" /></br>
+        <hr><xsl:call-template name="standard-attributes" /></hr>
     </xsl:template>
 
     <xsl:template match="sekcja_asterysk">
         <xsl:param name="mixed" />
     </xsl:template>
 
     <xsl:template match="sekcja_asterysk">
         <xsl:param name="mixed" />
-        <hr><xsl:call-template name="standard-attributes" /></hr>
+        <p><xsl:call-template name="standard-attributes" /></p>
     </xsl:template>
 
     <xsl:template match="separator_linia">
     </xsl:template>
 
     <xsl:template match="separator_linia">
 
     <xsl:template match="zastepnik_wersu">
         <xsl:param name="mixed" />
 
     <xsl:template match="zastepnik_wersu">
         <xsl:param name="mixed" />
-        <hr><xsl:call-template name="standard-attributes" /></hr>
+        <span>
+            <xsl:call-template name="standard-attributes" />
+            <xsl:apply-templates select="child::node()">
+                <xsl:with-param name="mixed" select="true()" />
+            </xsl:apply-templates>
+        </span>
     </xsl:template>
 
     <!--
     </xsl:template>
 
     <!--
         <!-- <xsl:value-of select="." /> -->
         <xsl:param name="mixed" />
         <xsl:choose>
         <!-- <xsl:value-of select="." /> -->
         <xsl:param name="mixed" />
         <xsl:choose>
-            <xsl:when test="normalize-space(.) = ''" />
+            <xsl:when test="normalize-space(.) = ''">
+                <xsl:value-of select="." />
+            </xsl:when>
             <xsl:when test="not($mixed)">
                <span x-node="out-of-flow-text" class="out-of-flow-text" x-editable="true">
                        <xsl:value-of select="." />
             <xsl:when test="not($mixed)">
                <span x-node="out-of-flow-text" class="out-of-flow-text" x-editable="true">
                        <xsl:value-of select="." />
     </xsl:template>
 
     <xsl:template match="*">
     </xsl:template>
 
     <xsl:template match="*">
-        <span class="unknown-tag" x-node="{name()}">
+        <span>
+            <xsl:call-template name="standard-attributes">
+                <xsl:with-param name="extra-class">unknown-tag</xsl:with-param>
+            </xsl:call-template>
             <xsl:apply-templates select="child::node()">
                 <xsl:with-param name="mixed" select="true()" />
             </xsl:apply-templates>        
             <xsl:apply-templates select="child::node()">
                 <xsl:with-param name="mixed" select="true()" />
             </xsl:apply-templates>        
                        </xsl:choose>               
         </xsl:for-each>
     </xsl:template>
                        </xsl:choose>               
         </xsl:for-each>
     </xsl:template>
-    
-</xsl:stylesheet>
\ No newline at end of file
+
+    <xsl:template match="alien">
+            <span class="alien" x-pass-thru="true">
+                <xsl:apply-templates select="node()">
+                    <xsl:with-param name="mixed" select="true()" />
+                </xsl:apply-templates>
+            </span>
+    </xsl:template>
+
+    <xsl:template match="comment()">
+        <xsl:comment><xsl:value-of select="."/></xsl:comment>
+    </xsl:template>
+</xsl:stylesheet>