[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Attribute repeated how to avoid them
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.
Regards, Joerg 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. alexek -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|