[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Tool to query dtd/schema for valid element children|attributes[SOLVED]
Markus Hoenicka wrote: >>Public IDs are misinterpreted as command-line options: >> >------------------------------------------------------------------------------------------------------- > > >>$ java -jar dtd-flatten.jar "-//OASIS//DTD DocBook XML V4.2//EN" >>Unrecognized option '-//OASIS//DTD'. >> >> > >I guess this is a shell quoting issue. Your shell eats the "" when passing the >argument to the invoked command, which is "java" in this case. java then passes >the argument (sans "", as java never saw the quotes) to dtd-flatten, which must >think of it as an option as it starts with a dash. Try using single quotes >instead, as they are preserved by your shell (and hopefully by java too). > > It makes no difference: ------------------------------------------------------------------------------------------------------- $ java -jar dtd-flatten.jar '-//OASIS//DTD DocBook XML V4.2//EN' Unrecognized option '-//OASIS//DTD'. Usage: class com.ctc.wstx.tools.DTDFlatten[flags] [DTD file] flags: --output-comments (default) --strip-comments --output-conditional-sections --strip-conditional-sections (default) --output-pe-decls --strip-pe-decls (default) --output-whitespace:<mode> (mode: all/compact/minimum; default 'compact' --help [displays full help] $ $ java -jar ~/data/evaluation/dtd-flatten.jar "-//OASIS//DTD DocBook XML V4.2//EN" Unrecognized option '-//OASIS//DTD'. Usage: class com.ctc.wstx.tools.DTDFlatten[flags] [DTD file] flags: --output-comments (default) --strip-comments --output-conditional-sections --strip-conditional-sections (default) --output-pe-decls --strip-pe-decls (default) --output-whitespace:<mode> (mode: all/compact/minimum; default 'compact' --help [displays full help] ----------------------------------------------------------------------------------------------------- I also tried a few combinations of multiple quoting, all to no effect. Regards, David.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]