[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi,
I'm trying to count the number of <P> tags withing a <![CDATA[ section.
Doing this:
<xsl:value-of select="string-length(.) - string-length(translate(., '<P>', ''))"/>
almost gets me there -- but counts each instance of <, P, and > separately. Is there a way of searching for an *entire* string, rather than individual characters?
Thanks!
Dan Cederholm
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] count number of
s
Subject: [xsl] count number of <P>s From: Dan Cederholm <dan@xxxxxxxxxxxx> Date: Thu, 4 Apr 2002 16:56:20 -0500 |
Hi,
I'm trying to count the number of <P> tags withing a <![CDATA[ section.
Doing this:
<xsl:value-of select="string-length(.) - string-length(translate(., '<P>', ''))"/>
almost gets me there -- but counts each instance of <, P, and > separately. Is there a way of searching for an *entire* string, rather than individual characters?
Thanks!
Dan Cederholm
-- dan@xxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] passing parameters from o, Joerg Heinicke | Thread | Re: [xsl] count number of <P>s, Joerg Heinicke |
Re: [xsl] Oracle / Text, mjyoungblut | Date | [xsl] Java Extension returning <>, Venkateshwar Bommine |
Month |