XML referencing
I want to take my xml file, and convert it into an html file via XSLT/stylesheets.
To keep the size of my xml file down, I'd like to have something like this:
<goal> <player playerid="2"/> <goaltime>10:12</goaltime> </goal> <teamroster> <player playerid="2"> <firstname>mike</firstname> <lastname>jones</lastname> </player> <player playerid="3"> <firstname>jim</firstname> <lastname>smith</lastname> </player> </teamroster>
Rather than this:
<goal> <player playerid="2"> <firstname>mike</firstname> <lastname>jones</lastname> </player> <goaltime>10:12</goaltime> </goal> <teamroster> <player playerid="2"> <firstname>mike</firstname> <lastname>jones</lastname> </player> <player playerid="3"> <firstname>jim</firstname> <lastname>smith</lastname> </player> </teamroster>
I'd prefer not to duplicate all the player information each time I need to describe someone.
I want my final HTML file however to have the player name display with each goal, but within the <goal> element I am only including the playerid attribute there, and hoping that I can extract the name information by referencing the <player> element within the teamroster element with the same playerid attribute.
Is this possible, and how would it be done?
Thanks
Started By dredesigns on Sep 6, 2005 at 1:01:35 PM |