r1483 - branches/bxe_2_0/xsl

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Thu May 18 11:45:00 2006
New Revision: 1483

Modified:
   branches/bxe_2_0/xsl/transformxsl.xsl
Log:
don't add bxe_id if one of the following siblings already has it (hope that works...)

Modified: branches/bxe_2_0/xsl/transformxsl.xsl
==============================================================================
--- branches/bxe_2_0/xsl/transformxsl.xsl	(original)
+++ branches/bxe_2_0/xsl/transformxsl.xsl	Thu May 18 11:45:00 2006
@@ -108,7 +108,11 @@
     <xsl:template name="descendantOfTemplate">
     <xsl:for-each select="@*">
                 <xsl:copy/>
-            </xsl:for-each><xsl:element name="attribute" namespace="http://www.w3.org/1999/XSL/Transform">
+            </xsl:for-each>
+            <xsl:if test="not(following-sibling::*/@__bxe_id)"> 
+             
+            <xsl:element name="attribute" namespace="http://www.w3.org/1999/XSL/Transform">
+            
                 <xsl:attribute name="name">__bxe_id</xsl:attribute>
                     <xsl:element name="value-of" namespace="http://www.w3.org/1999/XSL/Transform">
                       <xsl:choose>
@@ -117,6 +121,7 @@
                       </xsl:choose>
                     </xsl:element>
                 </xsl:element>
+             </xsl:if>
                 <xsl:element name="copy-of" namespace="http://www.w3.org/1999/XSL/Transform"><xsl:attribute name="select">@__bxe_defaultcontent</xsl:attribute></xsl:element>
                 
                 
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.