xsl-list
[Top] [All Lists]

Re: [xsl] test on string-length of text() for element with node

2011-08-05 09:35:13
I assume "it doesn't work" means you're not getting the right length? -- If
so try using normalize-space().

string-length(maritalstatus/text()) == 11

string-length(normalize-space(maritalstatus/text())) == 10

Murray

I also thought so, but I don't know why its not working.

If 'textstring' is placed direct after the starttag <maritalstatus>,
followed by the child elements it works.

But in this case it doesn't work




--~------------------------------------------------------------------
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>
--~--