[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Aw: Attributes disappear in XHTML output
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)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|