618543
674
Zoom out
Zoom in
Vorherige Seite
1/694
Nächste Seite
To the top
browser can display the transformed data. Deploying pages for server-side transformations, however, is somewhat complex, and requires that you
have access to an application server.
When working with server-side XSL transformations, you can use Dreamweaver to create XSLT pages that generate full HTML documents (entire
XSLT pages), or XSLT fragments that generate a portion of an HTML document. An entire XSLT page is similar to a regular HTML page. It
contains a <body> tag and a <head> tag, and lets you display a combination of HTML and XML data on the page. An XSLT fragment is a piece of
code, used by a separate document, that displays formatted XML data. Unlike an entire XSLT page, it is an independent file that contains no
<body> or <head> tag. If you want to display XML data on a page of its own, you would create an entire XSLT page, and bind your XML data to it.
If, on the other hand, you wanted to display XML data in a particular section of an existing dynamic page—for example, a dynamic home page for
a sporting goods store, with sports scores from an RSS feed displayed on one side of the page—you would create an XSLT fragment and insert a
reference to it in the dynamic page. Creating XSLT fragments, and using them in conjunction with other dynamic pages to display XML data, is the
more common scenario.
The first step in creating these types of pages is to create the XSLT fragment. It is a separate file that contains the layout, formatting, and so on of
the XML data that you eventually want to display in the dynamic page. Once you create the XSLT fragment, you insert a reference to it in your
dynamic page (for example, a PHP or ColdFusion page). The inserted reference to the fragment works much like an Server Side Include (SSI) —
the formatted XML data (the fragment) resides in a separate file, while in Design view, a placeholder for the fragment appears on the dynamic
page itself. When a browser requests the dynamic page containing the reference to the fragment, the server processes the included instruction
and creates a new document in which the formatted contents of the fragment appear instead of the placeholder.
1. Browser requests dynamic page 2. Web server
finds page and passes it to application server 3. Application server scans page for instructions and gets XSLT fragment 4. Application server
performs transformation (reads XSLT fragment, gets and formats xml data) 5. Application server inserts transformed fragment into page and
passes it back to the web server 6. Web server sends finished page to browser
You use the XSL Transformation server behavior to insert the reference to an XSLT fragment in a dynamic page. When you insert the reference,
Dreamweaver generates an includes/MM_XSLTransform/ folder in the site’s root folder that contains a runtime library file. The application server
uses the functions defined in this file when transforming the specified XML data. The file is responsible for fetching the XML data and XSLT
fragments, performing the XSL transformation, and outputting the results on the web page.
The file containing the XSLT fragment, the XML file containing your data, and the generated run-time library file must all be on the server for your
page to display correctly. (If you select a remote XML file as your data source—one from an RSS feed, for example—that file must of course
reside somewhere else on the Internet.)
You can also use Dreamweaver to create entire XSLT pages for use with server-side transformations. An entire XSLT page works in exactly the
same way as an XSLT fragment, only when you insert the reference to the entire XSLT page using the XSL Transformation server behavior, you
are inserting the full contents of an HTML page. Thus, the dynamic page (the .cfm, .php, or .asp page that acts as the container page) must be
cleared of all HTML before you insert the reference.
Dreamweaver supports XSL transformations for ColdFusion, ASP, and PHP pages.
Note: Your server must be correctly configured to perform server-side transformations. For more information, contact your server administrator.
Client-side XSL transformations
You can perform XSL transformations on the client without the use of an application server. You can use Dreamweaver to create an entire XSLT
page that will do this; however, client-side transformations require manipulation of the XML file that contains the data you want to display.
Additionally, client-side transformations will only work in modern browsers (Internet Explorer 6, Netscape 8, Mozilla 1.8, and Firefox 1.0.2). For
more information on browsers that do and don’t support XSL transformations, see www.w3schools.com/xsl/xsl_browsers.asp.
First, create an entire XSLT page and attach an XML data source. (Dreamweaver prompts you to attach the data source when you create the new
page.) You can create an XSLT page from scratch, or you can convert an existing HTML page to an XSLT page. When you convert an existing
HTML page to an XSLT page you must attach an XML data source using the Bindings panel (Window > Bindings).
667
674

Brauchen Sie Hilfe? Stellen Sie Ihre Frage.

Forenregeln

Missbrauch melden von Frage und/oder Antwort

Libble nimmt den Missbrauch seiner Dienste sehr ernst. Wir setzen uns dafür ein, derartige Missbrauchsfälle gemäß den Gesetzen Ihres Heimatlandes zu behandeln. Wenn Sie eine Meldung übermitteln, überprüfen wir Ihre Informationen und ergreifen entsprechende Maßnahmen. Wir melden uns nur dann wieder bei Ihnen, wenn wir weitere Einzelheiten wissen müssen oder weitere Informationen für Sie haben.

Art des Missbrauchs:

Zum Beispiel antisemitische Inhalte, rassistische Inhalte oder Material, das zu einer Gewalttat führen könnte.

Beispielsweise eine Kreditkartennummer, persönliche Identifikationsnummer oder unveröffentlichte Privatadresse. Beachten Sie, dass E-Mail-Adressen und der vollständige Name nicht als private Informationen angesehen werden.

Forenregeln

Um zu sinnvolle Fragen zu kommen halten Sie sich bitte an folgende Spielregeln:

Neu registrieren

Registrieren auf E - Mails für Adobe Dreamweaver CS6 wenn:


Sie erhalten eine E-Mail, um sich für eine oder beide Optionen anzumelden.


Das Handbuch wird per E-Mail gesendet. Überprüfen Sie ihre E-Mail.

Wenn Sie innerhalb von 15 Minuten keine E-Mail mit dem Handbuch erhalten haben, kann es sein, dass Sie eine falsche E-Mail-Adresse eingegeben haben oder dass Ihr ISP eine maximale Größe eingestellt hat, um E-Mails zu erhalten, die kleiner als die Größe des Handbuchs sind.

Ihre Frage wurde zu diesem Forum hinzugefügt

Möchten Sie eine E-Mail erhalten, wenn neue Antworten und Fragen veröffentlicht werden? Geben Sie bitte Ihre Email-Adresse ein.



Info