From: SourceForge.net <no...@so...> - 2005-09-27 14:22:55
|
Bugs item #1254532, was opened at 2005-08-09 06:58 Message generated for change (Comment added) made by xmldoc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1254532&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: DocBook XSL Group: HTML >Status: Pending Resolution: Fixed Priority: 5 Submitted By: Sam Steingold (sds) Assigned to: Michael Smith (xmldoc) Summary: acronym/remark should be converted to acronym/title in XHTML Initial Comment: <acronym>IDE<remark>Integrated Development Environment</remark></acronym> is converted to <acronym>IDE<remark></remark></acronym> is converted to <acronym title="Integrated Development Environment"><span class="acronym">IDE</span></acronym> the " " is an artifact of source formatting and should be removed ---------------------------------------------------------------------- >Comment By: Michael Smith (xmldoc) Date: 2005-09-27 23:22 Message: Logged In: YES user_id=118135 Try marking up your DocBook source as: <acronym>IDE<alt>Integrated Development Environment</alt></acronym> ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2005-09-27 23:00 Message: Logged In: YES user_id=5735 I installed the snapshot, modified catalog.xml to use it, commented out my acronym customization, and it is broken now: <dt>A.2.2. <a href="#faq-ide">Where is the IDEIntegrated Development Environment?</a></dt> <td align="left" valign="top"><p>Where is the <acronym class="acronym">IDE<em><span class="remark">Integrated Development Environment</span></em></acronym>?</p></td> ---------------------------------------------------------------------- Comment By: Michael Smith (xmldoc) Date: 2005-09-27 13:47 Message: Logged In: YES user_id=118135 Sam, I just checked in a change that causes Acronym and Abbrev to be output as Acronym and Abbr in HTML. Please try it and let me know if it works OK for you. If it does, then I will go ahead and close out this issue. Note that I implemented it by adding a new param, "wrapper-name" to the inline.charseq template. So you can now call inline.charseq like this: <xsl:template match="foo"> <xsl:call-template name="inline.charseq"> <xsl:with-param name="wrapper-name">bar</xsl:with-param> </xsl:call-template> </xsl:template> Which will give you the following HTML output: <bar class="foo">... Otherwise, if you don't pass the "wrapper-name" param to it you just get the default "span" output, as before: <span class="foo">... ---------------------------------------------------------------------- Comment By: Michael Smith (xmldoc) Date: 2005-09-27 13:47 Message: Logged In: YES user_id=118135 A fix for this issue has been added to the current codebase. Please test the fix with the latest snapshot from: http://docbook.sourceforge.net/snapshots/ ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2005-09-26 22:58 Message: Logged In: YES user_id=5735 I tried that and it does not work: browsers display <acronym title="...">...</acronym> specially but they do NOT display <span title="...">...</span> specially. ---------------------------------------------------------------------- Comment By: Michael Smith (xmldoc) Date: 2005-09-26 14:23 Message: Logged In: YES user_id=118135 What I meant was, why don't you just use Acronym/Alt in your DocBook XML source? The stock stylesheets should automatically convert the contents of that Alt to the value of a Title attribute on the HTML Span generated for the Acronym. The affect would be the same as what your are doing with your Remark customization now; so it obviates the need for you to maintain that part of your customization layer. ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2005-09-26 13:12 Message: Logged In: YES user_id=5735 because xhtml1-strict does not allow alt in acronym. ---------------------------------------------------------------------- Comment By: Michael Smith (xmldoc) Date: 2005-09-26 11:20 Message: Logged In: YES user_id=118135 Sam, Why not just use Acroynm/Alt? ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2005-09-26 00:16 Message: Logged In: YES user_id=5735 oops. my customization now is <!-- DocBook: [acronym]FOO[remark]BAR[/remark][/acronym] XHTML: [acronym title="BAR"]FOO[/acronym] --> <xsl:template match="acronym"> <acronym> <xsl:attribute name="title"> <xsl:value-of select="normalize-space(remark)"/> </xsl:attribute> <xsl:apply-imports/> </acronym> </xsl:template> <xsl:template match="acronym/remark"/> I suggest including this into the distribution. ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2005-09-25 09:15 Message: Logged In: YES user_id=193218 I seem to be missing something here. When I look at the stock HTML and XHTML stylesheets, I don't see where a remark inside an acronym is turned into a title. An alt element is, though. Are you using a customization? ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2005-09-25 09:11 Message: Logged In: YES user_id=193218 I seem to be missing something here. When I look at the stock HTML and XHTML stylesheets, I don't see where a remark inside an acronym is turned into a title. An alt element is, though. Are you using a customization? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1254532&group_id=21935 |