Re: [xsl] template match question

Subject: Re: [xsl] template match question
From: Syd Bauman <Syd_Bauman@xxxxxxxxx>
Date: Fri, 10 Dec 2010 22:54:54 -0500
Try 
   <xsl:template match="block[string-length(normalize-space(.))=1]">
before you dive in to trying to  actually add up the lengths of the
<inline>s.

> Great, many thanks, that's exactly what I meant.
> 
> However, on trying it out, I found that any newlines and
> indentation within my <block> element contribute to the
> string_length, so that my <block> is no longer 1 character long
> when they are present.
> 
> So I would like to ask again, but this time: how to match any
> <block> in which the sum of the lengths of the child <inline>
> elements is 1 character? (My newlines and indentation will be
> outside any <inline> element, but all the "content" is inside
> <inline> elements.) Do I need to program a loop somehow, or is
> there a handy function?

Current Thread