Bug #2168
Updated by O'Neil Delpratt about 10 years ago
In principle it should be possible to set the parser features and parser properties parserproperties from the command line. In the Saxon 9.6 release documentation the XML_PARSER_FEATURE and XML_PARSER-PROPERTY are features, see: http://www.saxonica.com/documentation/index.html#!configuration/config-features It should work as follows: <pre> java -cp saxon9he.jar net.sf.saxon.Transform -expand:off --parserFeature?uri=http://xml.org/sax/features/external-parameter-entities:true </pre> However, the above command fails dues to the colon in the URL. i.e.: <pre> Transformation failed: http://saxon.sf.net/feature/parserFeature?uri=http must be 'true' or 'false' (or on|off, yes|no, 1|0) </pre> Programatically it works in the API, but in the code for the command line we need to fix it to only look for the last colon when switching on or off the parser option.