You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
2.0 KiB
93 lines
2.0 KiB
13 years ago
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<sect1 id="variables">
|
||
|
<sect1info>
|
||
|
<authorgroup>
|
||
|
<author
|
||
|
><firstname
|
||
|
>Keith</firstname
|
||
|
> <surname
|
||
|
>Isdale</surname
|
||
|
> <affiliation
|
||
|
> <address
|
||
|
><email
|
||
|
>k_isdale@tpg.com.au</email
|
||
|
></address>
|
||
|
</affiliation>
|
||
|
</author>
|
||
|
<othercredit role="translator"
|
||
|
><firstname
|
||
|
>Marek</firstname
|
||
|
><surname
|
||
|
>Laane</surname
|
||
|
><affiliation
|
||
|
><address
|
||
|
><email
|
||
|
>bald@online.ee</email
|
||
|
></address
|
||
|
></affiliation
|
||
|
><contrib
|
||
|
>Tõlge eesti keelde</contrib
|
||
|
></othercredit
|
||
|
>
|
||
|
</authorgroup>
|
||
|
</sect1info>
|
||
|
|
||
|
<title
|
||
|
>Muutujate kasutamine</title>
|
||
|
|
||
|
<para
|
||
|
>Kui inspektori dialoogi ei ole näha, kasuta menüükäsku <menuchoice
|
||
|
> <guimenu
|
||
|
>Tööriistad</guimenu
|
||
|
> <guimenuitem
|
||
|
>Näita inspektoreid</guimenuitem
|
||
|
> </menuchoice
|
||
|
>. </para>
|
||
|
|
||
|
<para
|
||
|
>Kohalikud ja globaalsed muutujad on näha inspektoridialoogi kaardil. Järgnev näide kujutab endast XSLT koodi lõiku, mis deklareerib globaalse ja kohaliku muutuja. </para>
|
||
|
<informalexample>
|
||
|
<programlisting
|
||
|
><xsl:variable name="globalvariable" select="'foo'"/>
|
||
|
|
||
|
<xsl:template match="/"/>
|
||
|
<xsl:param name="localvariable" select="'bar'"/>
|
||
|
</xsl:template match="/"/>
|
||
|
</programlisting>
|
||
|
</informalexample>
|
||
|
<para
|
||
|
>Hiirega mõnel nimekirja muutujal klõpsates näeb selle kokkuvõtlikku infot dialoogi allosas. Kui muutujas esineb avaldis, näiteks </para>
|
||
|
<informalexample>
|
||
|
<programlisting
|
||
|
><xsl:variable name="changeable" select="'oldValue'" />
|
||
|
</programlisting>
|
||
|
</informalexample>
|
||
|
<para
|
||
|
>siis saab valida uue XPathi, sisestades uue <guilabel
|
||
|
>muutuja avaldise</guilabel
|
||
|
> ning klõpsates nupule <guibutton
|
||
|
>Määra avaldis</guibutton
|
||
|
>.</para>
|
||
|
|
||
|
<screenshot>
|
||
|
<screeninfo
|
||
|
>Muutujate kaart</screeninfo>
|
||
|
<mediaobject>
|
||
|
<imageobject>
|
||
|
<imagedata fileref="variables_window.png" format="PNG"/>
|
||
|
</imageobject>
|
||
|
<textobject
|
||
|
><phrase
|
||
|
>Muutujate kaart</phrase
|
||
|
></textobject>
|
||
|
<caption
|
||
|
><para
|
||
|
>Muutujate kaart</para
|
||
|
></caption>
|
||
|
</mediaobject>
|
||
|
</screenshot>
|
||
|
|
||
|
<para
|
||
|
>Klõps nimekirjas oleval muutujakirjel põhjustab kursori liikumise peaaknas osutatud failile ja reanumbrile. </para>
|
||
|
</sect1>
|