Commit d916aa619f7643eb266298a2a6c0956e497e599f

Authored by Colomban Wendling
1 parent a24211e0
Exists in python

Cleanup

Showing 1 changed file with 7 additions and 23 deletions   Show diff stats
strip-frames.xsl
... ... @@ -51,12 +51,6 @@
51 51 <xsl:comment>Stripped empty &lt;text:p text:style-name="<xsl:value-of select="@text:style-name"/>"&gt;</xsl:comment>
52 52 </xsl:template>
53 53  
54   -<!--
55   -<xsl:template match="text:p[count(draw:frame/draw:text-box) > 0]">
56   --->
57   -<!--
58   -<xsl:template match="text:p[draw:frame/draw:text-box]">
59   --->
60 54 <xsl:template match="text:p[draw:frame]">
61 55 <xsl:comment>Removed outer text:p</xsl:comment>
62 56 <xsl:copy>
... ... @@ -96,23 +90,13 @@
96 90  
97 91 <xsl:template match="text:p/draw:frame[count(draw:text-box) = count(*)]">
98 92 <xsl:comment>draw:frame</xsl:comment>
99   -<!--
100   - <xsl:for-each select="./draw:text-box/*">
101   --->
102   - <xsl:comment>draw:text-box</xsl:comment>
103   - <xsl:element name="text:section">
104   - <xsl:attribute name="text:name">
105   - <xsl:value-of select="concat('PlaceholderSection', position())" />
106   - </xsl:attribute>
107   -
108   - <xsl:apply-templates select="./draw:text-box/*"/>
109   -<!--
110   - <xsl:apply-templates select="."/>
111   --->
112   - </xsl:element>
113   -<!--
114   - </xsl:for-each>
115   --->
  93 + <xsl:comment>draw:text-box</xsl:comment>
  94 + <xsl:element name="text:section">
  95 + <xsl:attribute name="text:name">
  96 + <xsl:value-of select="concat('PlaceholderSection', position())" />
  97 + </xsl:attribute>
  98 + <xsl:apply-templates select="./draw:text-box/*"/>
  99 + </xsl:element>
116 100 </xsl:template>
117 101 <!-- companion for the above, catches frames not handled because outside of
118 102 supported elements. Should never happen, but helps debugging of unexpected
... ...