To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=88162
------- Additional comments from [email protected] Tue May 26 07:20:28 +0000 2009 ------- According to "XSL Transformations (XSLT) Version 1.0" by W3C [1], texts in the source file including whitespaces will be copied by the built-in template rules to the destination file if the text nodes are evaluated. === cited === 5.8 Built-in Template Rules There is a built-in template rule to allow recursive processing to continue in the absence of a successful pattern match by an explicit template rule in the stylesheet. ...(omitted)... There is also a built-in template rule for text and attribute nodes that copies text through: <xsl:template match="text()|@*"> <xsl:value-of select="."/> </xsl:template> ============= What we have learned here is that to prevent unnecessary copy of whitespaces, it would be better if we explicitly specify what templates should be evaluated. <xsl:apply-templates/> does not limit templates. Thus, all templates including build-in ones will be evaluated and consequently, unnecessary whitespaces will be copied from source to destination by the template with match="text()". <xsl:apply-templates select = "node|prop|value"/> does explicitly specify what templates should be evaluated. Therefore, no build-in template will be evaluated, or no unnecessary whitespaces will be copied. This fashion might be applied to other existing stylesheets in the module. [1] http://www.w3.org/TR/xslt#built-in-rule --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
