<div>Hi,</div>
<div>I need to transform some XSL1 stylesheets to XSL 2 to use them with Saxon 8.7.3. I changed the version in the declaration and some little other things, but, obviously, it&#39;s not enough... I have an error which&#39;s making&nbsp;me crazy...</div>

<div>&nbsp;</div>
<div>
<div class="Axp-SEVERE">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div class="Axp-SEVERE">An attribute node (color) cannot be created after the children of the containing element</div>
<div class="Axp-SEVERE">The transformation failed due to an XML parsing or transformation error.</div></div></blockquote>
<div>&nbsp;</div>
<div>It seems to be about this part of my XSLs :</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&lt;xsl:template name=&quot;process.change&quot;&gt;<br>&lt;xsl:param name=&quot;CHG&quot;&gt;&lt;/xsl:param&gt;<br>
&lt;xsl:if test=&quot;$CHG=&#39;ADD&#39;&quot;&gt;<br><strong>&lt;xsl:attribute name=&quot;color&quot;&gt;red&lt;/xsl:attribute&gt; (Especially this line!)</strong><br>&lt;/xsl:if&gt;<br>&lt;xsl:if test=&quot;$CHG=&#39;MOD&#39;&quot;&gt;<br>
&lt;xsl:attribute name=&quot;color&quot;&gt;orange&lt;/xsl:attribute&gt;<br>&lt;/xsl:if&gt;<br>&lt;/xsl:template&gt;</blockquote>
<div>&nbsp;</div>
<div>I don&#39;t understand what&#39;s the problem with color attribute node...</div>
<div>I searched again and again with google... Some users have the same error but I don&#39;t understand how to resolve it in my case.</div>
<div>Someone could help me, please? </div>
<div>Thanks!!!</div>
<div>Damien G.<br>&nbsp;</div><br>&nbsp;</div></div>