Package: xmlto Version: 0.0.18-5 Severity: normal
Hi, i have a docbook xml 'f o o.xml': $ xmlto txt 'f o o.xml basename: too many arguments Try `basename --help' for more information. And the output filename has a name 'xmlto.9EoPIY.txt' In the end is a patch to fix this. But other problem in filename spaces is in /usr/share/xmlto/format/docbook/txt :-( --- /usr/bin/xmlto.orig 2006-02-21 10:39:39.446737280 +0100 +++ /usr/bin/xmlto 2006-02-21 10:42:45.270487776 +0100 @@ -1,5 +1,5 @@ #!/bin/bash -# +# # xmlto - apply an XSL stylesheet to an XML document # Copyright (C) 2001, 2002, 2003 Tim Waugh <[EMAIL PROTECTED]> @@ -334,7 +334,7 @@ then VALIDATION="${XSLT_PROCESSED_DIR}/validation-errors" [ "$VERBOSE" -ge 1 ] && \ - echo >&2 "xmllint >/dev/null --xinclude --postvalid $INPUT_FILE" + echo >&2 "xmllint >/dev/null --xinclude --postvalid \"$INPUT_FILE\"" xmllint >/dev/null --xinclude --postvalid "$INPUT_FILE" 2>"${VALIDATION}" xmllint_status=$? if [ $xmllint_status -ne 0 ] @@ -352,7 +352,7 @@ XSLT_PROCESSED="$INPUT_FILE" else [ "$VERBOSE" -ge 1 ] && echo >&2 "Stylesheet: ${STYLESHEET}" - XSLT_PROCESSED="$XSLT_PROCESSED_DIR/$(basename ${INPUT_FILE%.*}).proc" + XSLT_PROCESSED="$XSLT_PROCESSED_DIR/$(basename "${INPUT_FILE%.*}").proc" if [ "$VERBOSE" -gt 2 ] then @@ -367,7 +367,7 @@ fi [ "$VERBOSE" -ge 1 ] && \ - echo -e >&2 "xsltproc${XSLTOPTS} ${XSLTSHOWPATH}\\\\\n -o "$XSLT_PROCESSED" \\\\\n $STYLESHEET \\\\\n $INPUT_FILE" + echo -e >&2 "xsltproc${XSLTOPTS} ${XSLTSHOWPATH}\\\\\n -o \"$XSLT_PROCESSED\" \\\\\n $STYLESHEET \\\\\n \"$INPUT_FILE\"" if [ -z "$XSLTWITHPATH" ] then -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.8-2-686 Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2) Versions of packages xmlto depends on: ii debianutils 2.8.4 Miscellaneous utilities specific t ii docbook-xml 4.3-1.1 standard XML documentation system, ii docbook-xsl 1.68.1-0.1 stylesheets for processing DocBook ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libpaper-utils 1.1.14-3 Library for handling paper charact ii libxml2-utils 2.6.16-7 XML utilities ii sgml-base 1.26 SGML infrastructure and SGML catal ii xsltproc 1.1.12-8 XSLT command line processor -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]