element <var> (global)
Namespace:
Type:
anonymous complexType
Content:
empty, 5 attributes
Defined:
globally in pretext.xsd; see XML source
Includes:
definitions of 5 attributes
Used:
XML Representation Summary
<var
   
 = 
("popup" | "buttons" | "checkboxes" | "none" | "essay")
 = 
xs:anySimpleType
 = 
xs:anySimpleType
 = 
xs:anySimpleType
 = 
("angle" | "decimal" | "exponent" | "formula" | "fraction" | "inequality" | "integer" | "interval" | "logarithm" | "limit" | "number" | "point" | "syntax" | "quantity" | "vector")
/>
Included in content model of elements (33):
li (defined in ListItem group),
li (in ol defined in ExerciseOrderedList group),
line (defined in LongLine group),
m,
p (defined in Paragraph group),
q,
subtitle (defined in Subtitle group),
title (defined in Title group),
Known Usage Locations
Annotation
The WeBWorK "var" element appears in the RELAX-NG schema as a child of many elements, but almost always as a descendant of a "p" element or a "cell" element. As an element that is only relevant for a WeBWorK problem, occurrences of "var" must be within a "webwork" element. A Schematron rule will check on these two situations.
XML Source (w/o annotations (1); see within schema source)
<xs:element name="var">
<xs:complexType>
<xs:attribute name="form">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="popup"/>
<xs:enumeration value="buttons"/>
<xs:enumeration value="checkboxes"/>
<xs:enumeration value="none"/>
<xs:enumeration value="essay"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="name"/>
<xs:attribute name="evaluator"/>
<xs:attribute name="width"/>
<xs:attribute name="category">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="angle"/>
<xs:enumeration value="decimal"/>
<xs:enumeration value="exponent"/>
<xs:enumeration value="formula"/>
<xs:enumeration value="fraction"/>
<xs:enumeration value="inequality"/>
<xs:enumeration value="integer"/>
<xs:enumeration value="interval"/>
<xs:enumeration value="logarithm"/>
<xs:enumeration value="limit"/>
<xs:enumeration value="number"/>
<xs:enumeration value="point"/>
<xs:enumeration value="syntax"/>
<xs:enumeration value="quantity"/>
<xs:enumeration value="vector"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
Attribute Detail (all declarations; defined within this component only; 5/5)
category
Type:
anonymous simpleType (restriction of xs:token)
Use:
optional
Attribute Value
enumeration of xs:token
Enumeration:
"angle", "decimal", "exponent", "formula", "fraction", "inequality", "integer", "interval", "logarithm", "limit", "number", "point", "syntax", "quantity", "vector"
Anonymous simpleType
Type Derivation Tree
xs:token (restriction)
  simpleType
Derivation:
restriction of xs:token
Facets:
enumeration:
"angle", "decimal", "exponent", "formula", "fraction", "inequality", "integer", "interval", "logarithm", "limit", "number", "point", "syntax", "quantity", "vector"
XML Source (see within schema source)
<xs:attribute name="category">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="angle"/>
<xs:enumeration value="decimal"/>
<xs:enumeration value="exponent"/>
<xs:enumeration value="formula"/>
<xs:enumeration value="fraction"/>
<xs:enumeration value="inequality"/>
<xs:enumeration value="integer"/>
<xs:enumeration value="interval"/>
<xs:enumeration value="logarithm"/>
<xs:enumeration value="limit"/>
<xs:enumeration value="number"/>
<xs:enumeration value="point"/>
<xs:enumeration value="syntax"/>
<xs:enumeration value="quantity"/>
<xs:enumeration value="vector"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>

evaluator
Type:
xs:anySimpleType
Use:
optional
XML Source (see within schema source)
<xs:attribute name="evaluator"/>

form
Type:
anonymous simpleType (restriction of xs:token)
Use:
optional
Attribute Value
enumeration of xs:token
Enumeration:
"popup", "buttons", "checkboxes", "none", "essay"
Anonymous simpleType
Type Derivation Tree
xs:token (restriction)
  simpleType
Derivation:
restriction of xs:token
Facets:
enumeration:
"popup", "buttons", "checkboxes", "none", "essay"
XML Source (see within schema source)
<xs:attribute name="form">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="popup"/>
<xs:enumeration value="buttons"/>
<xs:enumeration value="checkboxes"/>
<xs:enumeration value="none"/>
<xs:enumeration value="essay"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>

name
Type:
xs:anySimpleType
Use:
optional
XML Source (see within schema source)
<xs:attribute name="name"/>

width
Type:
xs:anySimpleType
Use:
optional
XML Source (see within schema source)
<xs:attribute name="width"/>

XML schema documentation generated with FlexDoc/XML 1.12.5 using FlexDoc/XML XSDDoc 2.9.2 template set