language-version

Code Language Version

Version of the language in which this code is written, e.g. "3.0", for code written in "Javascript 3.0". (The "javascript" is recorded in the @language attribute.)

Used on Element: <code>

ValueMeaning
Text, numbers, or special charactersThe version of the language in the code sample, such as “3.0”, “8A”, etc.
Restriction@language-version is an optional attribute; there is no default.

Example 1

Version 11 of C++:
...
<code   
  code-type="user interface control" 
  language="C++"
  language-version="11"
  xml:space="preserve" 
  orientation="portrait"
  position="anchor">
#include &lt;conio.h>
#include&lt;win_mous.cpp>
// Needed for mouse &amp; win functions#define
...</code>
...

Example 2

XSLT 2.0:
...
<code code-type="xml" code-version="1.0"
  language="xslt" language-version="2.0"
  platforms="windows mac unix" executable="no"
  xml:space="preserve" orientation="portrait"
  position="anchor">
&lt;xsl:template match="node()" mode="compare"&gt;
  &lt;xsl:copy copy-namespaces="no"&gt;
    &lt;xsl:copy-of select="@*"/&gt;
    &lt;xsl:apply-templates mode="compare"/&gt;
  &lt;/xsl:copy&gt;
&lt;/xsl:template&gt;
</code>
...