[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Help: Linking 2 XML documents

  • From: Warren Keane <Warren@o...>
  • To: "Xml-Dev Mailing List (E-mail)" <xml-dev@l...>
  • Date: Mon, 18 Jun 2001 14:14:21 -0700

linking two xml documents
Hello, 

I need some advice regarding how to display an XML document on a web site.
Here is the scenario:

I have two xml HTTP feeds which I retrieve from a partner web site via the
Microsoft.XMLHTTP object. The first feed is a subset of the second as in: 

FEED 1
======
  <?xml version="1.0" ?> 
  <News>
  <StoryDate>17 June, 2001</StoryDate> 
  <FullStory>
  <Commodity>S&P 500</Commodity> 
  <Group>indices</Group> 
  <BaseSymbol>SP</BaseSymbol> 
  <Story>Equities end near unchanged to end dismal week</Story> 
  </FullStory>
  <News>

FEED2
=====
  <?xml version="1.0" ?> 
- <News>
  <StoryDate>17 June, 2001</StoryDate> 
- <FullStory>
  <Commodity>S&P</Commodity> 
  <BaseSymbol>SP</BaseSymbol> 
  <Story>Equity futures ended around unchanged Friday as the market staged a
recovery through the morning session to pare back sharp opening losses on a
dismal week of trade. Early weakness stemmed from yet another stream of
corporate warnings. However, ideas that the Fed may be a little more
aggressive than the current 25 basis point rate cut that the market has
priced in for the June FOMC meeting stemmed the flow of losses.Opening
pressure had stemmed from earnings warnings out of Nortel and JDS Uniphase.
JDS Uniphase warned Thursday afternoon that it expected revenues to be
weaker amid continued contraction with in the telecoms sector. Adding to the
tech sectors glum, Nortel Networks announced that it expects a second
quarter operating loss of 48 cents a share sharply above street expectations
for a loss of just 6 cents a share. Nortel also announced it was to shed
some 10,000 jobs by this September. 
</Story> 
</FullStory>
<News>

What I need to do is display FEED1 with some kind of HTML link beside each
<story> where when a user selects the link the bigger <story> from FEED2 is
displayed. I have developed some simple XSL which transforms XML data into
HTML for another project but I'm not sure how to do this. It is compounded
by the fact that I could have many <Story> entries in a single feed. 

Any help or advice would be greatly appreciated.



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.