On Fri, Apr 26, 2013 at 11:37:49AM +0200, Per Jessen wrote:
> 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,

  I smell that you are including an HTML set of entity declarations
in an xmL document, but XML recognize only a limited subset of SGML
entities support and you get a fatal error.

  Try to load the entities coming from XHTML instead

<!-- Character entity set. Typical invocation:
    <!ENTITY % HTMLlat1 PUBLIC
       "-//W3C//ENTITIES Latin 1 for XHTML//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent";>
    %HTMLlat1;
-->

  from /usr/share/xml/xhtml/1.0/xhtml-lat1.ent coming from my
xhtml1-dtds package which  are registered in the XML catalog.

Daniel

-- 
Daniel Veillard      | Open Source and Standards, Red Hat
veill...@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | virtualization library  http://libvirt.org/
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
xslt@gnome.org
https://mail.gnome.org/mailman/listinfo/xslt

Reply via email to