Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Lesson 18. Exporting and Importing Struc... > Viewing the XML file in a browser

Viewing the XML file in a browser

XML is a powerful tool for information users. In a large document, the ability to locate key pieces of information without having to read through the entire document saves time and provides organized information quickly to those who need it. These users might be restaurant managers, airline schedulers, product catalog ordering people, and ordinary users of the World Wide Web searching for information.

1.
Launch your Internet browser.

2.
From the L18XML folder within the Lesson18 folder, open your valid structured document for viewing by:

  • (Windows) dragging CIBColorFinal.xml onto an Internet browser window. With Microsoft® Internet Explorer® 5.5 or greater you will get immediate and pleasing results. The pages are transformed into Web-friendly HTML through a process called XSLT.

  • (Mac OS) The Macintosh requires an external XSLT application, written either in Java, or PERL or other scripting language. For this lesson, a free open source Java application has been downloaded from The Apache Software Foundation (www.apache.org). The XML file has been converted into HTML as CIBColorFinal.html.

    Drag CIBColorFinal.html onto an Internet browser window. You will get immediate and pleasing results.

  • (Unix) If you get uneven or unsatisfactory results with the XML file, use the HTML version of the file included in your Lesson 18 folder, CIBColorFinal.html. It has been made with a free open source Java application, that was downloaded from The Apache Software Foundation (www.apache.org). Drag CIBColorFinal.xml (or .html) onto an Internet browser window.

    Note

    You can also type the directory path name into the browser’s URL navigation box.

    The computer has used its XSLT coding to translate the XML file with the use of the key template applications: Chapter.xsl (Extensible Stylesheet Language) and Chapter.css (Cascading Style Sheets) and Chapter.dtd (Document Type Definition) in your lesson folder.

3.
Notice similarities and differences between CIBColorFinal.fm and CIBColorFinal.xml:

  • A linked index has been added to the end of the XML file in your browser. Click the page numbers to go to an indexed topic.

  • The interactive SVG graphic “Image resolutions at 72 ppi and 300 ppi” has two circles of magnification that can be moved to display authentic magnified images.

  • The five Chapter Topics formatted in blue are linked and will take you to the appropriate place in the document; the browser’s Back button returns you to the list of topics.

  • The table looks similar in both the FrameMaker and XML files.

  • The headings in FrameMaker are side-heads, whereas in the XML-into-HTML version in the browser, the headings extend across all columns over the paragraph text.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial