This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Re: xml/groff: comments in text=>whitespacestripped?!


> * In message <20030608221305.GF30636@redhat.com>
> * On the subject of "Re: [docbook-apps] Re: xml/groff: comments in text=>whitespace stripped?!"
> * Sent on Sun, 8 Jun 2003 23:13:05 +0100
> * Honorable Tim Waugh <twaugh@redhat.com> writes:
>
> On Sun, Jun 08, 2003 at 02:04:59PM -0400, Sam Steingold wrote:
> 
> > > > 1. apply templates
> > > > 2. replace newlines with a special non-white character, e.g. NULL
> > > > 3. normalize-space
> > > > 4. replace [space NULL] with newline and then [NULL] with newline.
> > > Step 4 looks like it could end up being very slow.
> > > Do you have a suggestion for a reasonable implementation?
> > why would 4 be slower than 2?
> Because it would need to be recursive.

why?

> > what's wrong with:
> > 
> >   <xsl:call-template name="string.subst">
> >    <xsl:with-param name="string"><xsl:value-of select="."/></xsl:with-param>
> >    <xsl:with-param name="target" select="'&#32;&#0;'"/>
> >    <xsl:with-param name="replacement" select="'&#10;'"/>
> >   </xsl:call-template>
> 
> That would only remove one space, not several spaces.

this is done after normalize-space(), so there will be no more than one
space.

> > PS. note that currently <itemizedlist> nested in a <para> is converted
> > into straight text with embedded ".TP o " strings:
> 
> Yes, nested lists are broken at the moment, that's true.

when should we expect a fix? weeks? months?
is it being worked on at all?

thanks!

-- 
Sam Steingold (http://www.podval.org/~sds) running RedHat9 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
Lisp is a way of life.  C is a way of death.

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]