XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 23rd, 2004, 03:09 PM
cadmus75 cadmus75 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 7 cadmus75 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 45 sec
Reputation Power: 0
Send a message via Yahoo to cadmus75
Question xsl:if comparison help needed

I need to check if one tag matches another to produce the results required, but I don't think I'm doign it right. Any suggestions?

<xml>
<ContactTypeList VALUE="Primary" NAME="Primary"/>
<ContactTypeList VALUE="Billing" NAME="Billing"/>

<Contact NAME="J Smith" TYPE="Billing"/>
<Contact NAME="J Doe" TYPE="Billing"/>
<Contact NAME="J Frankestein" TYPE="Primary"/>
</xml>

<xsl>
<xsl:for-each select="Contact">
...
<select name="contactType">
<xsl:for-each select="ContactTypeList">
<option name="@Name" value="@VALUE">
<xsl:if test="@VALUE = /Contact/@TYPE">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
</option>
</xsl:for-each>
</select>
...
</xsl:for-each>
</xsl>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > xsl:if comparison help needed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT