<html>
<head>
<title>&lt;xsl:attribute-set&gt;</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">&lt;xsl:attribute-set&gt;</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">
o̓hLgp̑̃O[v`ł܂BɂAׂĂ̑ʂɍ쐬ɁA̖OgpđZbgŜQƂł܂B </td></tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">JeS</td>
</tr>
<tr>
<td colspan="2" class="description">
<p>gbvxvf</p>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">K{̑</td>
</tr>
<tr>
<td colspan="2" class="description">
<dl>
<dt>
name
</dt>
<dd>
̑Zbg̖O`܂B
<P></p>
</dl>
</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">
<dl>
<dt>
use-attribute-sets
</dt>
<dd>
̑ZbgŎgp鑮Zbg܂B̃Zbgw肷ꍇ́A󔒃Xy[XgpĖO؂܂B̑gpāA <span class="LITERAL"> &lt; xsl:attribute-set &gt; </span> ̃ZbgɖߍނƂł܂A<span class="LITERAL"> &lt; xsl:attribute-set &gt; </span> ꎩg𒼐ړI܂͊ԐړIɖߍނƁAG[ɂȂ܂B܂AZbg <span class="LITERAL"> A </span> Zbg <span class="LITERAL"> B </span> 𖄂ߍ݁AꂪZbg <span class="LITERAL"> C </span> 𖄂ߍ݁AꂪZbg <span class="LITERAL"> A </span> 𖄂ߍޏꍇAXSLT vZbT̓G[𔭐܂B
<P></p>
</dl>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Rec</td>
</tr>
<tr>
<td colspan="2" class="description">
<p><span class="LITERAL">&lt;xsl:attribute&gt;</span> vfB</p>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">w</td>
</tr>
<tr>
<td colspan="2" class="description">
<p>
<span class="LITERAL">&lt;xsl:stylesheet&gt;</span>B<span class="LITERAL">&lt;xsl:attribute-set&gt;</span> ̓gbvxvfłA<span class="LITERAL">&lt;xsl:stylesheet&gt;</span> ̎qƂĂ̂ݎwł܂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 7.1.4 ߁uNamed Attribute Setsv</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>̗ł́Aʏ̃eLXgAeLXgAё傫ȃeLXg̑Zbg`X^CV[g쐬܂B܂܂ȗvf߂ɁAXSL-FO (Extensible Stylesheet Language Formatting Objects) dlgp XML hLg PDF t@Cɕϊ܂BX^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:fo="http://www.w3.org/1999/XSL/Format"&gt;

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

  &lt;xsl:attribute-set name="regular-text"&gt;
    &lt;xsl:attribute name="font-size"&gt;12pt&lt;/xsl:attribute&gt;
    &lt;xsl:attribute name="font-family"&gt;sans-serif&lt;/xsl:attribute&gt;
  &lt;/xsl:attribute-set&gt;

  &lt;xsl:attribute-set name="emphasized-text" use-attribute-sets="regular-text"&gt;
    &lt;xsl:attribute name="font-style"&gt;italic&lt;/xsl:attribute&gt;
  &lt;/xsl:attribute-set&gt;

  &lt;xsl:attribute-set name="large-text" use-attribute-sets="regular-text"&gt;
    &lt;xsl:attribute name="font-size"&gt;18pt&lt;/xsl:attribute&gt;
    &lt;xsl:attribute name="font-weight"&gt;bold&lt;/xsl:attribute&gt;
    &lt;xsl:attribute name="space-after.optimum"&gt;21pt&lt;/xsl:attribute&gt;
  &lt;/xsl:attribute-set&gt;

  &lt;xsl:template match="/"&gt;
    &lt;fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;
      &lt;fo:layout-master-set&gt;
        &lt;fo:simple-page-master margin-right="75pt" margin-left="75pt" 
          page-height="11in" page-width="8.5in"
          margin-bottom="25pt" margin-top="25pt" master-name="main"&gt;
          &lt;fo:region-before extent="25pt"/&gt;
          &lt;fo:region-body margin-top="50pt" margin-bottom="50pt"/&gt;
          &lt;fo:region-after extent="25pt"/&gt;
        &lt;/fo:simple-page-master&gt;
        &lt;fo:page-sequence-master master-name="standard"&gt;
          &lt;fo:repeatable-page-master-alternatives&gt;
            &lt;fo:conditional-page-master-reference master-name="main" 
              odd-or-even="any"/&gt;
          &lt;/fo:repeatable-page-master-alternatives&gt;
        &lt;/fo:page-sequence-master&gt;
      &lt;/fo:layout-master-set&gt;
      
      &lt;fo:page-sequence master-name="standard"&gt;
        &lt;fo:flow flow-name="xsl-region-body"&gt;
          &lt;xsl:apply-templates select="list"/&gt;
        &lt;/fo:flow&gt;
      &lt;/fo:page-sequence&gt;
    &lt;/fo:root&gt;
  &lt;/xsl:template&gt;

  &lt;xsl:template match="list"&gt;
    &lt;fo:block xsl:use-attribute-sets="large-text"&gt;
      &lt;xsl:value-of select="title"/&gt;
    &lt;/fo:block&gt;
    &lt;fo:list-block provisional-distance-between-starts="0.4cm"
      provisional-label-separation="0.15cm"&gt;
      &lt;xsl:for-each select="listitem"&gt;
        &lt;fo:list-item start-indent="0.5cm" space-after.optimum="17pt"&gt;
          &lt;fo:list-item-label&gt;
            &lt;fo:block xsl:use-attribute-sets="regular-text"&gt;*&lt;/fo:block&gt;
          &lt;/fo:list-item-label&gt;
          &lt;fo:list-item-body&gt;
            &lt;fo:block xsl:use-attribute-sets="emphasized-text"&gt;
              &lt;xsl:value-of select="."/&gt;
            &lt;/fo:block&gt;
          &lt;/fo:list-item-body&gt;
        &lt;/fo:list-item&gt;
      &lt;/xsl:for-each&gt;
    &lt;/fo:list-block&gt;
  &lt;/xsl:template&gt;

&lt;/xsl:stylesheet&gt;</pre></span>
<p><span class="LITERAL">emphasized-text</span>  <span class="LITERAL">large-text</span> ZbǵAƂx[XƂ <span class="LITERAL">regular-text</span> Zbggp܂B<span class="LITERAL">large-text</span> ̏ꍇA<span class="LITERAL">large-text</span> Zbgɒ`Ă <span class="LITERAL">font-size</span> ́A<span class="LITERAL">regular-text</span> ZbgɊ܂܂Ă <span class="LITERAL">font-size</span> ㏑܂B XML hLgɑ΂ăX^CV[gKp܂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;
  &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́AtH[}bgIuWFNĝGRƂt@C𐶐܂B̃t@Cɂ́AXML \[XhLg̃eLXgǂ̂悤ɕ\邩LqĂ܂B  </p>
<span class="PROGRAMLISTING"><pre>
&lt;fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;
&lt;fo:layout-master-set&gt;
&lt;fo:simple-page-master master-name="main" margin-top="25pt" 
margin-bottom="25pt" page-width="8.5in" page-height="11in" 
margin-left="75pt" margin-right="75pt"&gt;
&lt;fo:region-before extent="25pt"/&gt;
&lt;fo:region-body margin-bottom="50pt" margin-top="50pt"/&gt;
&lt;fo:region-after extent="25pt"/&gt;
&lt;/fo:simple-page-master&gt;
&lt;fo:page-sequence-master master-name="standard"&gt;
&lt;fo:repeatable-page-master-alternatives&gt;
&lt;fo:conditional-page-master-reference odd-or-even="any" master-name="main"/&gt;
&lt;/fo:repeatable-page-master-alternatives&gt;
&lt;/fo:page-sequence-master&gt;
&lt;/fo:layout-master-set&gt;
&lt;fo:page-sequence master-name="standard"&gt;
&lt;fo:flow flow-name="xsl-region-body"&gt;
&lt;fo:block font-size="18pt" font-family="sans-serif" 
font-weight="bold" space-after.optimum="21pt"&gt;A few of my 
favorite albums&lt;/fo:block&gt;
&lt;fo:list-block provisional-label-separation="0.15cm" 
provisional-distance-between-starts="0.4cm"&gt;
&lt;fo:list-item space-after.optimum="17pt" start-indent="0.5cm"&gt;
&lt;fo:list-item-label&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif"&gt;*&lt;/fo:block&gt;
&lt;/fo:list-item-label&gt;
&lt;fo:list-item-body&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif" 
font-style="italic"&gt;A Love Supreme&lt;/fo:block&gt;
&lt;/fo:list-item-body&gt;
&lt;/fo:list-item&gt;
&lt;fo:list-item space-after.optimum="17pt" start-indent="0.5cm"&gt;
&lt;fo:list-item-label&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif"&gt;*&lt;/fo:block&gt;
&lt;/fo:list-item-label&gt;
&lt;fo:list-item-body&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif" 
font-style="italic"&gt;Beat Crazy&lt;/fo:block&gt;
&lt;/fo:list-item-body&gt;
&lt;/fo:list-item&gt;
&lt;fo:list-item space-after.optimum="17pt" start-indent="0.5cm"&gt;
&lt;fo:list-item-label&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif"&gt;*&lt;/fo:block&gt;
&lt;/fo:list-item-label&gt;
&lt;fo:list-item-body&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif" 
font-style="italic"&gt;Here Come the Warm Jets&lt;/fo:block&gt;
&lt;/fo:list-item-body&gt;
&lt;/fo:list-item&gt;
&lt;fo:list-item space-after.optimum="17pt" start-indent="0.5cm"&gt;
&lt;fo:list-item-label&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif"&gt;*&lt;/fo:block&gt;
&lt;/fo:list-item-label&gt;
&lt;fo:list-item-body&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif" 
font-style="italic"&gt;Kind of Blue&lt;/fo:block&gt;
&lt;/fo:list-item-body&gt;
&lt;/fo:list-item&gt;
&lt;fo:list-item space-after.optimum="17pt" start-indent="0.5cm"&gt;
&lt;fo:list-item-label&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif"&gt;*&lt;/fo:block&gt;
&lt;/fo:list-item-label&gt;
&lt;fo:list-item-body&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif" 
font-style="italic"&gt;London Calling&lt;/fo:block&gt;
&lt;/fo:list-item-body&gt;
&lt;/fo:list-item&gt;
&lt;fo:list-item space-after.optimum="17pt" start-indent="0.5cm"&gt;
&lt;fo:list-item-label&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif"&gt;*&lt;/fo:block&gt;
&lt;/fo:list-item-label&gt;
&lt;fo:list-item-body&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif" 
font-style="italic"&gt;Remain in Light&lt;/fo:block&gt;
&lt;/fo:list-item-body&gt;
&lt;/fo:list-item&gt;
&lt;fo:list-item space-after.optimum="17pt" start-indent="0.5cm"&gt;
&lt;fo:list-item-label&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif"&gt;*&lt;/fo:block&gt;
&lt;/fo:list-item-label&gt;
&lt;fo:list-item-body&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif" 
font-style="italic"&gt;The Joshua Tree&lt;/fo:block&gt;
&lt;/fo:list-item-body&gt;
&lt;/fo:list-item&gt;
&lt;fo:list-item space-after.optimum="17pt" start-indent="0.5cm"&gt;
&lt;fo:list-item-label&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif"&gt;*&lt;/fo:block&gt;
&lt;/fo:list-item-label&gt;
&lt;fo:list-item-body&gt;
&lt;fo:block font-size="12pt" font-family="sans-serif" 
font-style="italic"&gt;The Indestructible Beat of Soweto&lt;/fo:block&gt;
&lt;/fo:list-item-body&gt;
&lt;/fo:list-item&gt;
&lt;/fo:list-block&gt;
&lt;/fo:flow&gt;
&lt;/fo:page-sequence&gt;
&lt;/fo:root&gt;</pre></span>
<p>_ (2001 N 5 ) ł́AXSL-FO dl͍ŏIIȂ̂ł͂Ȃ̂ŁÃtH[}bgIuWFNg XSL-FO c[Ő삷Ƃۏ؂͂܂BApache XML vWFNg FOP (Formatting Objects to PDF translator) c[Ăяo PDF 쐬@Ɏ܂B</p>
<span class="PROGRAMLISTING"><pre>
java org.apache.fop.apps.CommandLine test.fo test.pdf</pre></span>
<p>FOP c[ɂA<link linkend="xslt-appa-a4">} A-4</link> Ɏ悤 PDF 쐬܂B</p>
<figure label="A-4" id="xslt-appa-a4">
<p class="TITLE">XSL-FO t@C琶ꂽ PDF</p>
        <graphic depth="309" width="455" fileref="figs/xslt.aa04.gif"/>
      </figure>
</td>
</tr>
</table>
</div>
</body>
</html>
