[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: move tag up to level
On 9/28/06, alex v. <alex.vett@xxxxxxxxx> wrote:
Hi, I have to transform a structure like this: If your input really is just like that, then this will do it: <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="a"> <xsl:apply-templates/> </xsl:template> <xsl:template match="a/text()"> <a><xsl:value-of select="."/></a> </xsl:template> </xsl:stylesheet> cheers andrew
|
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
|