[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Callouts in XHTML
Jason Diamond <jason@injektilo.org> writes: > Hello. > > I'm running into a weird discrepancy using the HTML and XHTML XSL > stylesheets. For both of them, programlisting inside a programlistingco gets > turned into a pre element. With the HTML stylesheets, the callout img > elements are being inserted directly into the pre element. For the XHTML > stylesheets, the pre element is closed, after which the img is inserted, and > then the pre element is opened again. This is causing both Mozilla and IE to > display the callout image at the beginning of the line following the line > it's supposed to be on. It renders fine when using the HTML stylesheets. > > I'm trying to track the problem down (assuming this isn't intentional) but > thought I would see if anybody else has ran into this problem and > (hopefully) already discovered the cause or fixed it. For what it's worth, I tried it and get the same thing: the HTML stylesheets render the programlistingco callouts correctly, but the XHTML stylesheets don't. As a workaround/alternative, have you tried using programlisting/co markup instead of programlistingco/areaspec? If you want an example of that, take at look at the example for screenco in the Definitive Guide. (Despite being in the screenco reference page, it's actually an example of using co with screen, not an example of screenco.) You can mark up programlisting with co the same way (the screen element in the example could just be swapped out with programlisting). If you mark up your source with programlisting/co instead of programlistingco/areaspec, I'm pretty sure that both the XHTML and HTML stylesheets will render it correctly. --Mike
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC