DocBook Attributes Pane Bug?
Posted: Tue Oct 22, 2019 9:43 am
Hi,
I've been converting HTML to DocBook and sometimes, when the editor opens the result of an XSLT transformation, I can see an attribute duplicated in the Attributes list to the right. For example, given this XML fragment, a result of converting HTML index pseudo markup to DocBook index markup:
The Attributes Pane displays this:
https://previews.dropbox.com/p/thumb/AA ... ize_mode=5
The type attribute was just created from this XSLT:
You should know that the result XML is not valid DocBook - it's the output of an intermediate step and contains a mix of HTML, DocBook, and various processing markup belonging to other namespaces.
My oXygen version is 21.1, build 2019090904, and I'm on Ubuntu 19.04, if that helps. Please let me know if you need anything else from me.
Thanks,
/Ari
I've been converting HTML to DocBook and sometimes, when the editor opens the result of an XSLT transformation, I can see an attribute duplicated in the Attributes list to the right. For example, given this XML fragment, a result of converting HTML index pseudo markup to DocBook index markup:
Code: Select all
<indexterm xmlns="http://docbook.org/ns/docbook" type="caselaw"><secondary>Göta hovrätts dom den 5 april 2013 i mål nr B 41-13</secondary></indexterm>
https://previews.dropbox.com/p/thumb/AA ... ize_mode=5
The type attribute was just created from this XSLT:
Code: Select all
<xsl:template match="xh:span[@class='index']" mode="HTML2DB_INDEX">
<xsl:element name="indexterm" namespace="http://docbook.org/ns/docbook">
<xsl:choose>
<xsl:when test="xh:index-type = 'Rättsfall'">
<xsl:attribute name="type" select="'caselaw'"/>
</xsl:when>
</xsl:choose>
<xsl:apply-templates select="node()" mode="HTML2DB_INDEX"/>
</xsl:element>
</xsl:template>
My oXygen version is 21.1, build 2019090904, and I'm on Ubuntu 19.04, if that helps. Please let me know if you need anything else from me.
Thanks,
/Ari