Subject: RE: Attribute Names of the longest branch (Creating CSV data) From: "Moazzam Ahmed" <moazzam@xxxxxxxxx> Date: Fri, 7 Apr 2000 10:36:43 -0500 |
Hi Steve, I was trying to figure the FIRST part out. Are you getting ALL the attribute VALUES with a "@*"? I can get that to work. Do you think you could send me your XSL? Really appreciate it. Thanks, Moazzam moazzam@xxxxxxxxx -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Steve Brown Sent: Friday, April 07, 2000 1:59 AM To: xsl-list@xxxxxxxxxxxxxxxx Subject: Attribute Names of the longest branch (Creating CSV data) Hi, I am currently trying to convert tiered Xml into a CSV file. The number of elements/attributes and depth of the data is not known at runtime. I can get the comma seperated data appearing fairly well currently but am having trouble getting the column names. eg for the data <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 I am getting the data ok, but the header line is tougher as you need to know the longest "branch" in the data to get all of the possible column names. Any ideas? (remember that I will not know the shape, depth , attribute or element names at runtime) 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 -> |
---|---|---|
Attribute Names of the longest bran, Steve Brown | Thread | conditional XSL to XSL, Jeff Lansing |
RE: if question, Selva, Francis | Date | Re: XSL-List admin query, XSL-List Owner |
Month |