Subject: RE: How to get the parent node in a recursive DOM object From: Kay Michael <Michael.Kay@xxxxxxx> Date: Fri, 21 Jul 2000 18:46:07 +0100 |
> the xml is like this > > I have the xml like > <root> computer > <cat > desktop > <cat > compaq > <cat> servers > <child> 370 <child> > <child> 220 series </child > > </cat> > </cat> > <cat> dell > <child> pentium < /child> > </cat> > </cat> > </root> It would be easier if you designed it differently, e.g. <root name="computer"> > <cat name="desktop"> > <cat name="compaq"> etc. But it can be done anyway, essentially it's: xsl:value-of select="normalize-space(../text())" Mike Kay > > the output i am expecting is . > > computer = gfld("computer " ) > desktop = insFld(computer,gfld("desktop","")); > compaq = insFld(dektop,gFld("compaq")); > servers= insFld(compaq,gFld("servers")) > 370 = insFld(servers,gFld("370")) > 220 series = insFld(servers,gFld("220 series")) > dell = insFld(desktop,gFld("dell")) etc.. > > > thanks > sivaji > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Global Variables (use of), Richard Lander | Thread | RE: How to get the parent node in a, Spychalski, Frank |
RE: Global Variables (use of), Kay Michael | Date | RE: XSL Variables and Stylesheet Ve, Kay Michael |
Month |