[xml/sgml-pkgs] Bug#807678: jing does not automatically follow xi:include in DocBook 5 files

tomik.bazik at gmail.com tomik.bazik at gmail.com
Fri Dec 11 14:58:07 UTC 2015


Package: jing
Version: 20131210+dfsg+1-1
Severity: normal

Dear Maintainer,

I want to port daps (http://daps.sourceforge.net/) suite to debian to be
able to validate/build/export DocBook files easily.
Most of the work is done, but jing causes problems - it does not follow
xi:includes in DB5 xml files. Also, the /usr/bin/jing cript should make
use of java-wrappers. I update it to the java-wrappers version, and the
only problem is that i need to include the following flag on tha java
cmdline:
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration

following is a remake of the original jing script that works for me as a
workaround:
--------------
#!/bin/sh

# Include the wrappers utility script
.. /usr/lib/java-wrappers/java-wrappers.sh

# We prefer to use openjdk or Sun's java if available
find_java_runtime openjdk sun  || find_java_runtime 

# Set dfault (and local) classpath
JAVA_CLASSPATH="/usr/share/java"

if [ "$1" = "classpath" ]
then
  JAVA_CLASSPATH="$2"
  shift 2
fi

export CLASSPATH=$JAVA_CLASSPATH

JAVA_ARGS="-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration"

DEBUG_WRAPPER=1

#find_jars jing xerces-j2 xml-commons-apis saxon6 xml-commons-resolver 
find_jars jing xercesImpl xmlParserAPIs xml-apis saxon xml-resolver avalon-framework batik-all 

run_java com.thaiopensource.relaxng.util.Driver "$@"
-----------

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=cs_CZ.utf8, LC_CTYPE=cs_CZ.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages jing depends on:
ii  default-jre [java2-runtime]    2:1.7-52
ii  libjing-java                   20131210+dfsg+1-1
ii  openjdk-7-jre [java2-runtime]  7u91-2.6.3-1~deb8u1

jing recommends no packages.

jing suggests no packages.

-- no debconf information



More information about the debian-xml-sgml-pkgs mailing list