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 --- ChangeLog | 2 ++ Completion/Unix/Command/_xmllint | 14 +++----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index e9a25b91e..4ea8105c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2003-02-18 Oliver Kiddle + * 18257: Completion/Unix/Command/_xmllint: make use of _webbrowser + * Doug Kearns: 18254: Completion/Unix/Command/_xmllint: new completion for xmllint (from xmlsoft.org's libxml2 library) 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