You talk about processing XHTML but I don't see its namespace used on any element. Perhaps that is the reason that the attributes are missing.
--
Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.
Am 30.08.19, 08:47, "Mark Giffin m1879(_at_)earthlink(_dot_)net" <xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> schrieb:
When I do the following simple XHTML output, I can get any attribute I
want in the XHTML output:
XML input:
<x>
<p>Here is my text.</p>
</x>
XSLT:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:output method="xml" encoding="utf-8" indent="yes"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
/>
<xsl:template match="/">
<html> <body>
<span class="myclass" data-toggle="tooltip"
data-placement="bottom">
<xsl:apply-templates/>
</span>
</body></html>
</xsl:template>
</xsl:stylesheet>
But when I run XHTML output with the DITA Open Toolkit v.3.3.2 using this:
<span class="myclass" data-toggle="tooltip" data-placement="bottom">
<xsl:apply-templates select="." mode="output-term">
<xsl:with-param name="displaytext"
select="normalize-space($displaytext)"/>
</xsl:apply-templates>
</span>
only the @class attribute appears in the output. The data-* attributes
are dropped. I've tried using <xsl:attribute> instead of literal text,
same result. What would cause this?
Thanks,
Mark