You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/02/25 19:26:04 UTC

svn commit: r155357 - lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl

Author: gregor
Date: Fri Feb 25 10:26:02 2005
New Revision: 155357

URL: http://svn.apache.org/viewcvs?view=rev&rev=155357
Log:
Removed the need to click edit icon in Forms editor twice, patch by Thomas Comiotto. This resolves http://issues.apache.org/bugzilla/show_bug.cgi?id=26577

Modified:
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl?view=diff&r1=155356&r2=155357
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl Fri Feb 25 10:26:02 2005
@@ -15,7 +15,7 @@
   limitations under the License.
 -->
 
-<!-- $Id: numberTags.xsl,v 1.3 2004/03/13 12:42:05 gregor Exp $ -->
+<!-- $Id$ -->
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
@@ -29,7 +29,7 @@
 
 <xsl:template match="*|text()|@*">
   <xsl:param name="parentID"/>
-  <xsl:variable name="thisID" select="concat($parentID,'.',position())"/>
+  <xsl:variable name="thisID" select="concat($parentID,'.', count(preceding-sibling::*))"/>
   <xsl:copy>
     <xsl:attribute name="tagID"><xsl:value-of select="$thisID"/></xsl:attribute>
     <xsl:copy-of select="@*"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org