Subject: Aw: [xsl] Attributes disappear in XHTML output From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 30 Aug 2019 07:01:08 -0000 |
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@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 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 XSL-List info and archiveEasyUnsubscribe (by email)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Attributes disappear in X, Mark Giffin m1879@xx | Thread | [xsl] Using sibling value in stream, Martynas Jusevičius |
[xsl] Attributes disappear in XHTML, Mark Giffin m1879@xx | Date | Re: [xsl] Attributes disappear in X, Imsieke, Gerrit, le- |
Month |