I am using Saxon 8.9 in .NET and would like to create a custom element. The docs for this (admittedly old) version of Saxon are pretty vague around this feature and seem to suggest that it ether isn't possible at all or just not in .NET. Can anyone provide any more insight into whether this is possible?
UPDATE: Following the quick update from Michael I had another stab at this.
- I created a CustomElementFactory class which implements ExtensionElementFactory
- In the stylesheet I added an extension-element-prefix and associated it with a namespace with a uri ending in slash followed by the fullname of the CustomElementFactory
- Added the element to my stylesheet.
This results in the error XTDE1450 "Unknown extension element". I even tried getting the old sql extension java, converting to a dll using IKVM, but it also didn't work.
The documentation for newer versions discusses registering the namespace in the processor config, but the setExtensionElementNamespace doesn't exist in this old version. I am bound to 8.9 because that is the version our product uses and upgrading is not really viable.
I appreciate all the help.