[Libreoffice-commits] .: Branch 'feature/cmclayouttrans' - solenv/bin

Caolán McNamara caolan at kemper.freedesktop.org
Wed Aug 8 04:27:34 PDT 2012


 solenv/bin/uilangfilter.xslt |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 905077fc285d44b8aaf171bb78eb447a54a133e5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Aug 8 12:27:12 2012 +0100

    blasted xslt, give me the indexes I want
    
    Change-Id: Icce11ed7507f7481ded5a480ded6e7e5fc31924b

diff --git a/solenv/bin/uilangfilter.xslt b/solenv/bin/uilangfilter.xslt
index f198886..c003210 100644
--- a/solenv/bin/uilangfilter.xslt
+++ b/solenv/bin/uilangfilter.xslt
@@ -26,7 +26,8 @@
 
 <xsl:template match="col">
   <xsl:text> </xsl:text>
-  <t r="stringlist" g="{../../../@id}" l="{count(preceding::col)}">
+  <xsl:variable name="groupid" select="../../../@id"/>
+  <t r="stringlist" g="{$groupid}" l="{count(preceding::col[../../../@id=$groupid])}">
   <xsl:copy-of select="text()" />
   </t><xsl:text>
</xsl:text>
 </xsl:template>


More information about the Libreoffice-commits mailing list