[oXygen-user] [xsl] Transformation from XSL1 to XSL2 error
Andrew Welch
Fri Mar 28 06:56:51 CDT 2008
On 28/03/2008, Dam's <> 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/
More information about the oXygen-user
mailing list