Creating XSLT pages

Creating XSLT pages

You can create XSLT pages that let you display XML data on web pages. You can create either an entire XSLT page -- an XSLT page that contains a <body> tag and a <head> tag -- or you can create an XSLT fragment. When you create an XSLT fragment, you create an independent file that contains no body or head tag -- a simple piece of code that is later inserted in a dynamic page.

To create an XSLT page:

  1. Select File > New
  2. On the General tab of the New Document dialog box, select Basic page from the Category column and do one of the following:
    • Select XSLT (Entire page) from the Basics page column to create an entire XSLT page.
    • Select XSLT (Fragment) from the Basics page column to create an XSLT fragment.
  3. Click Create.

    The Locate XML Source dialog box appears, asking you to attach an XML data source.

  4. Do one of the following:
    • Select Attach a local file, click the Browse button, browse to a local XML file on your computer, and click OK.
    • Select Attach a remote file, enter the URL of an XML file on the Internet (such as one coming from an RSS feed), and click OK.

    Dreamweaver populates the Bindings panel with the schema of your XML data source.

    This is a picture of the feature being described.

    The following table provides an explanation of the various elements in the schema that might appear:

    Element

    Represents

    Details

    <>

    Required nonrepeating XML element

    An element that appears exactly once within its parent node

    <>+

    Repeating XML element

    An element that appears one or more times within its parent node

    <>?

    Optional XML element

    An element that appears zero or more times within its parent node

    Element node in boldface type

    Current context element

    Normally the repeating element when the insertion point is inside a repeat region

    @

    XML attribute

     

  5. Save your new page (File > Save) with the .xsl or .xslt extension (.xsl is the default).

Related topics

  • Displaying XML data in XSLT pages
  • About using XML and XSL with web pages
  • Performing XSL transformations on the server
  • Performing XSL transformations on the client


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Defining Sources of Dynamic Content
Developing Applications Rapidly
 
ASPTreeView.com
 
Evaluation has ГХТexpired.
Info...