Make assoldap compatible with multi-value fields.
[shellsnippets/shellsnippets.git] / mksh / profile-funcs
1 # XHTML validator
2 xv() {
3         local i rv=0 s
4
5         for i in "$@"; do
6                 s=$(sed \
7                     -e 's!http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd!file:///usr/src/www/mk/xhtml11.dtd!g' \
8                     <"$i" | xmlstarlet val -e -d file:///usr/src/www/mk/xhtml11.dtd -)
9                 (( rv |= $? ))
10                 print -r -- "$i ${s#- }"
11         done
12         return $rv
13 }