xtremeLogic
Programmer
Hi,
I have an xml that stores a list of reports. Then, I have many other xml files that store the details of each report. I have created two xsl files to transform the xml information into html. The first xsl file for outputting the original list, and the second for showing the details of the selected list. All of the transformations are done on the client side (IE) using Javascript.
Now, what I would like to do is to output the details of every report in the parent xml file on one page rather than having a separate page showing the details of the selected report. I was thinking of basically running a loop on the report details xml files (the child list) using javascript on the client side to apply the transformations. I'm not sure how to do this or if this is even the right way to do it. Any help would be greatly appreciated. Thanks.
Here is the structure of my parent xml file.
Currently, the file property stores the name of the xml file that provides the details for that report. As mentioned earlier, I have an xsl file that transforms the xml report details information. However, this is only done based on the report selection from the parent list. I would like to output all of the report details on page using client side transformation. Would I be doing a loop in Javascript or create another xsl file. I'm not sure how to implement this. Once again, thanks for any help.
I have an xml that stores a list of reports. Then, I have many other xml files that store the details of each report. I have created two xsl files to transform the xml information into html. The first xsl file for outputting the original list, and the second for showing the details of the selected list. All of the transformations are done on the client side (IE) using Javascript.
Now, what I would like to do is to output the details of every report in the parent xml file on one page rather than having a separate page showing the details of the selected report. I was thinking of basically running a loop on the report details xml files (the child list) using javascript on the client side to apply the transformations. I'm not sure how to do this or if this is even the right way to do it. Any help would be greatly appreciated. Thanks.
Here is the structure of my parent xml file.
Code:
<Reports>
<Report computer="Computer 1" ip="0.0.0.0" date="2004-01-08 11:43:52" ldate="02/02/2004 11:43 AM" grade="1" file="Computer Details 1" />
<Report computer="Computer 7" ip="0.0.0.0" date="2004-01-08 11:43:52" ldate="02/02/2004 11:43 AM" grade="1" file="Computer Details 7" />
<Report computer="Computer 22" ip="0.0.0.0" date="2004-01-08 11:43:52" ldate="02/02/2004 11:43 AM" grade="1" file="Computer Details 22" />
</Reports>
Currently, the file property stores the name of the xml file that provides the details for that report. As mentioned earlier, I have an xsl file that transforms the xml report details information. However, this is only done based on the report selection from the parent list. I would like to output all of the report details on page using client side transformation. Would I be doing a loop in Javascript or create another xsl file. I'm not sure how to implement this. Once again, thanks for any help.