Skip to content

Commit

Permalink
[refactor] Remove the last small dependency on Apache Xalan, instead …
Browse files Browse the repository at this point in the history
…use the equivalent classes from Apache Xerces
  • Loading branch information
adamretter committed Dec 8, 2022
1 parent d250847 commit f466b9e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
6 changes: 0 additions & 6 deletions exist-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,6 @@
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.2</version> <!-- needed an compile time for various dependencies -->
</dependency>

<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions exist-core/src/main/java/org/exist/dom/memtree/NodeImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*/
package org.exist.dom.memtree;

import org.apache.xml.utils.XML11Char;
import org.apache.xml.utils.XMLChar;
import org.apache.xerces.util.XML11Char;
import org.apache.xerces.util.XMLChar;
import org.exist.collections.Collection;
import org.exist.dom.INode;
import org.exist.dom.NodeListImpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public class TransformerFactoryAllocatorTest {
@Parameters(name = "{0}")
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][] {
{ "net.sf.saxon.TransformerFactoryImpl" },
{ "org.apache.xalan.processor.TransformerFactoryImpl" }
{ "net.sf.saxon.TransformerFactoryImpl" }
});
}

Expand Down
6 changes: 4 additions & 2 deletions exist-core/src/test/resources/org/exist/config/conf1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@

<serializer add-exist-id="none" compress-output="no" enable-xinclude="yes" enable-xsl="no" indent="yes" match-tagging-attributes="no" match-tagging-elements="no"/>


<transformer class="org.apache.xalan.processor.TransformerFactoryImpl"/>

<transformer class="net.sf.saxon.TransformerFactoryImpl" caching="yes">
<attribute name="http://saxon.sf.net/feature/version-warning" value="false" type="boolean"/>
</transformer>


<validation mode="auto">
Expand Down
6 changes: 4 additions & 2 deletions exist-core/src/test/resources/org/exist/config/conf2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@

<serializer add-exist-id="none" compress-output="no" enable-xinclude="yes" enable-xsl="no" indent="yes" match-tagging-attributes="no" match-tagging-elements="no"/>


<transformer class="org.apache.xalan.processor.TransformerFactoryImpl"/>

<transformer class="net.sf.saxon.TransformerFactoryImpl" caching="yes">
<attribute name="http://saxon.sf.net/feature/version-warning" value="false" type="boolean"/>
</transformer>


<validation mode="auto">
Expand Down

0 comments on commit f466b9e

Please sign in to comment.