Re: [xsl] Replace an attribute

Subject: Re: [xsl] Replace an attribute
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Fri, 4 Jan 2008 10:39:35 +0100
Your input XML file is not well-formed, that is, it is not XML.
Attributes must look like attribute="..." or attribute='...'.

You can not use the replace() function to replace the name of an
attribute. The replace() function is only for string.

The standard way to replace the name of an attribute is to use the
identity template with additional templates.

See my article:
http://www.xmlplease.com/xsltidentity

Cheers,
Jesper Tverskov

Current Thread