Hi,
thanks for trying the custom XML formats. It is really an interesting feature.
There are some examples here:
https://github.com/inception-project/inception-xml-formats-examples
And here is the default HTML policy:
https://github.com/inception-project/inception/blob/main/inception/inception-external-editor/src/main/java/de/tudarmstadt/ukp/inception/externaleditor/policy/DefaultHtmlDocumentPolicy.yaml
> On 16. Feb 2026, at 10:28, 'Faith Lawrence' via inception-users <
incepti...@googlegroups.com> wrote:
>
> • Is there any other documentation on defining custom XML formats for example what values can go in the YAML file and what do they mean? e.g. PASS, PASS_NO_NS etc. I have had a look but I can't see it documented but I may have missed it.
It's in the source code itself.
https://github.com/inception-project/inception/blob/main/inception/inception-support/src/main/java/de/tudarmstadt/ukp/inception/support/xml/sanitizer/AttributeAction.java
https://github.com/inception-project/inception/blob/main/inception/inception-support/src/main/java/de/tudarmstadt/ukp/inception/support/xml/sanitizer/ElementAction.java
Here is a summary.
# Elements
PASS -- Element is passed through.
SKIP -- Element is not passed through filter but any child text nodes are passed.
DROP -- Element is not passed through.
PRUNE -- Element is not passed through and neither are any descendants even if they might otherwise be marked to pass.
# Attributes
PASS -- Pass attribute as-is.
DROP -- Attribute is not passed on - it is dropped.
PASS_NO_NS -- Pass attribute but remove the namespace.
The CSS `attr(XXX)` construct is unable to access attributes that are not in
the default namespace. Support for adding access to namespaced-attributes appears to have
been present in early proposals of the CSS3 namespace enhancements [1]
but appear to have been dropped for the final recommendation.
Also, browsers do not appear (yet) to have implemented support for this on their own.
Thus, if the attribute contains data that needs to be accessed using
`content: attr(XXX)`, then use this.
[1]
https://www.w3.org/1999/06/25/WD-css3-namespace-19990625/#attr-function
> • If my custom XML document is importing without any errors, but I am not seeing part of the the text displayed is that likely to be a CSS issue? Or could it be an issue with the document definition (either in the plugin json or in the yaml policy)? And is there any way that I can tell?
You should add
```
debug: true
```
At the root level of the YAML file.
You will also need to start INCEpTION with
```
-Dlogging.level.de.tudarmstadt.ukp.inception.support.xml.sanitizer.SanitizingContentHandler=DEBUG
```
or add this to your `settings.properties`
```
logging.level.de.tudarmstadt.ukp.inception.support.xml.sanitizer.SanitizingContentHandler=DEBUG
```
Then you should be able to see helpful information about how the policy applies in the INCEpTION logs.
> • Also, if I change the definition or the CSS do I need to re-load the document or will the changes be picked up immediately?
If you make changes to the CSS or policy files, save them and reload in the browser, you should see the changes immediately.
You may want to open the browser's developer tools though and tick "disable cache" on the "network" tab to make sure the
browser does really load the files freshly when you reload (and keep the developer tools open).
You can also right-click into the empty editor panel and choose "Inspect" to see what (if anything) goes through the
policy to the browser. That can also help you debug your CSS. When the "debug" key is set in the policy file, you
will also see traces of elements filtered out by the policy.
I hope those tips help. If you get stuck, let me know.
Cheers,
-- Richard