Unwanted namespace prefix "_0"
Posted: Mon Dec 23, 2013 9:38 pm
I've come across a rather annoying thing when using Saxon 9 to do XSLT transforms both in the debugger and through a Transformation Scenario. The problem doesn't occur when running Saxon on the command line, so it must be something to do with the Oxygen setup, although I can't figure out what.
I have a TEI file with an embedded example in the TEI Examples namespace, like this:
If I do an identity transform on that file, there are unwanted namespace prefixes in the results, like this:
This happens whether or not I have an explicit namespace prefix declaration for the Examples namespace, and whatever settings I use in exclude-result-prefixes.
Since it doesn't happen with Saxon on the command line, I assume it must be something added by a serialization phase, but I can't find anything that looks relevant in the options, searching for prefix, serialize, namespace, or anything else I can think of.
I have a TEI file with an embedded example in the TEI Examples namespace, like this:
Code: Select all
<TEI xmlns="http://www.tei-c.org/ns/1.0" version="5.0">
[...]
<div>
<egXML xmlns="http://www.tei-c.org/ns/Examples" valid="true">
For more information, consult the
<ref target="mol:linking#linking_graphics"> guide to
linking graphic content</ref>.</egXML>
</div>
[...]
</TEI>
Code: Select all
<_0:egXML xmlns:_0="http://www.tei-c.org/ns/Examples" valid="true">
For more information, consult the
<_0:ref target="mol:linking#linking_graphics"> guide to
linking graphic content</_0:ref>.</_0:egXML>
Since it doesn't happen with Saxon on the command line, I assume it must be something added by a serialization phase, but I can't find anything that looks relevant in the options, searching for prefix, serialize, namespace, or anything else I can think of.