#!/bin/bash # # xpath++ tool # https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14511881� # if [ "$2" = "" ]; then echo "usage: `basename $0` " exit fi # for DataPower use comment out this line xsltproc_xsl=/tmp/temp.xsl if [ "$xsltproc_xsl" != "" ]; then sed -n "/<\!--delim-->/,/<\!--delim-->/p" $0 >$xsltproc_xsl xsltproc --stringparam xpathpar "$1" $xsltproc_xsl $2 rm $xsltproc_xsl else url=http://dp1-l3.boeblingen.de.ibm.com:2048/xpath curl -u "$1:" --data-binary @$2 $url; echo fi exit ------------------------------------------------------------------------------- xmlns : =" "