Project

Profile

Help

https://www.saxonica.com/html/documentation11/configuration/config-interfaces/ explains to use method processor.SetConfigurationFeature but that doesn't seem to exist

Added by Martin Honnen over 2 years ago

https://www.saxonica.com/html/documentation11/configuration/config-interfaces/ explains to use method processor.SetConfigurationFeature but that doesn't seem to exist.

Full quotation:

In the Saxon.Api interface for C#, configuration options can be set using a method call such as processor.SetConfigurationFeature(Feature.LINE_NUMBERING, true). It's necessary to specify the type of the value (here bool) to make the method type-safe.

Intellisense in VS 2019 or the API documentation at https://www.saxonica.com/html/documentation11/dotnetdoc/Saxon/Api/Processor.html show dot not show any such method, however.

There seems to be a method SetProperty, is that the right one?

For some reasons (perhaps unrelated to SaxonCS) VS 2019 chokes on building my twenty line project since I have added the line to call it.


Replies (1)

RE: https://www.saxonica.com/html/documentation11/configuration/config-interfaces/ explains to use method processor.SetConfigurationFeature but that doesn't seem to exist - Added by Michael Kay over 2 years ago

Yes, in fact there are two variants of SetProperty() and you can use either (one uses a Feature constant, the other a string). We'll fix the documentation.

Can't give you much help with VS2019, I'm afraid. I've created projects successfully, but it's one of those things you only do occasionally, and it never works first time, and you can never remember what you did to fix the problem last time. In fact I'm using Rider most of the time, and that's exactly the same - once you have a project working it's fine, but getting all the options right when you start is a nightmare.

    (1-1/1)

    Please register to reply