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:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old November 18th, 2003, 05:05 AM
bking82 bking82 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 bking82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry comparing 2 strings from different elements

Doing an assignment. Tearing my hair out.
I'm kinda new to XML. I have a bookshop system as shown below:

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="Bookstore.xsl"?>
<Bookstore>
<Book>
<Author>Mohandas K. Gandhi</Author>
<Title>An Autobiography, Or, The Story of My Experiments with Truth</Title>
<Publisher>Penguin</Publisher>
<ISBN>0140066268</ISBN>
<Price Currency="GBP">7.19</Price>
</Book>
<Book>
<Editor>Carl G. Jung</Editor>
<Contributors>
<Author>Carl G. Jung</Author>
<Author>Joseph L. Henderson</Author>
<Author>M.-L. von Franz</Author>
<Author>Aniela Affé</Author>
<Author>Jolande Jacobi</Author>
</Contributors>
<Title>Man and His Symbols</Title>
<Publisher>Picador</Publisher>
<ISBN>0330253212</ISBN>
<Price Currency="EUR">16.30</Price>
</Book>
<Book>
<Author>Donald E. Knuth</Author>
<Title>The Art of Computer Programming</Title>
<Volume>1</Volume>
<Edition>3rd</Edition>
<Publisher>Addison-Wesley</Publisher>
<ISBN>0201898834</ISBN>
<Price Currency="USD">54.99</Price>
</Book>
</Bookstore>

I want the name of the editor Carl G. Jung to appear only once.
How can I compare the values of Editor and Contributors?

Last edited by bking82 : November 18th, 2003 at 05:37 AM.

Reply With Quote
  #2  
Old November 18th, 2003, 12:49 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,299 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 54 m 17 sec
Reputation Power: 760
Welcome to the forums, please use &#91code][/code] tags around code so it is easier to read.

So you've listed the editor, and then you list the contributors, but you don't want to list the contributor if the name matches that of the editor?

Show your XSL.
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > comparing 2 strings from different elements


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 3 hosted by Hostway