Skip to content

odd2odd.xsl sometimes fails to include some moduleSpec elements in the output #786

@YvesMarcoux

Description

@YvesMarcoux

Say we have tiny.odd:

<schemaSpec ident="tiny" start="TEI" source="tei:current"> 
  <moduleRef key="tei"/>
  <moduleRef key="core"/>
</schemaSpec>

which we compile into a valid tiny_compiled.odd with odd2odd.xsl just fine.

If we now have tiny-prime.odd:

<schemaSpec ident="tiny-prime" start="TEI" source="tiny_compiled.odd"> 
  <moduleRef key="tei"/>
  <moduleRef key="core"/>
  <moduleRef key="textstructure" source="tei:current"/>
</schemaSpec>

odd2odd.xsl will compile it into an invalid ODD, which fails to include a <moduleSpec> element for textstructure.

For memory, this is what the <moduleSpec> for textstructure looks like in p5subset.xml:

<moduleSpec xml:id="DDS" ident="textstructure">
  <idno type="FPI">Default Text Structure</idno>
  <desc xml:lang="en" versionDate="2006-09-13">Default text structure</desc>
...
</moduleSpec>

I understand the prime goal of odd2odd.xsl is not to produce valid ODDs, but it's rather nice when it does.

Also, I wonder if this has an impact on the resulting schema (e.g. RNG) when odd2odd.xsl is chained with another, schema-producing, XSLT.

Metadata

Metadata

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