Adobe Dreamweaver CC 2015 Bedienungsanleitung Seite 537

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 700
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 536
530
XML
Last updated 6/3/2015
If you use other character entities in an XSL file, you need to define them in the DTD section of the XSL file.
Dreamweaver provides several default entity definitions that you can see at the top of an XSL file created in
Dreamweaver. These default entities cover a broad selection of the most commonly used characters.
When you preview your XSL file in a browser, Dreamweaver checks the XSL file for undefined entities and notifies you
if an undefined entity is found.
If you preview an XML file attached to an XSLT file or if you preview a server-side page with an XSLT transformation,
the server or browser (instead of Dreamweaver) notifies you of an undefined entity. The following is an example of a
message you may get in Internet Explorer when you request an XML file transformed by an XSL file with a missing
entity definition:Reference to undefined entity 'auml'. Error processing resource 'http://localhost/testthis/list.xsl'. Line
28, Position 20 <p class=''test''>&auml;</p> -------------------^
To correct the error in your page, you must add the entity definition to your page manually.
Reference to undefined entity 'auml'. Error processing resource
'http://localhost/testthis/list.xsl'. Line 28, Position 20
<p class=''test''>&auml;</p>
-------------------^
Specify a missing entity definition
1 Look up the missing character in the character entity reference page on the W3C website at www.w3.org/TR/REC-
html40/sgml/entities.html.
This web page contains the 252 allowed entities in HTML 4 and XHTML 1.0.
For example, if the character entity Egrave is missing, search for “Egrave” on the W3C web page. You will find the
following entry:
<!ENTITY Egrave CDATA "&#200;" -- latin capital letter E with grave, U+00C8 ISOlat1 -->
2 Make a note of the entity name and entity code in the entry.
In the example, Egrave is the entity name, and &#200 is the entity code.
3 With this information, switch to Code view and enter the following entity tag at the top of your XSL file (following
the Doctype declaration and with the other entity tags):
<!ENTITY entityname "entitycode;">
In the example, you would enter the following entity tag:<!ENTITY Egrave "&#200;">
<!ENTITY Egrave "&#200;">
4 Save your file.
If you repeatedly use the same character entities, you may want to permanently add their definitions in the XSL files
Dreamweaver creates by default when you use File > New.
> (greater-than) &gt;
" (quote) &quot;
‘ (apostrophe) &apos;
Character Entity Code
Seitenansicht 536
1 2 ... 532 533 534 535 536 537 538 539 540 541 542 ... 699 700

Kommentare zu diesen Handbüchern

Keine Kommentare