Subject: Re: [xsl] questions. From: Jörg Heinicke <joerg.heinicke@xxxxxx> Date: Thu, 04 Oct 2001 15:39:33 +0200 |
<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>
but if want to replace node b with node z ie
<a> <b> <c></c> </b> </a>
is changed to <a> <x> <c></c> <m></m> <n></n> <x> </a>
I can achive this by simply deleting node b and its chilren and adding node x. Is there any other way around this?
mihir -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Manu KY Sent: Thursday, October 04, 2001 2:09 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] questions.
Hi, write xsl:template match = "b"
Manu
resultanthi, I have a xml file in the form
<a> <b> <c></c> </b> </a>
I want to add two more children to node b say m and n so that the
xml looks like this.....
<a> <b> <c></c> <m></m> <n></n> </b> </a>
BUT in the xsl file in want to specify the path with respect to node b. How do i do it? mihir
System Development VIRBUS AG Fon +49(0)341-979-7435 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] questions., Mihir D. Gore | Thread | [xsl] Giving values to xsl:variable, Ofer Kalisky |
Re: [xsl] "*|@*|text()" vs. "node(), David Carlisle | Date | Re: [xsl] "*|@*|text()" vs. "node(), Francis Norton |
Month |