[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to get the parent node in a recursive DOM object
> 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
|
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
|