Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1034

XIncludeHandler uses default parser configuration for included files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.6.2
    • None
    • XInclude 1.0
    • None

    Description

      In XIncludeHandler, find the line:

      String parserName = XINCLUDE_DEFAULT_CONFIGURATION;

      If you specified a different parser configuration using the property org.apache.xerces.xni.parser.XMLParserConfiguration, it is not taken into account for included files.

      I suggest the following patch:

      String parserName = System.getProperty("org.apache.xerces.xni.parser.XMLParserConfiguration");
      if (parserName == null)
      parserName = XINCLUDE_DEFAULT_CONFIGURATION;

      Attachments

        Activity

          People

            Unassigned Unassigned
            ebruchez Erik Bruchez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: