nlbdev / nordic-epub3-dtbook-migrator

Tools for converting between a strict subset of DTBook and EPUB3.
http://nlbdev.github.io/nordic-epub3-dtbook-migrator/
GNU Lesser General Public License v2.1
8 stars 7 forks source link

Update validation rules based on feedback: the structure of the content files #409

Closed josteinaj closed 3 years ago

josteinaj commented 3 years ago

RelaxNG: https://github.com/nlbdev/nordic-epub3-dtbook-migrator/blob/guidelines-revision/src/main/resources/xml/schema/2020-1/nordic-html5.rng

josteinaj commented 3 years ago

Allow two types of nesting for lic: li/lic/a and li/a/lic. See: https://github.com/nlbdev/epub3-guidelines-update/issues/105#issuecomment-758662200

martinpub commented 3 years ago

Not sure if the lic nesting types was implemented? Ping @AndersEkl @kalaspuffar

Other than that, I think this issue can be closed.

kalaspuffar commented 3 years ago

Hi @martinpub

After testing I realized that this is implemented as expected.

My test case that is allowed:

            <ul>
                <li>
                    <span class="lic">Normal LIC</span>
                </li>
                <li>
                    <span class="lic">
                        <a href="http://example.com">http://example.com</a>
                    </span>
                </li>
                <li>
                    <a href="http://example.com">
                        <span class="lic">http://example.com</span>
                        <span class="lic">http://example.com</span>
                    </a>
                </li>
            </ul>

Best regards Daniel

martinpub commented 3 years ago

Great, closing then.