elml:link

The element link allows to link internally (to other parts of the lesson), externally (to other sources in the
internet) or to downloadable material (local on the GITTA server in the multimedia folder or external via the
internet/ftp/etc on another server).

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
cssClass xs:string optional
icon xs:string optional
legend xs:string optional
The attribute legend contains a string representing an image or other elements legend.
role xs:string optional
size xs:string optional
The attribute size contains the file size of downloadable material (e.g. 7KB or 15MB).
target elml:targetType optional
The attribute target allows to specify if the link should e.g. be openend in a new window (_blank) or in the
same window (_top). The attribute allows any strings. If you want to limit the allowed strings (e.g. only '_blank' and '_top') then you'll need to add a xs:redefine section to your validate.xsd file instead of the xs:include sections that includes elml.xsd and redefine the this attribute group as to only allow the specific strings for the attribute target.
targetLabel elml:LabelType optional
The attribute targetLabel contains a label specified within an element within the same lesson (specifies
the target element of an internal link).
targetLesson elml:PredefinedLabelsType optional
The attribute targetLesson contains one of the lesson labels defined in the validate.xsd.
targetLessonLang elml:LanguageType optional
The attribute targetLessonLang contains the definition of the language of the target lesson.
type xs:string optional
The attribute type contains a string describing the type of a linked element (e.g. pdf for a PDF-Document,
or shp for a Shape-File). This is especially useful for links to downloadable material.
uri xs:anyURI optional
The attribute uri contains a valid URI.

Used By

Source

<xs:element name="link">
  <xs:annotation>
    <xs:documentation>The element link allows to link internally (to other parts of the lesson), externally (to other sources in the internet) or to downloadable material (local on the GITTA server in the multimedia folder or external via the internet/ftp/etc on another server).</xs:documentation>
  </xs:annotation>
  <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element ref="elml:multimedia"/>
      <xs:element ref="elml:newLine"/>
    </xs:choice>
    <xs:attributeGroup ref="elml:UriImp"/>
    <xs:attributeGroup ref="elml:LegendImp"/>
    <xs:attributeGroup ref="elml:IconImp"/>
    <xs:attributeGroup ref="elml:RoleImp"/>
    <xs:attributeGroup ref="elml:CSSClassImp"/>
    <!--Note: text is allowed within! -->
  </xs:complexType>
</xs:element>

Sample