Changeset 32490 for main/trunk

Show
Ignore:
Timestamp:
25.09.2018 13:00:11 (11 months ago)
Author:
kjdon
Message:

we need to supply entity resolver to the transform call, otherwise it can't find the DTD (gberg collection)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/XMLRetrieve.java

    r28966 r32490  
    230230        } else { 
    231231        try { 
    232             Node toc = transformer.transform(stylesheet, doc_file); 
    233             structure.appendChild(result_doc.importNode(toc, true)); 
     232          Node toc = transformer.transform(stylesheet, doc_file, null, this.entity_resolver); 
     233          structure.appendChild(result_doc.importNode(toc, true)); 
    234234        } catch (Exception e) { 
    235235            logger.error("couldn't transform the document to get the toc");