dredesigns
Programmer
I have hopefully a simple question.
Can I reference an id attribute (ie: playerid) anywhere when converting an XML file into a displayed XSLT page?
For example I have a this code somewhere in my XML file:
<player playerid="2"/>
and somehwere else in the xml file I will have (and a complete list of all players)
<player playerid="2">
<firstname>mike</firstname>
<lastname>jones</lastname>
</player>
Basically I don't want to have to repeat the "firstname" and "lastname" elements everytime I use player. I just want to call ALL my players elements once, and from then on only use the id's to link. I want to be able to link to that data via the playerid attribute, and be able to pull that data anywhere in the XML file.
Can anyone give me some feedback?
Thanks in advance.
Can I reference an id attribute (ie: playerid) anywhere when converting an XML file into a displayed XSLT page?
For example I have a this code somewhere in my XML file:
<player playerid="2"/>
and somehwere else in the xml file I will have (and a complete list of all players)
<player playerid="2">
<firstname>mike</firstname>
<lastname>jones</lastname>
</player>
Basically I don't want to have to repeat the "firstname" and "lastname" elements everytime I use player. I just want to call ALL my players elements once, and from then on only use the id's to link. I want to be able to link to that data via the playerid attribute, and be able to pull that data anywhere in the XML file.
Can anyone give me some feedback?
Thanks in advance.