xsl-list
[Top] [All Lists]

Re: [xsl] Replace an attribute

2008-01-04 02:40:17
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>