In this tutorial you'll convert the existing specials page (an HTML page) to 
an XSLT page so that you can display XML data on the page. You'll also 
apply styles to the XML data so that the appearance of the data is in 
keeping with the rest of the page.
If you're comfortable working with XML, XSLT, and client side 
transformations, you can skip to 
 Convert an HTML page to an XSLT 
page  on page 179
. If you are new to any of these concepts, read the next 
sections.
Learn about using XML and XSL 
with web pages
Extensible Markup Language (XML) is a language that lets you structure 
information. Like HTML, XML lets you structure your information using 
tags, but XML tags are not predefined as HTML tags are. Instead, XML 
lets you create tags that best define your data structure. Tags are nested 
within others to create a schema of parent and child tags. Like most 
HTML tags, all tags in an XML schema have an opening and closing tag.
The following example illustrates the basic structure of an XML file:
03/01/2004
Displaying XML Data with Macromedia Dreamweaver</</font></pre></span>
<span name = "INTRA" style='top:771px; left:391px' class="ft4"><pre><font face='Arial'>title></font></pre></span>
<span name = "INTRA" style='top:788px; left:409px' class="ft4"><pre><font face='Arial'><author>Charles Brown</author></font></pre></span>
<span name = "INTRA" style='top:805px; left:391px' class="ft4"><pre><font face='Arial'></book></font></pre></span>
<span name = "INTRA" style='top:822px; left:391px' class="ft4"><pre><font face='Arial'><book bookid= 2 ></font></pre></span>
<span name = "INTRA" style='top:839px; left:409px' class="ft4"><pre><font face='Arial'><pubdate>04/08/2004</pubdate></font></pre></span>
<span name = "INTRA" style='top:856px; left:409px' class="ft4"><pre><font face='Arial'><title>Understanding XML
John Thompson
In this example, each parent 
 tag contains three child tags: 
, 
</font></pre></span>
<span name = "INTRA" style='top:954px; left:511px' class="ft1"><pre><font face='Arial'>, and </font></pre></span>
<span name = "INTRA" style='top:956px; left:548px' class="ft4"><pre><font face='Arial'><author></font></pre></span>
<span name = "INTRA" style='top:954px; left:614px' class="ft1"><pre><font face='Arial'>. But each </font></pre></span>
<span name = "INTRA" style='top:956px; left:684px' class="ft4"><pre><font face='Arial'><book></font></pre></span>
<span name = "INTRA" style='top:954px; left:733px' class="ft1"><pre><font face='Arial'> tag is also a child </font></pre></span>
<span name = "INTRA" style='top:976px; left:372px' class="ft1"><pre><font face='Arial'>tag of the </font></pre></span>
<span name = "INTRA" style='top:979px; left:438px' class="ft4"><pre><font face='Arial'><mybooks></font></pre></span>
<span name = "INTRA" style='top:976px; left:511px' class="ft1"><pre><font face='Arial'> tag, which is one level higher in the schema. You can </font></pre></span>
<span name = "INTRA" style='top:998px; left:372px' class="ft1"><pre><font face='Arial'>name and structure XML tags in any way you like, provided that you nest </font></pre></span>
<span name = "INTRA" style='top:1020px; left:372px' class="ft1"><pre><font face='Arial'>tags accordingly within others, and assign each opening tag a </font></pre></span>
<span name = "INTRA" style='top:1042px; left:372px' class="ft1"><pre><font face='Arial'>corresponding closing tag.</font></pre></span>
<span name = "INTRA" style='top:1141px; left:158px' class="ft0"><pre><font face='Arial'>176 Tutorial: Displaying XML Data</font></pre></span>
<span class='nav' style='left: 10px; top: 1010px'><pre><html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

dreamweaver web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved