Skip to content

Error on ODD to Compiled ODD conversion if @type value in <title> one of sample values #757

@SebastianKohler

Description

@SebastianKohler

https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-title.html lists main, sub etc. as sample values for @type on <title>.

When I add any of the sample values to @type on <title> in my TEI ODD file and try converting to a compiled ODD, TEIGarage gives an error:

Error: class pl.psnc.dl.ege.exception.ConverterException

Processing terminated by xsl:message at line 1952 in odd2odd.xsl

My <elementSpec> for <title> looks like this:

<elementSpec ident="title" mode="change">
	<attList>
		<attDef ident="period" mode="delete"/>
		<attDef ident="when-custom" mode="delete"/>
		<attDef ident="notBefore-custom" mode="delete"/>
		<attDef ident="notAfter-custom" mode="delete"/>
		<attDef ident="from-custom" mode="delete"/>
		<attDef ident="to-custom" mode="delete"/>
		<attDef ident="datingPoint" mode="delete"/>
		<attDef ident="datingMethod" mode="delete"/>
		<attDef ident="when-iso" mode="delete"/>
		<attDef ident="notBefore-iso" mode="delete"/>
		<attDef ident="notAfter-iso" mode="delete"/>
		<attDef ident="from-iso" mode="delete"/>
		<attDef ident="to-iso" mode="delete"/>
		<attDef ident="ana" mode="delete"/>
		<attDef ident="change" mode="delete"/>
		<attDef ident="corresp" mode="delete"/>
		<attDef ident="synch" mode="delete"/>
		<attDef ident="sameAs" mode="delete"/>
		<attDef ident="copyOf" mode="delete"/>
		<attDef ident="next" mode="delete"/>
		<attDef ident="prev" mode="delete"/>
		<attDef ident="exclude" mode="delete"/>
		<attDef ident="select" mode="delete"/>
		<attDef ident="xml:id" mode="delete"/>
		<attDef ident="n" mode="delete"/>
		<attDef ident="xml:base" mode="delete"/>
		<attDef ident="xml:space" mode="delete"/>
		<attDef ident="facs" mode="delete"/>
		<attDef ident="resp" mode="delete"/>
		<attDef ident="source" mode="delete"/>
		<attDef ident="subtype" mode="delete"/>
		<attDef ident="rend" mode="change">
			<valList type="closed" mode="change">
				<valItem mode="add" ident="bold"/>
				<valItem mode="add" ident="italics"/>
			</valList>
		</attDef>
		<attDef ident="type" mode="change">
			<valList type="closed" mode="change">
				<valItem mode="add" ident="host">
					<desc versionDate="2025-03-13" xml:lang="en">the title applies to a publication (journal, magazine, newspaper, anthology etc.), which acts as a container or host item for analytic items (e.g. articles, poems, or other works published as part of a larger item).</desc>
				</valItem>
				<valItem mode="add" ident="main">
					<desc versionDate="2025-05-07" xml:lang="en">the main title of the work in the document.</desc>
				</valItem>
			</valList>
		</attDef>
		<attDef ident="calendar" mode="delete"/>
		<attDef ident="level" mode="delete"/>
	</attList>
</elementSpec>

If I change <valItem mode="add" ident="main"> to a value that is not one of the sample values, the conversion is successful.

Why can't I add any of the sample values?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions