Re: Indexterm embedded in indexterm/primary or indexterm/secondary

"Norman Walsh" <[email protected]> Wed, 23 Feb 2022 18:59:31 +0000
Newsgroups gmane.text.docbook.misc
Message-ID <[email protected]>
Yes, that’s stupid. GitHub.com/docbook/docbook <http://github.com/docbook/docbook> 

On Wed, 23 Feb 2022, at 18:25, Richard Hamilton wrote:
> Because of a fat-finger error, I just found that if you embed an indexterm inside primary or secondary of an indexterm, the result is legal DocBook according to the 5.0 through 5.2 schemas, including Schematron.
> 
> <indexterm>
>   <primary>
>     <indexterm><primary>term</primary></indexterm>
>   </primary>
> </indexterm>
> 
> Probably not a big deal in practice, except that it does lead to an error in an epub when tested with epubcheck, and if the term inside the embedded indexterm appears nowhere else, you get an error saying that there are no entries for that index key.
> 
> If no one sees any reason for that to be valid, I can file an exception (though I forget where, exactly, to do that:-).
> 
> Best regards,
> Dick Hamilton
> -------
> XML Press
> XML for Technical Communicators
> http://xmlpress.net
> [email protected]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
>