Riferimenti:Tag e tipi comuni XML

Da GeoGebra Manual.

Il seguente documento è stato generato da una modifica del foglio di stile xs3p: contiene le definizioni dei tag e dei tipi utilizzati sia nei file geogebra.xml che nei file geogebra_macro.xml, che sono la parte principale nel formato di file di GeoGebra. Per una breve introduzione consultare la pagina riferimenti XML.

Dichiarazioni globali

Elemento: construction

Nome construction
Tipo Complesso, definito localmente
Nillable no
Abstract no
XML Instance Representation
<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>

Elemento: element

Nome element
Tipo Complesso, definito localmente
Nillable no
Abstract no
Documentazione

I sottoelementi tooltipMode, javascript, ggbscript, sellectionAllowed e linkedGeo only sono disponibili solo a partire da GeoGebra v. 4.0.

XML Instance Representation
<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>
                    ==Definizioni globali==
                    

Tipo: animation

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome animation
Abstract no
XML Instance Representation
<...
step="xs:string [0..1]"
speed="xs:double [0..1]"
type="nonNegInt [0..1]"
playing="xs:boolean [0..1]"
/>

Tipo: boolVal

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome boolVal
Abstract no
XML Instance Representation
<...
val="xs:boolean [1]"
/>

Tipo: coords

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome coords
Abstract no
XML Instance Representation
<...
x="xs:double [1]"
y="xs:double [1]"
z="xs:double [1]"
w="xs:double [0..1]"
/>

Tipo: doubleVal

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome doubleVal
Abstract no
XML Instance Representation
<...
val="xs:double [1]"
/>

Tipo: eigenvectors

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome eigenvectors
Abstract no
XML Instance Representation
<...
x0="xs:double [1]"
x1="xs:double [1]"
y0="xs:double [1]"
y1="xs:double [1]"
z0="xs:double [1]"
z1="xs:double [1]"
/>

Tipo: expCoords

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome expCoords
Abstract no
Documentazione

Possono essere immessi sia exp (per punto iniziale relativo) che numeri x, y, z (per punto iniziale assoluto). Il parametro number è valido solo per elementi immagine e si riferisce a uno dei corner (da 1 a 3)

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

Tipo: fillType

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome fillType
Abstract no
XML Instance Representation
<...
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]"
/>

Tipo: intVal

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome intVal
Abstract no
XML Instance Representation
<...
val="xs:int [1]"
/>

Tipo: ioType

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome ioType
Abstract no
XML Instance Representation
<...
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]"
/>

Tipo: matrix

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome matrix
Abstract no
XML Instance Representation
<...
A0="xs:double [1]"
A1="xs:double [1]"
A2="xs:double [1]"
A3="xs:double [1]"
A4="xs:double [1]"
A5="xs:double [1]"
/>

Tipo: rgbColor

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome rgbColor
Abstract no
XML Instance Representation
<...
r="nonNegInt [1]"
g="nonNegInt [1]"
b="nonNegInt [1]"
/>

Tipo: slider

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome slider
Abstract no
XML Instance Representation
<...
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]"
/>

Tipo: spreadsheetTrace

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome spreadsheetTrace
Abstract no
XML Instance Representation
<...
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]"
/>

Tipo: stringVal

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome stringVal
Abstract no
XML Instance Representation
<...
val="xs:string [1]"
/>

Tipo: xyCoords

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome xyCoords
Abstract no
XML Instance Representation
<...
x="xs:double [1]"
y="xs:double [1]"
/>

Tipo: algebraStyles

Super-tipi: xs:int < algebraStyles (per restrizione)
Sotto-tipi: Nessuno
Nome algebraStyles
Content
  • Base XSD Type: int
  • 0 <= value <= 2
Documentazione

Significato dei valori:0=valore,1=definizione,2=comando.

Tipo: angleUnits

Super-tipi: xs:string < angleUnits (per restrizione)
Sotto-tipi: Nessuno
Nome angleUnits
Content
  • Base XSD Type: string
  • pattern = degree|radiant

Tipo: axisIds

Super-tipi: xs:int < axisIds (per restrizione)
Sotto-tipi: Nessuno
Nome axisIds
Content
  • Base XSD Type: int
  • 0 <= value <= 2
Documentazione

Significato dei valori: 0=x, 1=y, 2=z

Tipo: axisTypes

Super-tipi: xs:int < axisTypes (per restrizione)
Sotto-tipi: Nessuno
Nome axisTypes
Content
  • Base XSD Type: int
  • 0 <= value <= 3
Documentazione

Significato dei valori:0=pieno,1=freccia,2=grassetto pieno,3=grassetto pieno freccia

Tipo: coordStyles

Super-tipi: xs:string < coordStyles (per restrizione)
Sotto-tipi: Nessuno
Nome coordStyles
Content
  • Base XSD Type: string
  • pattern = cartesian|polar|complex

Tipo: data

Super-tipi: xs:string < data (per restrizione)
Sotto-tipi: Nessuno
Nome data
Content
  • Base XSD Type: string
  • pattern = \[(\[.*\],?)*\]

Tipo: decorTypes

Super-tipi: xs:int < decorTypes (per restrizione)
Sotto-tipi: Nessuno
Nome decorTypes
Content
  • Base XSD Type: int
  • 0 <= value <= 6
Documentazione

Significato dei valori: 0=nessuno, 1=singola tacca,2=doppia tacca, 3=tripla tacca, 4=freccia semplice, 5=freccia doppia, 6=freccia tripla.quadrato, 2=punto,3=L (stile belga).

Tipo: doubleOrBool

Super-tipi: Nessuno
Sotto-tipi: Nessuno
Nome doubleOrBool
Content
  • Unione dei seguenti tipi:
    • xs:double
    • xs:boolean

Tipo: elType

Super-tipi: xs:string < elType (per restrizione)
Sotto-tipi: Nessuno
Nome 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
Documentazione

I valori "button", "implicitpoly", "polyline" e "textfield" sono disponibili a partire da GeoGebra v. 4.0

Tipo: eqnStyles

Super-tipi: xs:string < eqnStyles (per restrizione)
Sotto-tipi: Nessuno
Nome eqnStyles
Content
  • Base XSD Type: string
  • pattern = implicit|explicit|specific|parametric

Tipo: gridTypes

Super-tipi: xs:int < gridTypes (per restrizione)
Sotto-tipi: Nessuno
Nome gridTypes
Content
  • Base XSD Type: int
  • 0 <= value <= 2
Documentazione

Significato dei valori: 0=cartesiana, 1=isometrica, 2 polare

Tipo: lineThickness

Super-tipi: xs:int < lineThickness (per restrizione)
Sotto-tipi: Nessuno
Nome lineThickness
Content
  • Base XSD Type: int
  • 1 <= value <= 13

Tipo: lineTypes

Super-tipi: xs:int < lineTypes (per restrizione)
Sotto-tipi: Nessuno
Nome lineTypes
Content
  • Base XSD Type: int
  • value dalla lista: {'0'|'10'|'15'|'20'|'30'}
Documentazione

Significato dei valori: 0=piena, 10=tratteggio corto,15=tratteggio lungo,20=punti,30=punto linea

Tipo: nonNegInt

Super-tipi: xs:integer < nonNegInt (per restrizione)
Sotto-tipi: Nessuno
Nome nonNegInt
Content
  • Base XSD Type: integer
  • value >= 0

Tipo: pointCapturings

Super-tipi: xs:int < pointCapturings (per restrizione)
Sotto-tipi: Nessuno
Nome pointCapturings
Content
  • Base XSD Type: int
  • 0 <= value <= 3
Documentazione

Significato dei valori: 0=non attivo, 1=attivo, 2=sulla griglia,3=automatico.

Tipo: pointStyles

Super-tipi: xs:int < pointStyles (per restrizione)
Sotto-tipi: Nessuno
Nome pointStyles
Content
  • Base XSD Type: int
  • -1 <= value <= 9
Documentazione

Significato dei valori: -1=usa predefinito, 0=pallino pieno, 1=croce, 2=pallino vuoto, 3=segno più, 4=diamante pieno, 5=diamante vuoto, 6=triangolo nord, 7=triangolo sud, 8=triangolo est, 9=triangolo ovest.

Tipo: positiveInt

Super-tipi: xs:integer < positiveInt (per restrizione)
Sotto-tipi: Nessuno
Nome positiveInt
Content
  • Base XSD Type: integer
  • value >= 1

Tipo: representation

Super-tipi: xs:string < representation (per restrizione)
Sotto-tipi: Nessuno
Nome representation
Content
  • Base XSD Type: string
  • pattern = array
Documentazione

Vari modi per rappresentare i coefficienti, solo 1 possibilità nella v. 4.0

Tipo: rightAngleStyles

Super-tipi: xs:int < rightAngleStyles (per restrizione)
Sotto-tipi: Nessuno
Nome rightAngleStyles
Content
  • Base XSD Type: int
  • 0 <= value <= 3
Documentazione

Significato dei valori: 0=nessuno, 1=quadrato, 2=punto,3=L (stile belga).

Tipo: tickStyles

Super-tipi: xs:int < tickStyles (per restrizione)
Sotto-tipi: Nessuno
Nome tickStyles
Content
  • Base XSD Type: int
  • 0 <= value <= 2
Documentazione

Significato dei valori:0=maggiore minore,1=maggiore,2=nessuno

Tipo: tooltipModes

Super-tipi: xs:int < tooltipModes (per restrizione)
Sotto-tipi: Nessuno
Nome tooltipModes
Content
  • Base XSD Type: int
  • 0 <= value <= 4
© 2024 International GeoGebra Institute