Commit 9ad25793d9bfcbfa7c7a07e977bfe9ab4904a881

Authored by Colomban Wendling
1 parent cd757684
Exists in python

Improve the error message for unsupported draw:frame parents

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
strip-frames.xsl
... ... @@ -107,9 +107,9 @@
107 107 <!-- companion for the above, catches frames not handled because outside of
108 108 supported elements. Should never happen, but helps debugging of unexpected
109 109 cases. -->
110   -<xsl:template match="*[not(self::text:p)]/draw:frame[count(draw:text-box) = count(*)]">
111   - <xsl:message>Unsupported input with a draw:frame not inside a text:p but with draw:text-box children</xsl:message>
112   - <xsl:comment>Unsupported input with a draw:frame not inside a text:p but with draw:text-box children</xsl:comment>
  110 +<xsl:template match="*[not(self::text:p)][draw:frame[count(draw:text-box) = count(*)]]">
  111 + <xsl:message>Unsupported input with a draw:frame not inside a text:p (but a <xsl:value-of select="name()"/>) but with draw:text-box children</xsl:message>
  112 + <xsl:comment>Unsupported input with a draw:frame not inside a text:p (but a <xsl:value-of select="name()"/>) but with draw:text-box children</xsl:comment>
113 113 <xsl:call-template name="copy-and-recurse"/>
114 114 </xsl:template>
115 115  
... ...