xsl-list
[Top] [All Lists]

Re: [xsl] template match question

2010-12-10 21:28:44
G. Ken Holman wrote:

If I've understood you correctly, this is what you need:

   <xsl:template match="block[string-length(.)=1]">

The block is matched if its string length is one character.

But beware of possible white space surrounding the <inline>
elements. These will also be counted unless disabled with
xsl:strip-space.
-- 
Piet van Oostrum
Cochabamba. URL: http://pietvanoostrum.com/
Nu Fair Trade woonartikelen op http://www.zylja.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>