index: add --nonet --novalid options to all xsltproc invocations to avoid 30S timeouts when accessing external dtds (ie: for svg files)
This commit is contained in:
parent
292859a3ac
commit
8ad41f3fb1
@ -84,7 +84,7 @@ umask 77
|
||||
|
||||
checkcmds xsltproc
|
||||
|
||||
xsltproc - "$infile" <<EOF
|
||||
xsltproc --nonet --novalid - "$infile" <<EOF
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
|
||||
@ -79,7 +79,7 @@ umask 77
|
||||
|
||||
checkcmds xsltproc
|
||||
|
||||
xsltproc - "$infile" <<EOF
|
||||
xsltproc --nonet --novalid - "$infile" <<EOF
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
|
||||
@ -123,7 +123,7 @@ echo '<html><head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
|
||||
|
||||
if test -f $metafile ; then
|
||||
xsltproc --novalid - $metafile <<EOF
|
||||
xsltproc --nonet --novalid - $metafile <<EOF
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
@ -185,7 +185,7 @@ EOF
|
||||
fi
|
||||
|
||||
echo '</head><body>'
|
||||
xsltproc --novalid - $contentfile <<EOF
|
||||
xsltproc --nonet --novalid - $contentfile <<EOF
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
|
||||
@ -109,7 +109,7 @@ cd $tmpdir/rclopxmltmp
|
||||
echo '<html>
|
||||
<head>'
|
||||
|
||||
xsltproc - docProps/core.xml <<EOF
|
||||
xsltproc --novalid --nonet - docProps/core.xml <<EOF
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
||||
@ -211,7 +211,7 @@ fi
|
||||
|
||||
|
||||
for filename in $filenames;do
|
||||
xsltproc - $filename <<EOF
|
||||
xsltproc --novalid --nonet - $filename <<EOF
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet $xmlns_decls >
|
||||
|
||||
|
||||
@ -114,7 +114,7 @@ cd $tmpdir/rclsofftmp
|
||||
echo '<html><head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
|
||||
|
||||
xsltproc - meta.xml <<EOF
|
||||
xsltproc --novalid --nonet - meta.xml <<EOF
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
@ -186,7 +186,7 @@ EOF
|
||||
|
||||
echo '</head><body>'
|
||||
|
||||
xsltproc - content.xml <<EOF
|
||||
xsltproc --novalid --nonet - content.xml <<EOF
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
|
||||
@ -79,7 +79,7 @@ umask 77
|
||||
|
||||
checkcmds xsltproc
|
||||
|
||||
xsltproc - "$infile" <<EOF
|
||||
xsltproc --novalid --nonet - "$infile" <<EOF
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user