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

Subject: Re: [xsl] test on string-length of text() for element with node
From: "Murray McDonald" <m.mcdonald@xxxxxxxxx>
Date: Fri, 5 Aug 2011 10:35:21 -0400
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

Current Thread