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] |
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. > > > > > > Tim, could you please consider this? > > > > > > note that the current XSL/groff style sheets are broken here... > > > > 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. > 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="' �'"/> > <xsl:with-param name="replacement" select="' '"/> > </xsl:call-template> That would only remove one space, not several spaces. > 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. Tim. */
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |