Re: [docbook-apps] Re: formatting in is lost</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=docbook-apps@lists.oasis-open.org&q=from:%22Mads+Ipsen%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Mads Ipsen</span></span></a></span> <span class="date"><a href="/search?l=docbook-apps@lists.oasis-open.org&q=date:20070326" rel="nofollow">Mon, 26 Mar 2007 22:57:50 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>On Wed, 21 Mar 2007, Bob Stayton wrote: > When I test it, I get the xref in the title to resolve properly. The > keycap, on the other hand, outputs only a <span> with no class attribute. > That's a bug, as there is no way for CSS to know how to style it. ></pre><pre> Sorry for replying so late, but I had to dig a little into things in order to understand what was causing xref to get ignored: Some month ago, I posted a question on how to get figure titles formatted as Figure X.Y: bla bla Here 'Figure X.Y' should be bold, whereas the rest of the caption should be ordinary body text. I think Bob came up with the following suggestion (<a rel="nofollow" href="http://lists.oasis-open.org/archives/docbook-apps/200701/msg00115.html">http://lists.oasis-open.org/archives/docbook-apps/200701/msg00115.html</a>): This part customizes the gentext template: <xsl:param name="local.l10n.xml" select="document('')"/> <l:i18n xmlns:l="<a rel="nofollow" href="http://docbook.sourceforge.net/xmlns/l10n/1.0"">http://docbook.sourceforge.net/xmlns/l10n/1.0"</a>;;> <l:l10n language="en"> <l:context name="title"> <l:template name="figure" text="Figure&#160;%n.&#160;"/> </l:context> </l:l10n> </l:i18n> This is the customized formal.object.heading: <xsl:template name="formal.object.heading"> <xsl:param name="object" select="."/> <xsl:param name="title"> <xsl:apply-templates select="$object" mode="object.title.markup"> <xsl:with-param name="allow-anchors" select="1"/> </xsl:apply-templates> </xsl:param> <p class="title"> <xsl:choose> <xsl:when test="self::figure"> <b> <xsl:copy-of select="$title"/> </b> <xsl:apply-templates select="." mode="title.markup"/> </xsl:when> <xsl:otherwise> <b> <xsl:copy-of select="$title"/> </b> </xsl:otherwise> </xsl:choose> </p> </xsl:template> Inserting this redefinition in the cust. layer removes the formatting of the xref. Any ideas on how to fix this? It also strange that a <keycap> or <mousebutton> looses its class output in the HTML output. A <guimenuitem> goes through just fine, and both are defined in inline.xsl as <xsl:template match="keycap"> <xsl:call-template name="inline.boldseq"/> </xsl:template> <xsl:template match="mousebutton"> <xsl:call-template name="inline.charseq"/> </xsl:template> <xsl:template match="guimenuitem"> <xsl:call-template name="inline.charseq"/> </xsl:template> I believe this also will be true for XHTML and FO output as well. Best regards, Mads > Bob Stayton > Sagehill Enterprises > DocBook Consulting > [EMAIL PROTECTED] > > > ----- Original Message ----- > From: "Mads Ipsen" <[EMAIL PROTECTED]> > To: "Norman Walsh" <[EMAIL PROTECTED]> > Cc: <docbook-apps@lists.oasis-open.org> > Sent: Tuesday, March 20, 2007 11:58 PM > Subject: Re: [docbook-apps] Re: formatting in <title> is lost > > > On Tue, 20 Mar 2007, Norman Walsh wrote: > > > / Mads Ipsen <[EMAIL PROTECTED]> was heard to say: > > | If I do something like: > > | > > | <figure id=3D"fig.mbmain.water"> > > | <title> > > | Water molecule constructed with Molecular Builder. The > > | molecule was obtained simply by hovering the mouse over > > | the carbon atom in the &methane; molecule shown in > > | <xref linkend=3D"fig.mbmain.methane="/> and pressing the > > | <keycap>O</keycap> key. > > | </title> > > | ... > > | </figure> > > | > > | then the xref link and the keycap formatting is lost in the figure > > title > > | generated by the html.xsl style sheets. Within the ordinary text body, > > | these structures off course come out fine. > > | > > | Any (simple) solutions? > > > > It works for me: > > > > Figure 1. Water molecule constructed with Molecular Builder. The > > molecule was obtained simply by hovering the mouse over the carbon > > atom in the methane molecule shown in Figure 2, "Methane molecule > > constructed with Molecular Builder." and pressing the O key. > > > > What processor, version, etc. are you using? > > > > Be seeing you, > > norm > > > > -- > > Norman Walsh <[EMAIL PROTECTED]> | Few men are so sufficiently > > <a rel="nofollow" href="http://www.oasis-open.org/docbook/">http://www.oasis-open.org/docbook/</a> | discerning to appreciate all the > > Chair, DocBook Technical Committee | evil that they do.--La > > | Rochefoucauld > > > > Hey, > > Here are some specifics: > > xsltproc --version > =================== > Using libxml 20626, libxslt 10117 and libexslt 813 > xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt 813 > libxslt 10117 was compiled against libxml 20626 > libexslt 813 was compiled against libxml 20626 > > HTML XSL style sheets: > ====================== > 1.72.0 > > DTD: > ====== > DocBook XML DTD V4.5 > > Best, > > Mads > > +---------------------------------+-------------------------+ > | Mads Ipsen | | > | Dept. of Chemistry | phone: +45-35320220 | > | H.C.Ørsted Institute | fax: +45-35320322 | > | Universitetsparken 5 | | > | DK-2100 Copenhagen Ø, Denmark | [EMAIL PROTECTED] | > +---------------------------------+-------------------------+ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > +---------------------------------+-------------------------+ | Mads Ipsen | | | Dept. of Chemistry | phone: +45-35320220 | | H.C.Ørsted Institute | fax: +45-35320322 | | Universitetsparken 5 | | | DK-2100 Copenhagen Ø, Denmark | [EMAIL PROTECTED] | +---------------------------------+-------------------------+ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg08551.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#08595">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#08595">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg08596.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg08542.html">[docbook-apps] formatting in <title> is lost</a></span> <span class="sender italic">Mads Ipsen</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg08544.html">[docbook-apps] Re: formatting in <title> is lost</a></span> <span class="sender italic">Norman Walsh</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg08546.html">Re: [docbook-apps] Re: formatting in <title> i...</a></span> <span class="sender italic">Mads Ipsen</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg08551.html">Re: [docbook-apps] Re: formatting in <title&g...</a></span> <span class="sender italic">Bob Stayton</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject">Re: [docbook-apps] Re: formatting in <tit...</span> <span class="sender italic">Mads Ipsen</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg08596.html">Re: [docbook-apps] Re: formatting in &l...</a></span> <span class="sender italic">Bob Stayton</span></li> </ul> </ul> </ul> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: [docbook-apps] Re: formatting in <title> is lost"> <input type="hidden" name="msgid" value="Pine.LNX.4.58.0703270845270.6686@osc.kiku.dk"> <input type="hidden" name="relpath" value="docbook-apps@lists.oasis-open.org/msg08595.html"> <input type="submit" value=" Mads Ipsen "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="docbook-apps@lists.oasis-open.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search docbook-apps"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/docbook-apps@lists.oasis-open.org/">docbook-apps - all messages</a></li> <li class="icons-about"><a href="/docbook-apps@lists.oasis-open.org/info.html">docbook-apps - about the list</a></li> <li class="icons-expand"><a href="/search?l=docbook-apps@lists.oasis-open.org&q=subject:%22Re%5C%3A+%5C%5Bdocbook%5C-apps%5C%5D+Re%5C%3A+formatting+in+%3Ctitle%3E+is+lost%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg08551.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg08596.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">Pine.LNX.4.58.0703270845270.6686@osc.kiku.dk</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9d2b34461ff1aea1',t:'MTc3MTg5NjY5NA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>