Subject: Re: [xsl] Re: RE: Counting number of characters of sibling text node From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 22 May 2002 14:45:00 -0400 |
> > But if you do > > > > <xsl:variable name="this-and-preceding-siblings"> > > <xsl:copy-of select=".|preceding-sibling::node()"/> > > </xsl:variable> > > <xsl:value-of select="string-length($this-and-preceding-siblings)"/> > > > > you may get better results. > > > No you won't. string-length() works on the first node in the supplied > node-set.
Both answers are not completely correct:
-- Wendell's because he hasn't converted the RTF into a node-set before applying the string-length() function on it.
-- Mike's, because the variable contains not a (flat) node-set, but a whole tree.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: RE: Counting number of ch, Dimitre Novatchev | Thread | [xsl] Re: Re: Re: RE: Counting numb, Dimitre Novatchev |
[xsl] Re: RE: Counting number of ch, Dimitre Novatchev | Date | [xsl] Re: Re: Re: RE: Counting numb, Dimitre Novatchev |
Month |