<html>
<head>
<title>function-available() ֐</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">function-available() ֐</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
w肳ꂽ֐ XSLT vZbTɑ΂ėpł邩ǂ𒲂ׂ܂B̊֐gpƁAXML hLg邽߂ɓ̊֐płȂꍇłAX^CV[g݌vł܂B </td></tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">
<p>O֐̖OBʏA̖O͖OԂgpĐݒ肵܂B֐̖OԂ null łȂꍇÅ֐͊g֐łBȊȌꍇA֐ XSLT ܂ XPath dlŒ`Ă֐ 1 łB </p>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">o</td>
</tr>
<tr>
<td colspan="2" class="description">
<p>֐płꍇ̓u[l <span class="LITERAL">true</span>AȊȌꍇ <span class="LITERAL">false</span>B </p>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">`</td>
</tr>
<tr>
<td colspan="2" class="description">
<p>XSLT 15 ߁uFallbackv </p>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">
<p> XML hLggp <span class="LITERAL">function-available()</span> ֐eXg܂B</p>
<span class="PROGRAMLISTING"><pre>
&lt;?xml version="1.0"?&gt;
&lt;list&gt;
  &lt;title&gt;A few of my favorite albums&lt;/title&gt;
  &lt;listitem&gt;A Love Supreme&lt;/listitem&gt;
  &lt;listitem&gt;Beat Crazy&lt;/listitem&gt;
  &lt;listitem&gt;Here Come the Warm Jets&lt;/listitem&gt;
  &lt;listitem&gt;Kind of Blue&lt;/listitem&gt;
  &lt;listitem&gt;London Calling&lt;/listitem&gt;
  &lt;listitem&gt;Remain in Light&lt;/listitem&gt;
<!--<?troff .Nd 10?>-->
  &lt;listitem&gt;The Joshua Tree&lt;/listitem&gt;
  &lt;listitem&gt;The Indestructible Beat of Soweto&lt;/listitem&gt;
&lt;/list&gt;</pre></span>
<p>X^CV[ĝ͎ƂłB</p>
<span class="PROGRAMLISTING"><pre>
&lt;?xml version="1.0"?&gt;
&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:jpeg="class:JPEGWriter"
  extension-element-prefixes="jpeg"&gt;

  &lt;xsl:output method="text"/&gt;

  &lt;xsl:variable name="newline"&gt;
&lt;xsl:text&gt;
&lt;/xsl:text&gt;
  &lt;/xsl:variable&gt;

  &lt;xsl:template match="/"&gt;
    &lt;xsl:value-of select="$newline"/&gt;
    &lt;xsl:for-each select="list/listitem"&gt;
      &lt;xsl:choose&gt;
        &lt;xsl:when test="function-available('jpeg:createJPEG')"&gt; 
          &lt;xsl:value-of 
            select="jpeg:createJPEG(., 'bg.jpg', 
            concat('album', position(), '.jpg'), 
            'Swiss 721 Bold Condensed', 'BOLD', 22, 52, 35)"/&gt;
          &lt;xsl:text&gt;See the file &lt;/xsl:text&gt;
          &lt;xsl:value-of select="concat('album', position(), '.jpg')"/&gt;
          &lt;xsl:text&gt; to see the title of album #&lt;/xsl:text&gt;
          &lt;xsl:value-of select="position()"/&gt;
          &lt;xsl:value-of select="$newline"/&gt;
        &lt;/xsl:when&gt;
        &lt;xsl:otherwise&gt;
          &lt;xsl:value-of select="position()"/&gt;
          &lt;xsl:text&gt;. &lt;/xsl:text&gt;
          &lt;xsl:value-of select="."/&gt;
          &lt;xsl:value-of select="$newline"/&gt;
        &lt;/xsl:otherwise&gt;
      &lt;/xsl:choose&gt;
    &lt;/xsl:for-each&gt;
  &lt;/xsl:template&gt;

&lt;/xsl:stylesheet&gt;</pre></span>
<!--<?troff .Nd 10?>-->
<p>̃X^CV[gł́A<span class="LITERAL">createJPEG()</span> ֐𗘗płꍇÅ֐ĂяoāAׂĂ̂Cɓ̃Aõ^Cgp JPEG t@C쐬܂B֐płȂꍇA^Cgo̓Xg[ɏ݂܂B<span class="LITERAL">createJPEG()</span> ֐płꍇ̌ʂ͎̂ƂłB</p>
<span class="PROGRAMLISTING"><pre>

See the file album1.jpg to see the title of album #1
See the file album2.jpg to see the title of album #2
See the file album3.jpg to see the title of album #3
See the file album4.jpg to see the title of album #4
See the file album5.jpg to see the title of album #5
See the file album6.jpg to see the title of album #6
See the file album7.jpg to see the title of album #7
See the file album8.jpg to see the title of album #8
</pre></span>
<p>ׂẴAo^Cg (<span class="LITERAL">&lt;listitem&gt;</span> vf̃eLXg)  JPEG OtBbNɕϊ܂B̗ł́At@C <filename>album8.jpg</filename> <link linkend="xslt-appc-c3">} C-3</link> ̂悤ɂȂ܂B</p>
<figure id="xslt-appc-c3" label="C-3">
<p class="TITLE">8 Ԗڂ &lt;listitem&gt; vfpɐꂽOtBbN</p>
        <graphic depth="41" width="403" fileref="figs/xslt.ac03.gif"/>
      </figure>
<p>t@C <filename>JPEGWriter.class</filename> 폜ꍇ́AɎ̂悤ȌʂƂȂ܂B<filename>.class</filename> t@CȂꍇA֐͗pł܂B</p>
<span class="PROGRAMLISTING"><pre>

1. A Love Supreme
2. Beat Crazy
3. Here Come the Warm Jets
4. Kind of Blue
5. London Calling
6. Remain in Light
7. The Joshua Tree
8. The Indestructible Beat of Soweto
</pre></span>
</td>
</tr>
</table>
</div>
</body>
</html>
