r1702 - branches/bxe_2_0/xsl

[email protected] Sun, 12 Aug 2007 14:46:28 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Sun Aug 12 14:46:28 2007
New Revision: 1702

Log:
added exclusion of __bxe_id in
    <xsl:for-each select="@*">
fix for BXEB-26
 Tabellen: Zwischen den Zellen springen mit TAB



Modified:
   branches/bxe_2_0/xsl/transformxsl.xsl

Modified: branches/bxe_2_0/xsl/transformxsl.xsl
==============================================================================
--- branches/bxe_2_0/xsl/transformxsl.xsl	(original)
+++ branches/bxe_2_0/xsl/transformxsl.xsl	Sun Aug 12 14:46:28 2007
@@ -44,7 +44,10 @@
         <xsl:apply-templates select="document(@href)/xsl:stylesheet/xsl:template"/>
     </xsl:template>
 
-    <xsl:template match="xsl:value-of[ not (ancestor::xsl:attribute) and not(contains(@select,'$')) and not(contains(@select,'('))]|xsl:copy-of">
+    <xsl:template match="xsl:value-of[ not(ancestor::xsl:attribute) and 
+                                       not(contains(@select,'$')) and 
+                                       not(contains(@select,'('))]
+                         |xsl:copy-of">
         <xsl:choose>
             <xsl:when test="not(../@__bxe_id)">
                 <span>
@@ -108,7 +111,9 @@
     </xsl:template>
     
 
-    <xsl:template match="*[((namespace-uri() = '' and xsl:apply-templates) or (namespace-uri()='http://www.w3.org/1999/XSL/Transform' and local-name()='element')) and not(@__bxe_id and @__bxe_id = 'none')]">
+    <xsl:template match="*[((namespace-uri() = '' and xsl:apply-templates) or 
+                            (namespace-uri()='http://www.w3.org/1999/XSL/Transform' and local-name()='element')) 
+                            and not(@__bxe_id and @__bxe_id = 'none')]">
 
         <xsl:copy>
             <xsl:for-each select="@*">
@@ -179,6 +184,18 @@
         <xsl:value-of select="@select"/>
     </xsl:template>
   
+    
+    <xsl:template match="xsl:for-each[@select='@*']">
+        <xsl:copy>
+
+            <xsl:for-each select="@*">
+                <xsl:copy/>
+            </xsl:for-each>
+            <xsl:attribute name="select">@*[local-name() != '__bxe_id']</xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>
+                            
   
   
   
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs