From 5cb11fabd0dc66c4e9c2a50be150342482e07abe Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 18 Feb 2003 12:56:48 +0000 Subject: 18257: make use of _webbrowser --- Completion/Unix/Command/_xmllint | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'Completion/Unix') 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' -- cgit 1.4.1