MobyleElement
Sebastien.Carrere@toulouse.inra.fr Sebastien.Letort@toulouse.inra.fr
Title : GetType Usage : $type = $elt->GetType( \$mandatory ); Prerequiste: none Function : return the type of the parameter regarding the elt's attributes Returns : a string constant CMD | SORTIE | ENTREE_1R | ENTREE_2R Args : $r_mandatory is set to 1 if this parameter is mandatory (and is not CMD) Error : none Globals : none
Note : la nouvelle DTD donne l'attribut 'ismaininput' mais comme je ne suis pas sûr pour le moment qu'un MainInput soit sans precondition, je laisse comme tel.
Title : GetText Usage : my $page = $elt->GetText( $child_name, $attr_name, $attr_val ); Prerequiste: none Function : return the content (#PCDATA) of the $child_name element which attribute name (=$attr_name) has the value $attr_val. It is used when an element have many child element but you want only one. Returns : a string Args : $child_name, the element name which contains the wanted text. $attr_name, the name of an attribute of the $child_name element $attr_val, the value of the $attr_name attribute. Error : none Globals : none