[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Aw: Attributes disappear in XHTML output

Subject: Aw: Attributes disappear in XHTML output
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 30 Aug 2019 07:01:08 -0000
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)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.