[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: xsl/xhtml: passing through comments
Hi Bob, thanks a lot for your help - it did work! > * Bob Stayton <obof@fntruvyy.arg> [2005-07-18 17:02:41 -0700]: > > <xsl:if test="not(following-sibling::node()[1][self::comment()])"> Now the next issue is that when my comment is "between" elements, the space is just right: <arg><option><link linkend="opt-libdir">-B &lld;</link></option></arg> <!-- #ifdef UNIX --> <arg><option><link linkend="opt-link-set">-K <replaceable>linking-set</replaceable></link></option></arg> ==> [<code class="option"><a href="#opt-libdir">-B <em class="replaceable"><code>lisp-lib-dir</code></em></a></code>] <!--#ifdef UNIX--> [<code class="option"><a href="#opt-link-set">-K <em class="replaceable"><code>linking-set</code></em></a></code>] but when it is "inside" a "text element" (e.g., <para>), I have extra NL: This is the directory containing the linking sets and other data files. <!-- #ifdef UNIX --> This option is normally not necessary, because the installation directory is already built-in into the <command>clisp</command> executable. <!-- #endif --> Directory &lld; can be changed dynamically using the &symbol-macro; <varname>*LIB-DIRECTORY*</varname>. ===> This is the directory containing the linking sets and other data files. <!--#ifdef UNIX--> This option is normally not necessary, because the installation directory is already built-in into the <span><strong class="command">clisp</strong></span> executable. <!--#endif--> Directory <em class="replaceable"><code>lisp-lib-dir</code></em> can be changed dynamically using the so, I guess, I need to check whether I am inside a "text element" (i.e., a whitespace-preserving element) before sending a newline. (this is a purely cosmetic issue because an extra newline is inconsequential in HTML, but I would still like to fix that...) -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.memri.org/> <http://www.palestinefacts.org/> <http://www.dhimmi.com/> <http://www.mideasttruth.com/> <http://ffii.org/> Sufficiently advanced stupidity is indistinguishable from malice.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]