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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML parameters and conditions 1

Status
Not open for further replies.

DBneophyte

Technical User
May 30, 2005
7
US
I have an XML document with the following layout:

Code:
<committees>

  <committee>
     <title>COMMITTEE 1</title>
  
     <member>
	    <name>Person A</name>
	    <org>Organization A</org>
	    <address>Address A</address>
	    <phone>Telephone: (123) 456-7890</phone>
	    <fax>Fax: 123) 456-7890</fax>
	    <email>E-mail:someemail@att.com</email>
    </member>	
  
     <member>
	    <name>Person B</name>
	    <org>Organization B</org>
	    <address>Address B</address>
	    <phone>Telephone: (123) 456-7890</phone>
	    <fax>Fax: 123) 456-7890</fax>
	    <email>E-mail:someemail2@att.com</email>
    </member>	
  </committee>

<committee>
     <title>COMMITTEE 2</title>
  
     <member>
	    <name>Person C</name>
	    <org>Organization C</org>
	    <address>Address C</address>
	    <phone>Telephone: (123) 456-7890</phone>
	    <fax>Fax: 123) 456-7890</fax>
	    <email>E-mail:someemail@att.com</email>
    </member>	
  
     <member>
	    <name>Person D</name>
	    <org>Organization D</org>
	    <address>Address D</address>
	    <phone>Telephone: (123) 456-7890</phone>
	    <fax>Fax: 123) 456-7890</fax>
	    <email>E-mail:someemail2@att.com</email>
    </member>	
  </committee>

</committees>

The root node is <committees>. There are currently 2 <committee> nodes under this. In each committee, there are members.

In my XSL file, I have written for-each statements to display each committee with its respective members. I have 2 problems I need help with:

1. These committees should all not show up at once. There are supposed to be links on an ASP page that when the user clicks on one of the committee's links, the XML page will only display that committee and not the entire list in the XML page. How do i do that?
2. This is related to the previous question. My XML file is going to be dynamic - a user can add committees and members. This would append the data to the XML file. Is there a way to generate like an ID or something to associate with each new committee? If we had something like that, clicking on the link would pass the corresponding ID to the XML file to pull up only that specific committee's details.

Thanks for any help you can provide on this...
 
Thanks for pointing me in the right direction...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top