Here is the test source:
Code: Select all
<indexterm>12345678901234567890123456789012
<index-see>bar
<indexterm>baz</indexterm>
</index-see>
</indexterm>
I'm trying the following test:
Code: Select all
<sch:assert test="string-length(text()[1]) <= 33" role="warning">
the problem is that the descendant element content seems to be included in the count! The above should be valid, but it is getting flagged. How do I exclude the children from the string-length calculation?