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:00 UTC
svn commit: r155356 -
lenya/trunk/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl
Author: gregor
Date: Fri Feb 25 10:25:59 2005
New Revision: 155356
URL: http://svn.apache.org/viewcvs?view=rev&rev=155356
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/trunk/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl
Modified: lenya/trunk/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl?view=diff&r1=155355&r2=155356
==============================================================================
--- lenya/trunk/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl (original)
+++ lenya/trunk/src/webapp/lenya/xslt/authoring/edit/numberTags.xsl Fri Feb 25 10:25:59 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