Form3 Quanta+ XML Validator is a Kommander front-end for xmllint. Chris Hornbaker Form3 0 0 439 254 Quanta+ XML Validator unnamed 11 6 ValScript # get file to be tested location @CheckBox4 if [ !$CUR ] then TMP0=`dcop | grep quanta` TMP1=`dcop $TMP0 WindowManagerIf currentURL` FILE=`echo $TMP1 | cut -b6-` else FILE=`echo '@FileSelector4'` fi # Get validation type info @CheckBox3 if [ !$WF ] then @ComboBox2 VALSTR="$VAL @FileSelector5" else VALSTR="$VAL" fi # Put it all together CMDLINE="$VALSTR $FILE" unnamed 11 6 Layout10 unnamed 0 6 CheckBox4 C&urrent file false true # Check if we're using the current file and make note of it if [ !@FileSelector4 ] then CUR=1 else CUR='' fi Spacer9 Horizontal Expanding 30 0 Layout4 unnamed 0 6 TextLabel3 false Other file: Spacer5 Horizontal Expanding 30 0 FileSelector4 false @widgetText Layout5 unnamed 0 6 TextLabel4 Validate against: Spacer4 Horizontal Expanding 30 0 DTD (Internal) DTD (External) XML Schema RelaxNG Schema ComboBox2 ################################ # Set up variables # W3C XML Schema WXS='--schema' # RelaxNG Schema RNGS='--relaxng' # DTD specified in document DTD1='--valid' # DTD not specified in document and # needs loaded from URL DTD2='--dtdvalid' ################################ # Set validation type case "@widgetText" in "XML Schema" ) VAL="$WXS" ;; "RelaxNG Schema" ) VAL="$RNGS" ;; "DTD (Internal)" ) VAL="$DTD1" ;; "DTD (External)" ) VAL="$DTD1" ;; * ) VAL="" ;; esac DTD RelaxNG Schema W3C XML Schema Layout11 unnamed 0 6 CheckBox3 Well-formed checking &only @null # Are we just checking well-formedness? @ComboBox2 if [ !$VAL ] then WF=1 else WF='' fi Spacer10 Horizontal Expanding 30 0 Layout6 unnamed 0 6 TextLabel5 Definition URI: Spacer3 Horizontal Expanding 30 0 FileSelector5 @widgetText ExecButton2 TabFocus &Validate false true # Set up the CMDLINE var and run xmllint @ValScript xmllint $CMDLINE 2>&1 CloseButton1 &Close Spacer8 Horizontal Expanding 228 0 CheckBox4 toggled(bool) FileSelector4 setDisabled(bool) CheckBox4 toggled(bool) TextLabel3 setDisabled(bool) CheckBox3 toggled(bool) TextLabel4 setDisabled(bool) CheckBox3 toggled(bool) ComboBox2 setDisabled(bool) CheckBox3 toggled(bool) TextLabel5 setDisabled(bool) CheckBox3 toggled(bool) FileSelector5 setDisabled(bool)