zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Doug Kearns <djkea2@mugca.its.monash.edu.au>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH: xmllint completion
Date: Tue, 18 Feb 2003 11:35:00 +0100	[thread overview]
Message-ID: <1583.1045564500@finches.logica.co.uk> (raw)
In-Reply-To: <20030218061442.GA17147@localhost.localdomain>

On 18 Feb, Doug Kearns wrote:
> 
> Here's a new completion function for xmllint which comes with the
> libxml2 library - http://xmlsoft.org/

Thanks, I've added this. We should perhaps clump it together with
_xsltproc in an _xmlsoft (any views?). An xmlcatalog completion if/when
written could go in there too.

On 4.1 only, I'll apply the following patch on top of it. It just makes
it call _webbrowser (formerly would have been _urls -f; see 16323)
instead of repeating the content of _webbrowser in a state. 16323 is not
on 4.0 so I'll just add in the missing `local state line
curcontext="$curcontext"' and _arguments -C for 4.0.

Oliver

Index: _xmllint
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_xmllint,v
retrieving revision 1.1
diff -u -r1.1 _xmllint
--- _xmllint	18 Feb 2003 10:02:55 -0000	1.1
+++ _xmllint	18 Feb 2003 10:09:15 -0000
@@ -35,7 +35,7 @@
   '--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 @@
   '--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'

This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.


  reply	other threads:[~2003-02-18 10:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-18  6:14 Doug Kearns
2003-02-18 10:35 ` Oliver Kiddle [this message]
2003-02-18 13:45   ` Doug Kearns
2003-02-18 14:39     ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1583.1045564500@finches.logica.co.uk \
    --to=okiddle@yahoo.co.uk \
    --cc=djkea2@mugca.its.monash.edu.au \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).