P
Patrick
Hi All.
I'm newish to xml/xsl so forgive me if this has been discussed before. I
tried to google the info, but I'm not sure about terminology. So I am
looking for input on a solution or a link to a previous thread. Let me
see now if I can set up my question correctly.
Here is an example of my xml;
<active_wfs>
<deployment>
<moorname>C10AA</moorname>
<moortype>Surface Buoy with ADCP</moortype>
<lat>27 07.475' N</lat>
<lon>82 52.525' W</lon>
<start>1400 September 14th, 1998</start>
<end>1200 November 24th, 1998</end>
</deployment>
<deployment>
<moorname>C10AB</moorname>
<moortype>Surface Buoy with ADCP</moortype>
<lat>27 07.487' N</lat>
<lon>82 52.527' W</lon>
<start>1600 November 24th, 1998</start>
<end>0800 March 13th, 1999</end>
</deployment>
Now what I am trying to do. I am building a web based form in which a
user will select a specific mooring. In the example C10AA and C10AB are
available. In the working version I will have approximately 75
deployments to choose from. Ideally the form will pass the value of
<moorname> to the xsl which will in turn display just the data from that
section of the xml on a web page. Can this be done using xml/xsl. Right
now I can display the entire xml document, but not individual parts. I
guess what I want to do is something like;
if $passed_value == <moorname> then write values to end of </moorname>
I hope I did okay in explaining myself. Any help would be appreciated.
Regards,
Patrick
--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334
The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld
I'm newish to xml/xsl so forgive me if this has been discussed before. I
tried to google the info, but I'm not sure about terminology. So I am
looking for input on a solution or a link to a previous thread. Let me
see now if I can set up my question correctly.
Here is an example of my xml;
<active_wfs>
<deployment>
<moorname>C10AA</moorname>
<moortype>Surface Buoy with ADCP</moortype>
<lat>27 07.475' N</lat>
<lon>82 52.525' W</lon>
<start>1400 September 14th, 1998</start>
<end>1200 November 24th, 1998</end>
</deployment>
<deployment>
<moorname>C10AB</moorname>
<moortype>Surface Buoy with ADCP</moortype>
<lat>27 07.487' N</lat>
<lon>82 52.527' W</lon>
<start>1600 November 24th, 1998</start>
<end>0800 March 13th, 1999</end>
</deployment>
Now what I am trying to do. I am building a web based form in which a
user will select a specific mooring. In the example C10AA and C10AB are
available. In the working version I will have approximately 75
deployments to choose from. Ideally the form will pass the value of
<moorname> to the xsl which will in turn display just the data from that
section of the xml on a web page. Can this be done using xml/xsl. Right
now I can display the entire xml document, but not individual parts. I
guess what I want to do is something like;
if $passed_value == <moorname> then write values to end of </moorname>
I hope I did okay in explaining myself. Any help would be appreciated.
Regards,
Patrick
--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334
The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld