summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_xmlsoft
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-02-18 16:47:07 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-02-18 16:47:07 +0000
commit079ed781395c9b72af420adddf5309c996758be6 (patch)
tree8554ea8bacfc9e56533e77553dff6ce413bd1fa4 /Completion/Unix/Command/_xmlsoft
parentDoug Kearns: 18259: added more browsers and correct 'urls' description to 'url' (diff)
downloadzsh-079ed781395c9b72af420adddf5309c996758be6.tar
zsh-079ed781395c9b72af420adddf5309c996758be6.tar.gz
zsh-079ed781395c9b72af420adddf5309c996758be6.tar.bz2
zsh-079ed781395c9b72af420adddf5309c996758be6.tar.lz
zsh-079ed781395c9b72af420adddf5309c996758be6.tar.xz
zsh-079ed781395c9b72af420adddf5309c996758be6.tar.zst
zsh-079ed781395c9b72af420adddf5309c996758be6.zip
18257: merge _xmllint and _xsltproc into _xmlsoft
Diffstat (limited to 'Completion/Unix/Command/_xmlsoft')
-rw-r--r--Completion/Unix/Command/_xmlsoft96
1 files changed, 96 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_xmlsoft b/Completion/Unix/Command/_xmlsoft
new file mode 100644
index 000000000..100a0de62
--- /dev/null
+++ b/Completion/Unix/Command/_xmlsoft
@@ -0,0 +1,96 @@
+#compdef xsltproc xmllint
+
+# xmllint: using libxml version 20503
+# xsltproc: using libxslt version 10021
+
+case $service in
+ xsltproc)
+ _arguments \
+ '(-)'{--version,-V}'[show libxml and libxslt versions]' \
+ '(--verbose -v)'{--verbose,-v}"[show logs of what's happening]" \
+ '(--output -o)'{--output,-o}'[specify output file]:output file:_files' \
+ '--timing[display the time used]' \
+ '--repeat[run the transformation 20 times]' \
+ '--debug[dump the tree of the result instead]' \
+ '--dumpextensions[dump registered extension elements and functions]' \
+ '--novalid[skip the DTD loading phase]' \
+ '--noout[do not dump the result]' \
+ '--maxdepth[increase the maximum depth]:depth' \
+ '(--docbook)--html[input document is an HTML file]' \
+ '(--html)--docbook[input document is SGML docbook]' \
+ '--param[pass a parameter,value pair]:name::value (xpath expression)' \
+ '--stringparam[pass a parameter]:name::value' \
+ '--nonet[refuse to fetch DTDs or entities over network]' \
+ '--catalogs[use SGML catalogs]' \
+ '--xinclude[do XInclude processing on document input]' \
+ {--profile,--norman}'[dump profiling information]' \
+ '1:stylesheet:_files -g \*.xsl' \
+ ':file:_files -g \*.xml' && return
+ ;;
+ xmllint)
+ local curcontext="$curcontext" state line encoding
+
+ encoding=(
+ UTF-8
+ UTF-16
+ ISO-10646-UCS-2
+ ISO-10646-UCS-4
+ ISO-8859-1
+ ISO-8859-2
+ ISO-8859-3
+ ISO-8859-4
+ ISO-8859-5
+ ISO-8859-6
+ ISO-8859-7
+ ISO-8859-8
+ ISO-8859-9
+ ISO-2022-JP
+ SHIFT_JIS
+ EUC-JP
+ )
+
+ _arguments \
+ '--version[display the version of the XML library used]' \