[Home] [By Thread] [By Date] [Recent Entries]
Something like below perhaps?
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="node() | @*"> <xsl:copy> <xsl:apply-templates select="node() | @*"/> </xsl:copy> </xsl:template> <xsl:template match="Attribute"> <OtherAttributes> <xsl:copy> <xsl:apply-templates select="node() | @*"/> </xsl:copy> <xsl:apply-templates select="following-sibling::*[1][self::Attribute]" mode="att"/> </OtherAttributes> </xsl:template> <xsl:template match="Attribute[preceding-sibling::*[1][self::Attribute]]"/> <xsl:template match="Attribute" mode="att"> <xsl:copy> <xsl:apply-templates select="node() | @*"/> </xsl:copy> <xsl:apply-templates select="following-sibling::*[1][self::Attribute]" mode="att"/> </xsl:template> <xsl:template match="node() | @*" mode="att">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template></xsl:stylesheet> Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Khorasani, Houman wrote: Hi,
|

Cart



