#15 <coderef> element not correct closed

open
nobody
None
5
2011-03-18
2011-03-18
torusJKL
No

When using coderef in jaxe it will create it ike this:
<example>
<title>Processing DITA</title>
<p>This code is an example of how to process DITA.</p>
<codeblock>
<coderef href="process-dita.xsl">
</coderef>
</codeblock>
</example>

This will fail when building an output file.

Correct implementation of this element would be
<example>
<title>Processing DITA</title>
<p>This code is an example of how to process DITA.</p>
<codeblock><coderef href="process-dita.xsl"/></codeblock>
</example>

See http://docs.oasis-open.org/dita/v1.2/os/spec/langref/coderef.html

Discussion

  • Indeed, the current markup is not even valid. Fortunately, this is easy to fix: we just need to change the display type for coderef from "zone" to "vide" (empty) in the config file.
    I don't think the spaces within codeblock would be a problem, would they ?