Operation Manual
496
USING DREAMWEAVER
Displaying XML data with XSLT
Last updated 3/28/2012
Reference to undefined entity 'auml'. Error processing resource
'http://localhost/testthis/list.xsl'. Line 28, Position 20
<p class=''test''>ä</p>
-------------------^
To correct the error in your page, you must add the entity definition to your page manually.
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 "È" -- 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 È 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 "È">
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.
Add entity definitions to the XSL files Dreamweaver creates by default
1 Locate the following configuration file in the Dreamweaver application folder and open it in any text editor:
Configuration/DocumentTypes/MMDocumentTypeDeclarations.xml
2 Locate the declaration called mm_xslt_1:
<documenttypedeclaration id="mm_xslt_1">
3 Enter the new entity tag or tags in the list of entity tags, as follows:
<!ENTITY entityname "entitycode;">
4 Save the file and restart Dreamweaver.