[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: questions.
Hi Mihir,
I think here you have a problem of unserstanding XSL. You don't modify the original XML-tree, you create a new one. This is important!! If you really want to "translate" <b> to <x>, you don't need to "delete" <b>, you only need to add <x>. An example stylesheet: <xsl:template match="a|c"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="b"> <x> <xsl:apply-templates/> <m></m> <n></n> </x> </xsl:template> Hope this helps, Joerg Mihir D. Gore wrote: but if want to replace node b with node z ie -- System Development VIRBUS AG Fon +49(0)341-979-7435 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
|