codice:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:template match="/">
		<xsl:text>Elenco film &#x0a;</xsl:text>
		<xsl:text>[animazione] &#x0a;</xsl:text>
		<xsl:for-each select="document/body/p">
			<xsl:variable name="produttore">
				<xsl:if test="r[2]/rPr/stile/@attr = 'parentesi'">
					<xsl:value-of select="r[2]/t"/>
				</xsl:if>
			</xsl:variable>
			<xsl:choose>
				<xsl:when test="$produttore != ''">
					<xsl:value-of select="concat(r[1]/t,'(',$produttore,')')"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="r[1]/t"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<xsl:text>&#x0a;[/animazione]</xsl:text>
	</xsl:template>


</xsl:stylesheet>
per andare a capo ho usato & # x0a; (scritto tutto attaccato )
se vuoi togliere gli a capo basta che togli gli &#x0a;