summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-02-18 12:56:48 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-02-18 12:56:48 +0000
commit5cb11fabd0dc66c4e9c2a50be150342482e07abe (patch)
tree9854d751af6a7e88bf617b4a55372ade88df3a37 /Completion/Unix/Command
parent20528c374313cd8b8a6ae18cb7a699dbf3e29cc8 (diff)
downloadzsh-5cb11fabd0dc66c4e9c2a50be150342482e07abe.tar.gz
zsh-5cb11fabd0dc66c4e9c2a50be150342482e07abe.zip
18257: make use of _webbrowser
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_xmllint14
1 files changed, 3 insertions, 11 deletions
diff --git a/Completion/Unix/Command/_xmllint b/Completion/Unix/Command/_xmllint
index 921f28af2..d28f77992 100644
--- a/Completion/Unix/Command/_xmllint
+++ b/Completion/Unix/Command/_xmllint
@@ -35,7 +35,7 @@ _arguments \
'--nowrap[do not put HTML doc wrapper]' \
'--valid[validate the document in addition to std well-formed check]' \
'(--dtdvalid --relaxng)--postvalid[do a posteriori validation, i.e after parsing]' \
- '(--postvalid --relaxng)--dtdvalid[do a posteriori validation against a given DTD]:DTD:->url' \
+ '(--postvalid --relaxng)--dtdvalid[do a posteriori validation against a given DTD]:DTD:_webbrowser' \
'--timing[print some timings]' \
'(--noout --output -o)'{--output,-o}'[save to a given file]:output file:_files' \
'--repeat[repeat 100 times, for timing or profiling]' \
@@ -59,13 +59,5 @@ _arguments \
'--dropdtd[remove the DOCTYPE of the input docs]' \
'--stream[use the streaming interface to process very large files]' \
'--chkregister[verify the node registration code]' \
- '(--dtdvalid --postvalid)--relaxng[do RelaxNG validation against the schema]:schema:->url' \
- '*:XML file:->url' && return
-
-if [[ "$state" = url ]]; then
- _alternative \
- 'files:file:_files' \
- 'urls:url:_urls' && return
-fi
-
-return 1
+ '(--dtdvalid --postvalid)--relaxng[do RelaxNG validation against the schema]:schema:_webbrowser' \
+ '*:XML file:_webbrowser'