Subject: RE: [xsl] Table Building Problem From: Meltem Kogelbauer <meltem.kogelbauer@xxxxxxxxxxxxxxxxxx> Date: Wed, 25 Apr 2001 10:28:33 +0100 |
What kind of HTML output do you want to have? Meltem -----Original Message----- From: Jon Wynacht [mailto:jwynacht@xxxxxxxxx] Sent: 24 April 2001 6:11 PM To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] Table Building Problem Hi, I've run into some difficulty with creating a table based on two separate trees of xml in the same document. The first one looks like this: <ReportFields> <database> <table0> <record0> <FIELDNAME><![CDATA[Project]]></FIELDNAME> </record0> <record0> <FIELDNAME><![CDATA[Version]]></FIELDNAME> </record0> </table0> </database> </ReportFields> Note: There are more than just two record0/FIELDNAME values...there could be as many as 20. The next bit of xml looks like this: <Bug> <ProjectId>2042</ProjectId> <Id>11802</Id> <BugDesc>null</BugDesc> <Module> <Name>First Module</Name> </Module> <Version> <Name>First Version</Name> </Version> <Responsible> <FirstName>Jon</FirstName> <LastName>Wynacht</LastName> </Responsible> <Originator> <FirstName>Joseph</FirstName> <LastName>Stiehm</LastName> </Originator> <BugItem> <Name>Bug Count</Name> <ItemValue>10</ItemValue> <AvailableField> <ValueControl>FREE_FORM</ValueControl> </AvailableField> </BugItem> <BugItem> <Name>UglyBug?</Name> <ItemValue>Y</ItemValue> <AvailableField> <ValueControl>FREE_FORM</ValueControl> </AvailableField> </BugItem> <BugItem> <Name>Bug Color</Name> <ItemValue>1592</ItemValue> <AvailableField> <ValueControl>VALUE_LIST</ValueControl> </AvailableField> <ValueListElement> <ElementValue>Red</ElementValue> </ValueListElement> </BugItem> <BugItem> <Name>State</Name> <ItemValue>6544</ItemValue> <AvailableField> <ValueControl>VALUE_LIST</ValueControl> </AvailableField> <ValueListElement> <ElementValue>Dormant</ElementValue> </ValueListElement> </BugItem> </Bug> What I need to do is create the column headings from the first bit of xml and populate from the second bit of xml. Doing the first part is no problem, populating the table, however, is a different animal altogether. I've looked over xsl:key and thought that might be helpful, but I won't know the values to insert into the key until the xml is generated. Any ideas here? Help would definitely be appreciated and save me from banging my head against the wall any further. Thanks, Jon ------------------------------ Jon Wynacht Web Architect ISBU Hardware Engineering Cisco Systems 408-527-5261 jwynacht@xxxxxxxxx "When the sureties of the present are defined, the mind races with the possibilities of the future" 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 -> |
---|---|---|
[xsl] Table Building Problem, Jon Wynacht | Thread | RE: [xsl] Table Building Problem, Meltem Kogelbauer |
RE: [xsl] Using XPath expressions i, DPawson | Date | Re: [xsl] I mean self::* doesn't se, Jeni Tennison |
Month |