Re: About tests 37-41 (headers)

All these examples also work with my rules :-)

On Wed, 15 Jun 2005, Chris Ridpath wrote:

> These tests are designed to detect when header levels are skipped in a 
> downward sequence. For example:
> h1 followed by an h2 is OK
> h1 followed by an h3 is bad
>
> Another example:
> h3 followed by an h4 is OK
> h3 followed by an h5 is bad
>
> Header levels can be skipped in an upward sequence. For example:
> h4 followed by an h2 is OK
>

> On Wed, 15 Jun 2005, Vicente Luque Centeno wrote:
>> Those h2 having no preceding h1 are an error:
>> 
> The group does not have a test for whether the first header in the document 
> must be an h1.

Neither of my expressions say that explicitly. However, by proper 
deduction and combination of my rules, you will implicitly obtain that 
there is no other possibility. So, yes, the first header in the document
must be an h1 (or there should be no header at all) if tests 37-41 should 
be followed. There is no explicit rule for that, but it is derived from 
tests 37-41.

> There are no tests that check for multiple h1s in the same document.

That's why I did not include a rule saying:

count(//h1) <= 1

Cheers.

Vicente Luque Centeno
Dep. Ingeniería Telemática
Universidad Carlos III de Madrid
http://www.it.uc3m.es/vlc

Received on Thursday, 16 June 2005 15:44:19 UTC