diff options
Diffstat (limited to 'textproc/xincluder/files')
-rw-r--r-- | textproc/xincluder/files/patch-src_com_elharo_xml_xinclude_JDOMXIncluder.java | 24 | ||||
-rw-r--r-- | textproc/xincluder/files/xincluder.sh.in | 13 |
2 files changed, 0 insertions, 37 deletions
diff --git a/textproc/xincluder/files/patch-src_com_elharo_xml_xinclude_JDOMXIncluder.java b/textproc/xincluder/files/patch-src_com_elharo_xml_xinclude_JDOMXIncluder.java deleted file mode 100644 index 6f0ff222e753..000000000000 --- a/textproc/xincluder/files/patch-src_com_elharo_xml_xinclude_JDOMXIncluder.java +++ /dev/null @@ -1,24 +0,0 @@ ---- src/com/elharo/xml/xinclude/JDOMXIncluder.java.orig 2003-03-09 16:01:34 UTC -+++ src/com/elharo/xml/xinclude/JDOMXIncluder.java -@@ -54,6 +54,7 @@ import org.jdom.CDATA; - import org.jdom.Namespace; - import org.jdom.Comment; - import org.jdom.CDATA; -+import org.jdom.DocType; - import org.jdom.Text; - import org.jdom.JDOMException; - import org.jdom.Attribute; -@@ -404,6 +405,13 @@ public class JDOMXIncluder { - // I need to return the full document child list including comments and PIs, - // not just the resolved root - List topLevelNodes = doc.getContent(); -+ for (int i = 0; i < topLevelNodes.size(); i++) { -+ Object o = topLevelNodes.get(i); -+ if (o instanceof DocType) { -+ DocType docType = (DocType) o; -+ docType.detach(); -+ } -+ } - int rootPosition = topLevelNodes.indexOf(root); - List beforeRoot = topLevelNodes.subList(0, rootPosition); - List afterRoot = topLevelNodes.subList(rootPosition+1, topLevelNodes.size()); diff --git a/textproc/xincluder/files/xincluder.sh.in b/textproc/xincluder/files/xincluder.sh.in deleted file mode 100644 index 9c77b549fd8b..000000000000 --- a/textproc/xincluder/files/xincluder.sh.in +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -IAM=`basename "$0"` - -case "${IAM}" in - xincluder-sax) MAIN_CLASS=SAXXIncluder ;; - xincluder-dom) MAIN_CLASS=DOMXIncluder ;; - xincluder-jdom) MAIN_CLASS=JDOMXIncluder ;; - xincluder) MAIN_CLASS=SAXXIncluder ;; - *) echo "ERROR!" ; false ;; -esac - -"%%LOCALBASE%%/bin/java" -cp "`"%%LOCALBASE%%/bin/classpath"`" "com.elharo.xml.xinclude.${MAIN_CLASS}" "$@" |