[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Remove Nodes But Keep Children
Hello Do you use XSLT ? There is a simple way of doing that with XSLT (not tested) : <xsl:template match="*|text()|@*[namespace-uri()='']"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="*[namespace-uri()='xfl_namespace']"> <xsl:apply-templates/> </xsl:template> I think behaviour by default for attributes with prefix xfl: is to do nothing. Here it uses priority of templates between * and *[namespace-uri()='xfl_namespace']. There are more expert peoples here on XSLT. Regards Nico http://debeissat.nicolas.free.fr/ 2009/2/22 David <david@s...> Appologies, forgot to link to the paste:
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
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
|