[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: Attribute Names of the longest branch (Creating CSV data)
Subject: RE: Attribute Names of the longest branch (Creating CSV data) From: "Steve Brown" <prospect@xxxxxxxxxxx> Date: Tue, 11 Apr 2000 09:06:37 +1000 |
To make the data I used the following templates (among others). If you can see any holes/problems please tell me: <xsl:template match="@*"><xsl:value-of select="."/>,</xsl:template> <xsl:template match="*"> <xsl:param name="sofar"></xsl:param> <xsl:param name="concat"><xsl:value-of select="$sofar"/><xsl:apply-templates select="@*" /></xsl:param> <xsl:apply-templates><xsl:with-param name="sofar" select="$concat"/></xsl:apply-templates> <xsl:if test="count(*) = 0"> <xsl:value-of select="substring(string($concat),0,string-length(string($concat)))"/><xsl:t ext> </xsl:text> </xsl:if> </xsl:template> Steve. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Selva, Francis Sent: Tuesday, 11 April 2000 7:35 To: 'xsl-list@xxxxxxxxxxxxxxxx' Subject: RE: Attribute Names of the longest branch (Creating CSV data) Steve, How did you display the data in that format?.Cause I have some stuff similar to this. Thanx, Francis > <books> > <book bookname="blinky bill"/> > <book bookname="superman"> > <author name="steve" age="24"/> > </book> > <book bookname="snugglepot"> > <author name="frank" age="60"/> > </book> > </books> > > I want to get the output: > > bookname,name,age > blinky bill > superman,steve,24 > snugglepot,frank,60 > > > Thanks, > > Steve 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: Attribute Names of the longest , Selva, Francis | Thread | RE: Attribute Names of the longest , Selva, Francis |
RE: Attribute Names of the longest , Selva, Francis | Date | How can I add the <xsl:eval> withi, Moazzam Ahmed |
Month |