Repository navigation
add processing of an <rng:ref> child of an <attList> - #823
Conversation
processing of an rng:ref child of an attList for TEI issue 2850.
|
I've just been testing this PR against TEIC/TEI#2999 , and the tests + build + additional test with the its_odd that @sydb suggests. This works to prepare the HTML documentation: for tei_its.html appears thus for
I'm trying one more test before merging: Let's see if the |
|
I've confirmed that a file using its markup validates against the built schema with the Relax NG patterns. (Had to look up how it's done at https://www.w3.org/TR/its/ and dig into the RNG output to see the attributes and expected patterns.) In my test file |
ebeshero
left a comment
There was a problem hiding this comment.
When we build the Guidelines with this PR and TEIC/TEI#2999, tests pass, the Guidelines build, HTML output for ITS test schema builds and validates.

This is part of addressing TEIC/TEI#2282. We have decided that an ODD-writer who wants to refer to a RELAX NG pattern (which theoretically defines an attribute) from within an
<attList>needs to use<rng:ref>, not<attRef>. Thus these changes add processing ofattList//rng:reffor schemas and HTML output.Passes both Test/ and Test2/. Output schemas seem correct. Output HTML is not pretty, but does the job.
Outstanding problems which should not, IMHO, prevent merging of this PR as it is:
bin/teitohtml --oddcmd) there is an extra<ref>element generated at the top of the<html:table rend="attList">. These are empty, so not visible when reading the HTML in a browser.<rng:ref>are indicated with some boilerplate text (“a RELAX NG pattern imported directly“ from common_tagdocs.xsl line 2133). It shouldn’t, of course; it should be a call totei:i18n('…')so that it can be internationalized and localized easily.<rng:ref>is not just in an<attList>, but in an<attList>which is itself the child of another<attList>.Reviewers: If you want to create a test ODD, you might use TEI/Exemplars/tei_its.odd as an example. (But use
<rng:ref>, not<attRef>for the RELAX NG patterns. The tei_its ODD currently uses the latter, but will switch to the former as soon as that PR is merged.)