If the entities are in the content, you would need to add the DTD to the content, not to the stylesheet. Or you could transform the content converting the entities.

-Mike

On 02/03/2015 10:41 AM, Raul wrote:
Hi all!

I'm trying to use Solr with the DIH and xslt processing. All is fine till i put xml with html entity in the content (like $euro;) where i get a

Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException


i put in the xsl the dtd declaration of the entity but i don't get lucky:

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE stylesheet [

  <!ENTITY laquo  "&#171;">
  <!ENTITY raquo  "&#187;">
  <!ENTITY hellip "&#8230;">
  <!ENTITY euro   "&#8364;">

]>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
....

Do you know how i can proccess??

Thanks in advance

Reply via email to