Oznaczanie na żółto nieznanych tagów w HTML (wcześniej po prostu znikały).
authorzuber <marek@stepniowski.com>
Wed, 27 Jan 2010 00:27:38 +0000 (01:27 +0100)
committerzuber <marek@stepniowski.com>
Wed, 27 Jan 2010 00:27:38 +0000 (01:27 +0100)
platforma/static/css/html.css
platforma/static/xsl/wl2html_client.xsl

index f469ba6..22be1eb 100755 (executable)
     border: 1px solid #BEBEBE;
     background-color: #E2E2E1;
     white-space: pre-line;
-    overflow: auto;
-    padding: 0.25em;
-    margin: 0 -0.25em;
     font-family: monospace;
-    font-size: 10pt;
-}
\ No newline at end of file
+}
+
+.out-of-flow-text[x-editable] {
+    background-color: #E2E2E1;    
+}
+
+.unknown-tag {
+    background-color: yellow;
+    margin: -0.25em;
+    padding: 0.25em;
+    border: 1px solid orange;
+}
index d9758ea..d7f397d 100755 (executable)
         <xsl:param name="mixed" />
         <xsl:choose>
             <xsl:when test="normalize-space(.) = ''" />
-            <xsl:when test="not($mixed)"><div x-node="out-of-flow-text" class="out-of-flow-text"><xsl:value-of select="." /></div></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: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">