473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

XML parameters and conditions

I have an XML document with the following layout:

<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:so*******@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:so********@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:so*******@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:so********@att.com</email>
</member>
</committee>

</committees>

The root node is <committees>. There are currently 2 <committeenodes
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...

May 9 '07 #1
1 1971
Shaldaman wrote:
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?
Depending on the framework you're using, you may be able to make the ASP
layer call XSLT with different stylesheet parameters. See the XSLT spec
for info about how to declare stylesheet parameters; once declared, they
behave like stylesheet variables whose value is set from outsite.
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?
Sure, in your application code that is editing the XML. There's nothing
built into XML or the standard XML APIs which will help you with
generating those unique values.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
May 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: news.verizon.net | last post by:
I have a form with 5 strings serving as search parameters. I collect them from the form, store them in local variables and call a stored procedure executing a select based on these parameters When...
2
by: dixie | last post by:
Can anyone tell me under what conditions you are likely to get this error? I have had it a few times in different situations lately and I thought I had it pinned down to trying to use an SQL string...
14
by: Julia | last post by:
Hi, When writing class library do you validate ALL incoming parameters? Is this a good approach,to valid them ALL!!!,and throw exceptions? I realize that if I am not validating them,than my...
7
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
5
by: ric_deez | last post by:
Hi there, I would like to create a simple search form to allow users to search for a job number based on a number of parameters. I think I understand how to use parameteres associated with Stored...
6
by: jim | last post by:
Is anyone able to provide me with a link to useful documentation or just outright explain to me how to set query parameters dynamically? I'm really new to Access and databases in general but I...
10
by: Matthew Wilson | last post by:
Lately, I've been writing functions like this: def f(a, b): assert a in assert b in The point is that I'm checking the type and the values of the parameters.
10
by: rh0dium | last post by:
Hi all, Below is a basic threading program. The basic I idea is that I have a function which needs to be run using a queue of data. Early on I specified my function needed to only accept basic...
16
by: xz | last post by:
For example, I have a Class Date with internal variable year, month and day. In Java I would write: class Date{ int year; int month; int day; Date(int year, int month, int day) { this.year...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.