Subject: Re: [xsl] Node Concatenation From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx> Date: Tue, 5 Nov 2002 09:50:08 -0000 |
hi Juan, Try the code <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" omit-xml-declaration="yes" indent="yes"/> <xsl:template match="cat"> <xsl:for-each select="ancestor::cat/@name"> <xsl:value-of select="."/>- </xsl:for-each> <xsl:value-of select="@name"/><br/> <xsl:apply-templates/> </xsl:template> </xsl:stylesheet> hth vasu ----- Original Message ----- From: "Juan Carlos Gonzalez" <jcgonz@xxxxxxxxx> To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx> Sent: Monday, November 04, 2002 7:42 PM Subject: [xsl] Node Concatenation > Hi: > > I'm trying to accomplish the following in a dropdown > list box: > > Accesories - Batteries > Accesories - Cables > Accesories - FireWire Products > Accesories - FireWire Products - Hubs > Accesories - FireWire Products - Interface > Accesories - Headsets > Digital > Digital - Cameras > ...etc... > > This is my xml file: > > <root> > <cat id=1 name="Accesories"> > <cat id=2 name="Batteries"/> > <cat id=2 name="Cables"/> > <cat id=3 name="FireWire Products"> > <cat id=4 name="Hubs"/> > <cat id=5 name="Interface"/> > </cat> > <cat id=6 name="Headsets"/> > </cat> > <cat id=7 name="Digital"> > <cat id=8 name="Cameras"/> > </cat> > </root> > > Thanks > > > > __________________________________________________ > Do you Yahoo!? > HotJobs - Search new jobs daily now > http://hotjobs.yahoo.com/ > > 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:[xsl] About <xsl:param> and <xsl, Vasu Chakkera | Thread | [xsl] Parameter based transformatio, Damian Clark |
[xsl] From generic to specific matc, alexandre bord | Date | RE: [xsl] From generic to specific , Jarno . Elovirta |
Month |