◇◆
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.)
OPTIONAL on element: <code>
Value | Meaning |
---|---|
Text, numbers, or special characters | The 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. |
Tagged Samples
Version 11 of C++
...
<code
code-type="user interface control"
language="C++"
language-version="11"
xml:space="preserve"
orientation="portrait"
position="anchor">
#include <conio.h>
#include<win_mous.cpp>
// Needed for mouse & win functions#define
...
</code>
...
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">
<xsl:template match="node()" mode="compare">
<xsl:copy copy-namespaces="no">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="compare"/>
</xsl:copy>
</xsl:template>
</code>
...