Ignore:
Timestamp:
2021-08-16T13:29:24+12:00 (3 years ago)
Author:
kjdon
Message:

if we want to add new namespaces into collection's xsl files, we need to make sure they are added into the main xsl, and then also into expand_gslib xsl, otherwise they will be ignored and left off the page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java

    r33726 r35295  
    882882            return XMLTransformer.constructErrorXHTMLPage("Error loading file: "+ expand_gslib_filepath+"\n" + e.getMessage());
    883883        }
    884 
     884               
    885885        // gslib.xsl
    886886        Document gslib_xsl_doc = null;
     
    914914  }
    915915
     916  // if the page xsl or gslib xsl uses namespaces that are not listed in
     917  // expand_gslib, then they will be ignored. So just check through and add
     918  // any in that are missing.
     919  GSXML.addMissingNamespaceAttributes(expand_gslib_xsl_doc.getDocumentElement(), page_xsl.getDocumentElement());
     920  GSXML.addMissingNamespaceAttributes(expand_gslib_xsl_doc.getDocumentElement(), gslib_xsl_doc.getDocumentElement());
    916921
    917922        Document pageAndGslibXsl = null;
     
    944949          XMLTransformer preProcessor = new XMLTransformer();
    945950          preProcessor.transform_withResultNode(expand_gslib_xsl_doc, pageAndGslibXsl, pageAndGslibDoc);
    946 
    947951        }
    948952        if (output.equals("xsl6")) {
Note: See TracChangeset for help on using the changeset viewer.