Riferimenti:Tag e tipi comuni XML

Da GeoGebra Manual.
Versione del 10 dic 2019 alle 09:27 di Mathmum (discussione | contributi) (→‎Tipo: axisTypes)
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)

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: cascell

XML Instance Representation
<cascell>
<cellPair> [1..*]
Start Sequence [0..1]
<inputCell> [1]
<expression> ... </expression> [1]
</inputCell>
<outputCell> [1]
<expression> ... </expression> [1]
</outputCell>
End Sequence
</cellPair>
</cascell>

Elemento: construction

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]"
type="xs:string [0..1]"
var="xs:string [0..1]"
> [1]
<casMap> casMap </casMap> [0..1]
<input> ioType </input> [1]
<outputSizes> stringVal </outputSizes> [0..1]
<output> ioType </output> [1]
</command>
<element> ... </element> [1]
<cascell> ... </cascell> [1]
<expression
exp="xs:string [0..1]"
label="xs:string [0..1]"
type="elType [0..1]"
/> [1]
End Choice
</construction>

Elemento: element

XML Instance Representation
<element
type="elType [0..1]"
label="xs:string [0..1]"
>
Start Choice [0..*]
<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]
<comboBox> boolVal </comboBox> [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]
<casMap> casMap </casMap> [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]
<isShape> boolVal </isShape> [0..1]
<font> fontProperties </font> [0..1]
<angleStyle> intVal </angleStyle> [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="nonNegInt [0..1]"
type="lineTypes [0..1]"
typeHidden="xs:integer [0..1]"
opacity="xs:double [0..1]"
/> [0..1]
<labelMode> intVal </labelMode> [0..1]
<labelOffset> xyCoords </labelOffset> [0..1]
<layer> intVal </layer> [0..1]
<levelOfDetail> intVal </levelOfDetail> [0..1]
<linkedGeo
exp="xs:string [0..1]"
/> [0..1]
<listType
val="elType [0..1]"
/> [0..1]
<matrix> matrix </matrix> [0..1]
<objColor> objColorType </objColor> [0..1]
<bgColor> rgbaColor </bgColor> [0..1]
<outlyingIntersections> boolVal </outlyingIntersections> [0..1]
<pointSize> doubleVal </pointSize> [0..1]
<fading> doubleVal </fading> [0..1]
<pointStyle
val="pointStyles [0..1]"
/> [0..1]
<dimensions
width="xs:double [0..1]"
height="xs:double [0..1]"
/> [0..1]
<embed
id="xs:int [0..1]"
app="xs:string [0..1]"
/> [0..1]
<selectedIndex> intVal </selectedIndex> [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
val="tooltipModes [0..1]"
/> [0..1]
<tags> [0..1]
<tag
key="xs:string [0..1]"
value="xs:string [0..1]"
/> [0..1]
</tags>
<trace> boolVal </trace> [0..1]
<symbolic> boolVal </symbolic> [0..1]
<userinput
show="xs:boolean [0..1]"
value="xs:string [0..1]"
valid="xs:boolean [0..1]"
/> [0..1]
<value
val="doubleOrBool [1]"
random="xs:boolean [0..1]"
/> [0..1]
End Choice
</element>

Elemento: expression

XML Instance Representation
<expression
value="xs:string [0..1]"
error="xs:boolean [0..1]"
evalCommand="xs:string [0..1]"
evalComment="xs:string [0..1]"
/>
==Definizioni globali==
                    

Tipo: animation

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

Tipo: boolVal

Super-types: None
Sub-types: None
XML Instance Representation
<...
val="xs:boolean [1]"
/>

Tipo: casMap

Super-types: None
Sub-types: None
XML Instance Representation
<...>
<entry
key="xs:string [0..1]"
val="xs:string [0..1]"
/> [1..*]
</...>

Tipo: coords

Super-types: None
Sub-types: None
XML Instance Representation
<...
x="xs:double [0..1]"
y="xs:double [0..1]"
z="xs:double [0..1]"
w="xs:double [0..1]"
ox="xs:double [0..1]"
oy="xs:double [0..1]"
oz="xs:double [0..1]"
ow="xs:double [0..1]"
vx="xs:double [0..1]"
vy="xs:double [0..1]"
vz="xs:double [0..1]"
vw="xs:double [0..1]"
/>

Tipo: doubleVal

Super-types: None
Sub-types: None
XML Instance Representation
<...
val="xs:double [1]"
/>

Tipo: eigenvectors

Super-types: None
Sub-types: None
XML Instance Representation
<...
x0="xs:double [1]"
x1="xs:double [1]"
x2="xs:double [0..1]"
y0="xs:double [1]"
y1="xs:double [1]"
y2="xs:double [0..1]"
z0="xs:double [1]"
z1="xs:double [1]"
z2="xs:double [0..1]"
/>

Tipo: expCoords

Super-types: None
Sub-types: None

È necessario inserire exp (per il punto iniziale) oppure i numeri x, y, z (per il 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: fontProperties

Super-types: None
Sub-types: None
XML Instance Representation
<...
serif="xs:boolean [0..1]"
size="nonNegInt [0..1]"
sizeM="xs:double [0..1]"
style="nonNegInt [0..1]"
/>

Tipo: intVal

Super-types: None
Sub-types: None
XML Instance Representation
<...
val="xs:int [1]"
/>

Tipo: ioType

Super-types: None
Sub-types: None
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]"
a12="xs:string [0..1]"
a13="xs:string [0..1]"
a14="xs:string [0..1]"
a15="xs:string [0..1]"
a16="xs:string [0..1]"
a17="xs:string [0..1]"
a18="xs:string [0..1]"
a19="xs:string [0..1]"
a20="xs:string [0..1]"
a21="xs:string [0..1]"
a22="xs:string [0..1]"
a23="xs:string [0..1]"
a24="xs:string [0..1]"
a25="xs:string [0..1]"
a26="xs:string [0..1]"
a27="xs:string [0..1]"
a28="xs:string [0..1]"
a29="xs:string [0..1]"
a30="xs:string [0..1]"
a31="xs:string [0..1]"
a32="xs:string [0..1]"
a33="xs:string [0..1]"
a34="xs:string [0..1]"
a35="xs:string [0..1]"
a36="xs:string [0..1]"
a37="xs:string [0..1]"
a38="xs:string [0..1]"
a39="xs:string [0..1]"
a40="xs:string [0..1]"
a41="xs:string [0..1]"
a42="xs:string [0..1]"
a43="xs:string [0..1]"
a44="xs:string [0..1]"
a45="xs:string [0..1]"
a46="xs:string [0..1]"
a47="xs:string [0..1]"
a48="xs:string [0..1]"
a49="xs:string [0..1]"
/>

Tipo: matrix

Super-types: None
Sub-types: None
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]"
A6="xs:double [0..1]"
A7="xs:double [0..1]"
A8="xs:double [0..1]"
A9="xs:double [0..1]"
/>

Tipo: objColorType

Super-types: None
Sub-types: None
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]"
dynamica="xs:string [0..1]"
fillType="fills [0..1]"
colorSpace="colorSpaces [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: rgbColor

Super-types: None
Sub-types: None
XML Instance Representation
<...
r="nonNegInt [1]"
g="nonNegInt [1]"
b="nonNegInt [1]"
/>

Tipo: rgbaColor

Super-types: None
Sub-types: None
XML Instance Representation
<...
r="nonNegInt [1]"
g="nonNegInt [1]"
b="nonNegInt [1]"
alpha="nonNegInt [0..1]"
/>

Tipo: slider

Super-types: None
Sub-types: None
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]"
showAlgebra="xs:boolean [0..1]"
/>

Tipo: spreadsheetTrace

Super-types: None
Sub-types: None
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-types: None
Sub-types: None
XML Instance Representation
<...
val="xs:string [1]"
/>

Tipo: xyCoords

Super-types: None
Sub-types: None
XML Instance Representation
<...
x="xs:double [1]"
y="xs:double [1]"
/>

Tipo: algebraStyles

Super-types: xs:int < algebraStyles (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 2

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


Tipo: angleUnits

Super-types: xs:string < angleUnits (per restrizione)
Sub-types: None
  • Base XSD Type: string
  • pattern = degree|radiant

Tipo: axisIds

Super-types: xs:int < axisIds (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 2

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


Tipo: axisTypes

Super-types: xs:int < axisTypes (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 15

Significato dei valori: bit0 = disegna freccia positivi, bit1 = grassetto, bit2 = disegna freccia negativi, bit3 = freccia piena

Tipo: colorSpaces

Super-types: xs:int < colorSpaces (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 2

Significato dei valori: 0=RGB, 1=HSB, 2=HSL.


Tipo: coordStyles

Super-types: xs:string < coordStyles (per restrizione)
Sub-types: None
  • Base XSD Type: string
  • pattern = cartesian|polar|complex

Tipo: data

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

Tipo: decorTypes

Super-types: xs:int < decorTypes (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 6

Significato dei valori: 0=nessuno, 1=trattino singolo, 2=doppio trattino, 3=triplo trattino, 4=freccia singola, 5=doppia freccia, 6=tripla freccia . 1=quadrato, 2=punto ,3=L (Stile Belga).


Tipo: doubleOrBool

Super-types: None
Sub-types: None

Tipo: elType

Super-types: xs:string < elType (per restrizione)
Sub-types: None
  • Base XSD Type: string
  • pattern = (angle|line|plane|point|polygon|polyline|ray|segment|vector|(curve|surface)cartesian|implicit(poly|surface))(3d)?|boolean|button|conic(3d)?(part)?|function(NVar)?|image|list|locus|numeric|quadric(limited|part)?|text(field)?|turtle|net|polyhedron|penstroke|audio|video|embed

Tipo: eqnStyles

Super-types: xs:string < eqnStyles (per restrizione)
Sub-types: None
  • Base XSD Type: string
  • pattern = implicit|explicit|specific|parametric

Tipo: fills

Super-types: xs:int < fills (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 7

Significato dei valori:

  • 0=NORMALE,
  • 1=TRATTEGGIO,
  • 2=TRATTEGGIO INCROCIATO,
  • 3=SCACCHI,
  • 4=PUNTINI,
  • 5=NIDO D'APE,
  • 6=MATTONI,
  • 7=IMMAGINE


Tipo: gridTypes

Super-types: xs:int < gridTypes (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 3

Significato dei valori: 0=cartesiana (principale), 1=isometrica, 2=polare, 3=cartesiana (principali+secondarie)


Tipo: javaDouble

Super-types: xs:string < javaDouble (per restrizione)
Sub-types: None
  • Base XSD Type: string
  • pattern = Infinity|-Infinity|NaN|(-?[0-9.E]*)

Tipo: lineTypes

Super-types: xs:int < lineTypes (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • value proviene dalla lista: {'0'|'10'|'15'|'20'|'30'}

Significato dei valori: 0=pieno, 10=tratteggio corto,15=tratteggio lungo, 20=puntini, 30=tratteggio e punto


Tipo: nonNegInt

Super-types: xs:integer < nonNegInt (per restrizione)
Sub-types: None
  • Base XSD Type: integer
  • value >= 0

Tipo: pointCapturings

Super-types: xs:int < pointCapturings (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 3

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


Tipo: pointStyles

Super-types: xs:int < pointStyles (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • -1 <= value <= 9

Significato dei valori: -1=usa predefiniti, 0=punto pieno, 1=croce, 2=punto vuoto, 3=simbolo somma, 4=diamante pieno, 5=diamante vuoto, 6=triangolo nord, 7=triangolo sud, 8=triangolo est, 9=triangolo ovest.


Tipo: positiveInt

Super-types: xs:integer < positiveInt (per restrizione)
Sub-types: None
  • Base XSD Type: integer
  • value >= 1

Tipo: representation

Super-types: xs:string < representation (per restrizione)
Sub-types: None
  • Base XSD Type: string
  • pattern = array

Modi possibili per rappresentare i coefficienti, solo 1 possibilità in 4.0


Tipo: rightAngleStyles

Super-types: xs:int < rightAngleStyles (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 3

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


Tipo: specialDouble

Super-types: xs:string < specialDouble (per restrizione)
Sub-types: None
  • Base XSD Type: string
  • pattern = Infinity|-Infinity

Tipo: tickStyles

Super-types: xs:int < tickStyles (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 2

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

Tipo: tooltipModes

Super-types: xs:int < tooltipModes (per restrizione)
Sub-types: None
  • Base XSD Type: int
  • 0 <= value <= 4
© 2024 International GeoGebra Institute