Subject: Re: [xsl] Removing unwanted space From: "Joel Kalvesmaki director@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 5 Jun 2021 05:54:11 -0000 |
<xsl:if test="$is-not-initial-indentation and matches(., '^\s')"> <xsl:value-of select="' '"/> </xsl:if> <xsl:value-of select="normalize-space(.)"/> <xsl:if test="$is-not-final-indentation and matches(., '\S\s+$')"> <xsl:value-of select="' '"/> </xsl:if> </xsl:template>
Joel, to answer your question (incompletely), given
<p> <anchor> </anchor> The rain in <bold> <underline> Spain </underline> </bold> <italic> is </italic> wet. </p>
I'd likely want
<p><anchor> </anchor> The rain in <bold> <underline> Spain </underline> </bold> <italic> is </italic> wet.</p>
-- Joel Kalvesmaki Director, Text Alignment Network http://textalign.net
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Removing unwanted space, Peter Flynn peter@xx | Thread | Re: [xsl] Removing unwanted space, Charles O'Connor coc |
Re: [xsl] Removing unwanted space, Peter Flynn peter@xx | Date | Re: [xsl] Removing unwanted space, Peter Flynn peter@xx |
Month |