You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by cd...@apache.org on 2006/10/03 14:39:29 UTC
svn commit: r452456 -
/lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Author: cdupoirieux
Date: Tue Oct 3 05:39:28 2006
New Revision: 452456
URL: http://svn.apache.org/viewvc?view=rev&rev=452456
Log:
Ordered List management.
I have change the key management. (But I think it was not working at all !)
Modified:
lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Modified: lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl?view=diff&rev=452456&r1=452455&r2=452456
==============================================================================
--- lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl (original)
+++ lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl Tue Oct 3 05:39:28 2006
@@ -73,8 +73,6 @@
<xsl:variable name="lineBreak"><xsl:text>
</xsl:text></xsl:variable>
-<xsl:key name="listTypes" match="text:list-style" use="@style:name"/>
-
<xsl:template match="/office:document-content">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@@ -430,8 +428,8 @@
*and* level of nesting
-->
<xsl:template match="text:list">
- <xsl:variable name="level" select="count(ancestor::text:list)+1"/>
-
+ <xsl:variable name="level" select="count(ancestor::text:list)+1"/>$
+
<!-- the list class is the @text:style-name of the outermost
<text:list> element -->
<xsl:variable name="listClass">
@@ -448,9 +446,7 @@
<!-- Now select the <text:list-level-style-foo> element at this
level of nesting for this list -->
- <xsl:variable name="node" select="key('listTypes',
- $listClass)/*[@text:level='$level']"/>
-
+ <xsl:variable name="node" select="//office:document-content/office:automatic-styles/text:list-style[@style:name=$listClass]/text:list-level-style-number[@text:level=$level]"/>
<!-- emit appropriate list type -->
<xsl:choose>
<xsl:when test="local-name($node)='list-level-style-number'">
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org