Re: [xsl] Attribute repeated how to avoid them

Subject: Re: [xsl] Attribute repeated how to avoid them
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 07 Aug 2002 13:51:13 +0200
This error is not given by the XSLT processor, but the parser. You don't have a well-formed XML if you have duplicate attributes.



alex ek wrote:
I have a little problem .
I have written a stylesheet which is working (though it has
problem as i mentioned).the problem is that if any element in the
input document has any attribute repeated like in some documents
it is like
<a href="url" target="" target="">
then the xslt processor is giving duplicate attribute error.
I am not taking any attribute in output except those which are
required like in <xsl:template match ="a"> i am taking only href
attribute and in img only src and so on.
I am not concerned with alignment or any thing.
so is there any way to tell the processor that it should
not look for other attribute or may be just avoid duplicate
attribute and proceed.


System Development
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409

XSL-List info and archive:

Current Thread