Subject: Re: [xsl] check parent text present between child nodes From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Fri, 21 Apr 2006 22:56:45 +0530 |
I am having some trouble extracting meaning from your problem description. To the best of my ability, I think you need a concept something like this <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text" /> <xsl:template match="/element1"> <xsl:apply-templates select="newElement1" /> <xsl:apply-templates select="newElement2" /> </xsl:template> <xsl:template match="newElement1"> <xsl:value-of select="following-sibling::text()[following-sibling::newElement2]" /> </xsl:template> <xsl:template match="newElement2"> <xsl:value-of select="following-sibling::text()[following-sibling::newElement3]" /> </xsl:template> </xsl:stylesheet> Regards, Mukul On 4/21/06, Vivek Kumar-LN,Gurgaon <kvivek@xxxxxx> wrote: > Hi i am struck with this situation > > XML is like this > <element1>this is element1 text<newElement1>this is newElement1 > text</newElement1>element1 text continue<newElement2>this is newElement2 > text</newElement2><newElement3>this is newElement3 text</newElement3> > > now i want to find that whether newElement1 and newElement2 containing text > of element1 or not same with newElement2 and newElement3. > > > > please note that there will not be any new line character or any character > that seprate the text of element1
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] check parent text present bet, Vivek Kumar-LN,Gurga | Thread | RE: [xsl] check parent text present, Michael Kay |
RE: [xsl] Help Needed On Re-Organiz, Charles Gillanders | Date | Re: [xsl] check parent text present, Jon Gorman |
Month |