<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's not enough... I have an error which's making me crazy...</div>
<div> </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> </div>
<div>It seems to be about this part of my XSLs :</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><xsl:template name="process.change"><br><xsl:param name="CHG"></xsl:param><br>
<xsl:if test="$CHG='ADD'"><br><strong><xsl:attribute name="color">red</xsl:attribute> (Especially this line!)</strong><br></xsl:if><br><xsl:if test="$CHG='MOD'"><br>
<xsl:attribute name="color">orange</xsl:attribute><br></xsl:if><br></xsl:template></blockquote>
<div> </div>
<div>I don't understand what'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't understand how to resolve it in my case.</div>
<div>Someone could help me, please? </div>
<div>Thanks!!!</div>
<div>Damien G.<br> </div><br> </div></div>