On 28/03/2008, Dam's <[EMAIL PROTECTED]> wrote:
> > <xsl:template name="process.change">
> > <xsl:param name="CHG"></xsl:param>
> > <xsl:if test="$CHG='ADD'">
> > <xsl:attribute name="color">red</xsl:attribute>

The problem will be that the template is being called after you've
added a child node to the containing element - so check where this
template is being called.

Adding attributes using a named template like this is always a bad
idea - post the template with the calling code and it's likely it can
be re-written to use apply-templates.

I've just noticed you've asked this on the oxygen list - you should
consider using the xsl-list for xsl specific questions:

http://www.mulberrytech.com/xsl/xsl-list/


cheers
-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to