Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Mapping In XSLT

Status
Not open for further replies.

twitherspoon

Technical User
Feb 20, 2003
4
US
I want to know how to conditional map a group over if and only if an element in the source equals a certain value. How would I do that? I have a small example below and for example I want to map this over to a similiar XML Doc, but only show the teams with 2 or more allstars.

<nba_teams>
<team>
<team_name>LA Lakers</team_name>
<members allstar=&quot;true&quot;>
<name>Shaq</name>
</members>
<members> allstar=&quot;true&quot;>
<name>Kobe</name>
</members>
</team>
<team>
<team_name>Dallas Mavericks</team_name>
<members allstar=&quot;true&quot;>
<name>Dirk</name>
</members>
<members> allstar=&quot;false&quot;>
<name>Steve</name>
</members>
</team>
</nba_teams>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top