zsh-workers
 help / color / mirror / code / Atom feed
* xsltproc completion accepts only one --param / --stringparam option
@ 2012-06-06 13:05 Vincent Lefevre
  0 siblings, 0 replies; only message in thread
From: Vincent Lefevre @ 2012-06-06 13:05 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 905 bytes --]

There's a bug in the xsltproc completion code, which accepts only
one --param / --stringparam option. For example:

$ xsltproc -[TAB]
Completing option
[...]
--stringparam               -- pass a parameter
[...]

$ xsltproc --stringparam [TAB]
Completing name

$ xsltproc --stringparam n1 [TAB]
Completing value

$ xsltproc --stringparam n1 v1 -[TAB]
Completing option

but --stringparam is no longer listed.

$ xsltproc --stringparam n1 v1 --stringparam n2 v2 [TAB]

Here only an option is accepted. Trying to complete on a filename
(stylesheet) doesn't work.

The attached patch fixes the problem.

Also reported as a Debian bug:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676357

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

[-- Attachment #2: _xmlsoft.patch --]
[-- Type: text/plain, Size: 858 bytes --]

--- /usr/share/zsh/functions/Completion/Unix/_xmlsoft	2012-02-29 00:55:02.000000000 +0100
+++ share/zsh/site-functions/_xmlsoft	2012-06-06 14:48:32.000000000 +0200
@@ -41,8 +41,8 @@
       '--maxparserdepth[increase the maximum parser depth]:depth' \
       '--html[input document is an HTML file]' \
       '--encoding[the input document character encoding]:encoding:(${encoding[@]})' \
-      '--param[pass a parameter,value pair]:name::value (xpath expression)' \
-      '--stringparam[pass a parameter]:name::value' \
+      '*--param[pass a parameter,value pair]:name::value (xpath expression)' \
+      '*--stringparam[pass a parameter]:name::value' \
       '--path[provide a set of paths for resources]:paths:_files -/' \
       '--nonet[refuse to fetch DTDs or entities over network]' \
       '--nowrite[refuse to write to any file or resource]' \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-06 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-06 13:05 xsltproc completion accepts only one --param / --stringparam option Vincent Lefevre

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).