Référence:Balises et Types communs dans le XML

De GeoGebra Manual
Aller à : navigation, rechercher

Le document suivant a été généré par une modification de la feuille de style de xs3p.

Il contient les définitions des balises et types utilisés dans les deux fichiers geogebra.xml et geogebra_macro.xml, qui sont la partie la plus importante du format de fichier GeoGebra. Pour une introduction sommaire, voir références XML .


Global Declarations

Element: construction

Name construction
Type Locally-defined complex type
Nillable no
<construction
title="xs:string [0..1]"
author="xs:string [0..1]"
date="xs:string [0..1]"
>
Start Choice [0..*]
<command
name="xs:string [1]"
> [1]
<input> ioType </input> [1]
<output> ioType </output> [1]
</command>
<element> ... </element> [1]
<expression
exp="xs:string [0..1]"
label="xs:string [0..1]"
type="elType [0..1]"
/> [1]
End Choice
</construction>

Element: element

Name element
Type Locally-defined complex type
Nillable no
Documentation

Subelements tooltipMode, javascript, ggbscript, sellectionAllowed and linkedGeo only available with GeoGebra >= 4.0.

<element
type="elType [0..1]"
label="xs:string [0..1]"
>
Start All [1]
<absoluteScreenLocation> xyCoords </absoluteScreenLocation> [0..1]
<allowReflexAngle> boolVal </allowReflexAngle> [0..1]
<auxiliary> boolVal </auxiliary> [0..1]
<arcSize> intVal </arcSize> [0..1]
<animation> animation </animation> [0..1]
<caption> stringVal </caption> [0..1]
<condition
showObject="xs:string [0..1]"
/> [0..1]
<checkbox
fixed="xs:boolean [0..1]"
/> [0..1]
<coefficients
rep="representation [0..1]"
data="data [0..1]"
/> [0..1]
<coords> coords </coords> [0..1]
<coordStyle
style="coordStyles [0..1]"
/> [0..1]
<decoration
type="decorTypes [0..1]"
/> [0..1]
<eigenvectors> eigenvectors </eigenvectors> [0..1]
<emphasizeRightAngle> boolVal </emphasizeRightAngle> [0..1]
<eqnStyle
style="eqnStyles [1]"
parameter="xs:string [0..1]"
/> [0..1]
<file
name="xs:string [0..1]"
/> [0..1]
<fixed> boolVal </fixed> [0..1]
<font
serif="xs:boolean [0..1]"
size="nonNegInt [0..1]"
style="nonNegInt [0..1]"
/> [0..1]
<forceReflexAngle> boolVal </forceReflexAngle> [0..1]
<ggbscript> stringVal </ggbscript> [0..1]
<inBackground> boolVal </inBackground> [0..1]
<interpolate> boolVal </interpolate> [0..1]
<javascript> stringVal </javascript> [0..1]
<keepTypeOnTransform> boolVal </keepTypeOnTransform> [0..1]
<isLaTeX> boolVal </isLaTeX> [0..1]
<lineStyle
thickness="lineThickness [0..1]"
type="lineTypes [0..1]"
typeHidden="xs:integer [0..1]"
/> [0..1]
<labelMode> intVal </labelMode> [0..1]
<labelOffset> xyCoords </labelOffset> [0..1]
<layer> intVal </layer> [0..1]
<linkedGeo
exp="xs:string [0..1]"
/> [0..1]
<matrix> matrix </matrix> [0..1]
<objColor> fillType </objColor> [1]
<outlyingIntersections> boolVal </outlyingIntersections> [0..1]
<pointSize> doubleVal </pointSize> [0..1]
<pointStyle
val="pointStyles [0..1]"
/> [0..1]
<selectionAllowed> boolVal </selectionAllowed> [0..1]
<show
object="xs:boolean [0..1]"
label="xs:boolean [0..1]"
ev="nonNegInt [0..1]"
/> [0..1]
<slider> slider </slider> [0..1]
<slopeTriangleSize> intVal </slopeTriangleSize> [0..1]
<spreadsheetTrace> spreadsheetTrace </spreadsheetTrace> [0..1]
<startPoint> expCoords </startPoint> [0..1]
<tooltipMode> tooltipModes </tooltipMode> [0..1]
<trace> boolVal </trace> [0..1]
<value
val="doubleOrBool [1]"
random="xs:bool [0..1]"
/> [0..1]
End All
</element>


Global Definitions

Type: animation

Super-types: None
Sub-types: None
Name animation
<...
step="xs:string [0..1]"
speed="xs:double [0..1]"
type="nonNegInt [0..1]"
playing="xs:boolean [0..1]"
/>

Type: boolVal

Super-types: None
Sub-types: None
Name boolVal
<...
val="xs:boolean [1]"
/>

Type: coords

Super-types: None
Sub-types: None
Name coords
<...
x="xs:double [1]"
y="xs:double [1]"
z="xs:double [1]"
w="xs:double [0..1]"
/>

Type: doubleVal

Super-types: None
Sub-types: None
Name doubleVal
<...
val="xs:double [1]"
/>

Type: eigenvectors

Super-types: None
Sub-types: None
Name eigenvectors
<...
x0="xs:double [1]"
x1="xs:double [1]"
y0="xs:double [1]"
y1="xs:double [1]"
z0="xs:double [1]"
z1="xs:double [1]"
/>

Type: expCoords

Super-types: None
Sub-types: None
Name expCoords
Documentation

Either exp (for relative start point) or numers x, y, z (for absolute start point) must be entered. Number parameter is valid only for image elements and reffers to one of the corners (1 to 3)

<...
number="nonNegInt [0..1]"
x="xs:double [0..1]"
y="xs:double [0..1]"
z="xs:double [0..1]"
exp="xs:string [0..1]"
/>

Type: fillType

Super-types: None
Sub-types: None
Name fillType
<...
r="nonNegInt [1]"
g="nonNegInt [1]"
b="nonNegInt [1]"
dynamicr="xs:string [0..1]"
dynamicg="xs:string [0..1]"
dynamicb="xs:string [0..1]"
alpha="xs:double [0..1]"
hatchAngle="xs:double [0..1]"
hatchDistance="xs:double [0..1]"
image="xs:string [0..1]"
inverseFill="xs:boolean [0..1]"
/>

Type: intVal

Super-types: None
Sub-types: None
Name intVal
<...
val="xs:int [1]"
/>

Type: ioType

Super-types: None
Sub-types: None
Name ioType
<...
a0="xs:string [0..1]"
a1="xs:string [0..1]"
a2="xs:string [0..1]"
a3="xs:string [0..1]"
a4="xs:string [0..1]"
a5="xs:string [0..1]"
a6="xs:string [0..1]"
a7="xs:string [0..1]"
a8="xs:string [0..1]"
a9="xs:string [0..1]"
a10="xs:string [0..1]"
a11="xs:string [0..1]"
/>

Type: matrix

Super-types: None
Sub-types: None
Name matrix
<...
A0="xs:double [1]"
A1="xs:double [1]"
A2="xs:double [1]"
A3="xs:double [1]"
A4="xs:double [1]"
A5="xs:double [1]"
/>

Type: rgbColor

Super-types: None
Sub-types: None
Name rgbColor
<...
r="nonNegInt [1]"
g="nonNegInt [1]"
b="nonNegInt [1]"
/>

Type: slider

Super-types: None
Sub-types: None
Name slider
<...
min="xs:string [0..1]"
max="xs:string [0..1]"
width="xs:double [1]"
x="xs:double [1]"
y="xs:double [1]"
fixed="xs:boolean [1]"
absoluteScreenLocation="xs:boolean [0..1]"
horizontal="xs:boolean [1]"
/>

Type: spreadsheetTrace

Super-types: None
Sub-types: None
Name spreadsheetTrace
<...
traceColumn1="xs:integer [0..1]"
traceColumn2="xs:integer [0..1]"
traceRow1="xs:integer [0..1]"
traceRow2="xs:integer [0..1]"
tracingRow="xs:integer [0..1]"
numRows="xs:integer [0..1]"
headerOffset="xs:integer [0..1]"
doColumnReset="xs:boolean [0..1]"
doRowLimit="xs:boolean [0..1]"
showLabel="xs:boolean [0..1]"
showTraceList="xs:boolean [0..1]"
doTraceGeoCopy="xs:boolean [0..1]"
/>

Type: stringVal

Super-types: None
Sub-types: None
Name stringVal
<...
val="xs:string [1]"
/>

Type: xyCoords

Super-types: None
Sub-types: None
Name xyCoords
<...
x="xs:double [1]"
y="xs:double [1]"
/>

Type: algebraStyles

Super-types: xs:int < algebraStyles (by restriction)
Sub-types: None
Name algebraStyles
Content
  • Base XSD Type: int
  • 0 <= value <= 2
Documentation

Affectation des valeurs : 0=valeur,1=définition,2=commande.

Type: angleUnits

Super-types: xs:string < angleUnits (by restriction)
Sub-types: None
Name angleUnits
Content
  • Base XSD Type: string
  • pattern = degree|radiant

Type: axisIds

Super-types: xs:int < axisIds (by restriction)
Sub-types: None
Name axisIds
Content
  • Base XSD Type: int
  • 0 <= value <= 2
Documentation

Meanings of values: 0=x, 1=y, 2=z

Type: axisTypes

Super-types: xs:int < axisTypes (by restriction)
Sub-types: None
Name axisTypes
Content
  • Base XSD Type: int
  • 0 <= value <= 3
Documentation

Affectation des valeurs : 0=trait plein, 1=fléché, 2=trait plein gras, 3=fléché gras

Type: coordStyles

Super-types: xs:string < coordStyles (by restriction)
Sub-types: None
Name coordStyles
Content
  • Base XSD Type: string
  • pattern = cartesian|polar|complex

Type: data

Super-types: xs:string < data (by restriction)
Sub-types: None
Name data
Content
  • Base XSD Type: string
  • pattern = \[(\[.*\],?)*\]

Type: decorTypes

Super-types: xs:int < decorTypes (by restriction)
Sub-types: None
Name decorTypes
Content
  • Base XSD Type: int
  • 0 <= value <= 6
Documentation

Affectation des valeurs : 0=aucune, 1=simple marque, 2=double marque, 3=triple marque, 4=simple chevron, 5=double chevron, 6=triple chevron, 2=point,3=L (style belge).

Type: doubleOrBool

Super-types: None
Sub-types: None
Name doubleOrBool
Content
  • Union of following types:
    • xs:double
    • xs:boolean

Type: elType

Super-types: xs:string < elType (by restriction)
Sub-types: None
Name elType
Content
  • Base XSD Type: string
  • pattern = angle|boolean|button|conic(part)?(3d)?|curvecartesian(3d)?|function(NVar)?|image|implicitpoly|line(3d)?|list|locus|numeric|point(3d)?|polygon(3d)?|polyline|quadric|ray(3d)?|segment(3d)?|text(field)?|vector
Documentation

Values "button", "implicitpoly", "polyline" and "textfield" only available for GeoGebra >=4.0

Type: eqnStyles

Super-types: xs:string < eqnStyles (by restriction)
Sub-types: None
Name eqnStyles
Content
  • Base XSD Type: string
  • pattern = implicit|explicit|specific|parametric

Type: gridTypes

Super-types: xs:int < gridTypes (by restriction)
Sub-types: None
Name gridTypes
Content
  • Base XSD Type: int
  • 0 <= value <= 2
Documentation

Affectation des valeurs : 0=cartésienne, 1=isométrique, 2=polaire

Type: lineThickness

Super-types: xs:int < lineThickness (by restriction)
Sub-types: None
Name lineThickness
Content
  • Base XSD Type: int
  • 1 <= value <= 13

Type: lineTypes

Super-types: xs:int < lineTypes (by restriction)
Sub-types: None
Name lineTypes
Content
  • Base XSD Type: int
  • value comes from list: {'0'|'10'|'15'|'20'|'30'}
Documentation

Affectation des valeurs : 0=trait plein, 10=tirets courts,15=tirets longs, 20= pointillés, 30=tirets-points

Type: nonNegInt

Super-types: xs:integer < nonNegInt (by restriction)
Sub-types: None
Name nonNegInt
Content
  • Base XSD Type: integer
  • value >= 0

Type: pointCapturings

Super-types: xs:int < pointCapturings (by restriction)
Sub-types: None
Name pointCapturings
Content
  • Base XSD Type: int
  • 0 <= value <= 3
Documentation

Affectation des valeurs : 0= Désactivée, 1=Approché de la Grille, 2=Attaché à a Grille, 3=Automatique.

Type: pointStyles

Super-types: xs:int < pointStyles (by restriction)
Sub-types: None
Name pointStyles
Content
  • Base XSD Type: int
  • -1 <= value <= 9
Documentation

Affectation des valeurs : -1=style par défaut, 0=disque, 1=croix, 2=cercle, 3=plus, 4=diamant plein, 5=diamant vide, 6=triangle nord, 7=triangle sud, 8=triangle est, 9=triangle ouest.

Type: positiveInt

Super-types: xs:integer < positiveInt (by restriction)
Sub-types: None
Name positiveInt
Content
  • Base XSD Type: integer
  • value >= 1

Type: representation

Super-types: xs:string < representation (by restriction)
Sub-types: None
Name representation
Content
  • Base XSD Type: string
  • pattern = array
Documentation

Possible ways for representing coefficients, only 1 possibility in 4.0

Type: rightAngleStyles

Super-types: xs:int < rightAngleStyles (by restriction)
Sub-types: None
Name rightAngleStyles
Content
  • Base XSD Type: int
  • 0 <= value <= 3
Documentation

Affectation des valeurs : 0=aucune, 1=carré, 2=point, 3=L (style belge).

Type: tickStyles

Super-types: xs:int < tickStyles (by restriction)
Sub-types: None
Name tickStyles
Content
  • Base XSD Type: int
  • 0 <= value <= 2
Documentation

Affectation des valeurs :0=principale et secondaire, 1=principales, 2=aucune

Type: tooltipModes

Super-types: xs:int < tooltipModes (by restriction)
Sub-types: None
Name tooltipModes
Content
  • Base XSD Type: int
  • 0 <= value <= 4

--Noel Lambert 21 décembre 2011 à 11:50 (CET)

© 2021 International GeoGebra Institute