about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Completion/Unix/Command/_xmllint14
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  <opk@zsh.org>
 
+	* 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'