Skip to content

Commit fdaaea2

Browse files
egliclaude
andcommitted
Disable XML entity expansion limit in saxon.sh
DTBook files reference DTD character entities extensively; JDK 11+ defaults to a limit of 2500 expansions which real documents exceed. Setting jdk.xml.entityExpansionLimit=0 removes the limit. This is safe as we process trusted internal documents only. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d4f82b5 commit fdaaea2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

saxon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
DIR=`dirname $0`
2323
CP=$(find "$DIR/lib" -name '*.jar' | tr '\n' ':')
2424

25-
java -cp $CP ch.sbs.dtbook2sbsform.SbsTransform "$@"
25+
java -Djdk.xml.entityExpansionLimit=0 -cp $CP ch.sbs.dtbook2sbsform.SbsTransform "$@"

0 commit comments

Comments
 (0)