[xslt] syntax errors in w3c entity declarations?



I'm using xsltproc and I'm trying to include the w3c standard character
entity sets in a stylesheet:


<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin
1//EN//HTML" "HTMLlat1.ent">
%HTMLlat1;

...../xsl/myHTMLlat1.ent:12: parser error : Entity value required
<!ENTITY nbsp   CDATA "&#160;" -- no-break space = non-breaking space,
                ^
/usr/lib/hostsuisse/xsl/myHTMLlat1.ent:12: parser error : Space required
before 'NDATA'
<!ENTITY nbsp   CDATA "&#160;" -- no-break space = non-breaking space,
                ^
/usr/lib/hostsuisse/xsl/myHTMLlat1.ent:12: parser error :
xmlParseEntityDecl: entity nbsp not terminated
<!ENTITY nbsp   CDATA "&#160;" -- no-break space = non-breaking space,
                ^
/usr/lib/hostsuisse/xsl/myHTMLlat1.ent:12: parser error : internal error
<!ENTITY nbsp   CDATA "&#160;" -- no-break space = non-breaking space,
                ^
/usr/lib/hostsuisse/xsl/myHTMLlat1.ent:12: parser error : DOCTYPE
improperly terminated
<!ENTITY nbsp   CDATA "&#160;" -- no-break space = non-breaking space,
                ^
/usr/lib/hostsuisse/xsl/myHTMLlat1.ent:12: parser error : Start tag
expected, '<' not found
<!ENTITY nbsp   CDATA "&#160;" -- no-break space = non-breaking space,
                 ^

I've tried this with libxslt 1.1.26 and .28


-- 
Per Jessen, Zürich (19.4°C)
http://www.dns24.ch/ - free DNS hosting, made in Switzerland.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]