關於我自己

我的相片
New York, New York, United States
我叫江奕賢啦

2004年3月7日

HTML to combine RSS and XSL


<HTML>

  <HEAD>

    <TITLE>Simple demo of Microsoft XSL Processor</TITLE>

  </HEAD>

  <XML id="source1" src="http://tw.news.yahoo.com/rss/technology"></XML>

  <XML id="source2" src="http://news.com.com/2547-1_3-0-20.xml"></XML>

  <XML id="source3" src="http://www.nws.noaa.gov/alerts/ny.rss"></XML>



  <XML id="style" src="C:\Documents and Settings\Owner\Desktop\technology.xsl"></XML>

 

  <SCRIPT FOR="window" EVENT="onload">

    tech.innerHTML = source1.transformNode(style.XMLDocument);

    cnet.innerHTML = source2.transformNode(style.XMLDocument);

    weather.innerHTML = source3.transformNode(style.XMLDocument);

  </SCRIPT>

  <BODY>

    <P STYLE="font-size:10pt; font-family:Verdana; color:gray">

      <B>This demo shows the use of data islands for loading XML source and

      XSL style sheets and inserting the transformed result into the Web page.</B>

    </P>

    <DIV id="tech"></DIV>

    <DIV id="cnet"></DIV>

    <DIV id="weather"></DIV>

  </BODY>

</HTML>


沒有留言: