home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _F4E296E85B75430093FFF8EBC8B3C0DE < prev    next >
Encoding:
Extensible Markup Language  |  2003-01-15  |  15.0 KB  |  445 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3.     <xsl:variable name="fo:layout-master-set">
  4.         <fo:layout-master-set>
  5.             <fo:simple-page-master master-name="default-page-master" page-height="11in" page-width="8.5in" margin-top="0.79in" margin-bottom="0.79in" margin-left="0.6in" margin-right="0.6in">
  6.                 <fo:region-before margin-right="0.6in" extent="0cm"/>
  7.                 <fo:region-body margin-top="0cm" margin-bottom="0cm" font-family="Serif,Times New Roman,Geneva,Helvetica,Arial,sans-serif" font-size="12pt" line-height="14pt"/>
  8.                 <fo:region-after extent="0cm"/>
  9.             </fo:simple-page-master>
  10.         </fo:layout-master-set>
  11.     </xsl:variable>
  12.     <xsl:template match="/">
  13.         <fo:root>
  14.             <xsl:copy-of select="$fo:layout-master-set"/>
  15.             <fo:page-sequence master-reference="default-page-master">
  16.                 <fo:static-content flow-name="xsl-region-before">
  17.                     <fo:block/>
  18.                 </fo:static-content>
  19.                 <fo:static-content flow-name="xsl-region-after">
  20.                     <fo:block/>
  21.                 </fo:static-content>
  22.                 <fo:flow flow-name="xsl-region-body">
  23.                     <fo:block>
  24.                         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  25.                             <xsl:apply-templates/>
  26.                         </fo:block>
  27.                     </fo:block>
  28.                 </fo:flow>
  29.             </fo:page-sequence>
  30.         </fo:root>
  31.     </xsl:template>
  32.     <xsl:template match="ab">
  33.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  34.             <xsl:apply-templates/>
  35.         </fo:block>
  36.     </xsl:template>
  37.     <xsl:template match="addSpan">
  38.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  39.             <fo:inline font-style="italic">
  40.                 <xsl:apply-templates/>
  41.             </fo:inline>
  42.         </fo:block>
  43.     </xsl:template>
  44.     <xsl:template match="addrLine">
  45.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  46.             <xsl:apply-templates/>
  47.         </fo:block>
  48.     </xsl:template>
  49.     <xsl:template match="address">
  50.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  51.             <fo:leader leader-pattern="space"/>
  52.         </fo:block>
  53.         <xsl:for-each select="name">
  54.             <xsl:apply-templates/>
  55.             <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  56.                 <fo:leader leader-pattern="space"/>
  57.             </fo:block>
  58.         </xsl:for-each>
  59.         <xsl:for-each select="street">
  60.             <xsl:apply-templates/>
  61.             <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  62.                 <fo:leader leader-pattern="space"/>
  63.             </fo:block>
  64.         </xsl:for-each>
  65.         <xsl:for-each select="addrLine">
  66.             <xsl:apply-templates/>
  67.             <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  68.                 <fo:leader leader-pattern="space"/>
  69.             </fo:block>
  70.         </xsl:for-each>
  71.         <xsl:for-each select="postBox">
  72.             <xsl:apply-templates/>
  73.             <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  74.                 <fo:leader leader-pattern="space"/>
  75.             </fo:block>
  76.         </xsl:for-each>
  77.         <xsl:for-each select="postCode">
  78.             <xsl:apply-templates/>
  79.             <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  80.                 <xsl:text> </xsl:text>
  81.             </fo:block>
  82.         </xsl:for-each>
  83.     </xsl:template>
  84.     <xsl:template match="argument">
  85.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  86.             <fo:inline font-style="italic">
  87.                 <xsl:apply-templates/>
  88.             </fo:inline>
  89.         </fo:block>
  90.     </xsl:template>
  91.     <xsl:template match="att">
  92.         <fo:inline font-family="Courier">
  93.             <xsl:apply-templates/>
  94.         </fo:inline>
  95.     </xsl:template>
  96.     <xsl:template match="author">
  97.         <xsl:apply-templates/>
  98.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  99.             <xsl:text> </xsl:text>
  100.         </fo:block>
  101.     </xsl:template>
  102.     <xsl:template match="availability">
  103.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  104.             <xsl:apply-templates/>
  105.         </fo:block>
  106.     </xsl:template>
  107.     <xsl:template match="byline">
  108.         <fo:block text-align="center" space-before.optimum="4pt" space-after.optimum="4pt">
  109.             <xsl:apply-templates/>
  110.         </fo:block>
  111.     </xsl:template>
  112.     <xsl:template match="camera">
  113.         <fo:inline font-style="italic">
  114.             <xsl:apply-templates/>
  115.         </fo:inline>
  116.     </xsl:template>
  117.     <xsl:template match="cit">
  118.         <fo:inline font-style="italic">"</fo:inline>
  119.         <fo:inline font-style="italic">
  120.             <xsl:apply-templates/>
  121.         </fo:inline>
  122.         <fo:inline font-style="italic">"</fo:inline>
  123.     </xsl:template>
  124.     <xsl:template match="dateline">
  125.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  126.             <fo:leader leader-pattern="space"/>
  127.         </fo:block>
  128.         <xsl:apply-templates/>
  129.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  130.             <xsl:text> </xsl:text>
  131.         </fo:block>
  132.     </xsl:template>
  133.     <xsl:template match="delSpan">
  134.         <xsl:apply-templates/>
  135.     </xsl:template>
  136.     <xsl:template match="distinct">
  137.         <fo:inline font-style="normal" font-weight="lighter" letter-spacing="1px">
  138.             <xsl:apply-templates/>
  139.         </fo:inline>
  140.     </xsl:template>
  141.     <xsl:template match="div">
  142.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  143.             <xsl:apply-templates/>
  144.         </fo:block>
  145.     </xsl:template>
  146.     <xsl:template match="div0">
  147.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  148.             <xsl:apply-templates/>
  149.         </fo:block>
  150.     </xsl:template>
  151.     <xsl:template match="div1">
  152.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  153.             <xsl:apply-templates/>
  154.         </fo:block>
  155.     </xsl:template>
  156.     <xsl:template match="div2">
  157.         <xsl:apply-templates/>
  158.     </xsl:template>
  159.     <xsl:template match="div3">
  160.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  161.             <xsl:apply-templates/>
  162.         </fo:block>
  163.     </xsl:template>
  164.     <xsl:template match="div4">
  165.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  166.             <xsl:apply-templates/>
  167.         </fo:block>
  168.     </xsl:template>
  169.     <xsl:template match="div5">
  170.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  171.             <xsl:apply-templates/>
  172.         </fo:block>
  173.     </xsl:template>
  174.     <xsl:template match="div6">
  175.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  176.             <xsl:apply-templates/>
  177.         </fo:block>
  178.     </xsl:template>
  179.     <xsl:template match="div7">
  180.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  181.             <xsl:apply-templates/>
  182.         </fo:block>
  183.     </xsl:template>
  184.     <xsl:template match="divGen">
  185.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  186.             <fo:leader leader-pattern="space"/>
  187.         </fo:block>
  188.         <fo:inline background-color="silver">Generated Div Here: </fo:inline>
  189.         <xsl:for-each select="@type">
  190.             <fo:inline background-color="silver">
  191.                 <xsl:value-of select="."/>
  192.             </fo:inline>
  193.         </xsl:for-each>
  194.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  195.             <xsl:text> </xsl:text>
  196.         </fo:block>
  197.     </xsl:template>
  198.     <xsl:template match="docTitle">
  199.         <fo:inline font-size="20pt" font-weight="bold">
  200.             <xsl:apply-templates/>
  201.         </fo:inline>
  202.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  203.             <xsl:text> </xsl:text>
  204.         </fo:block>
  205.     </xsl:template>
  206.     <xsl:template match="editionStmt">
  207.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  208.             <xsl:apply-templates/>
  209.         </fo:block>
  210.     </xsl:template>
  211.     <xsl:template match="emph">
  212.         <fo:inline font-weight="bold">
  213.             <xsl:apply-templates/>
  214.         </fo:inline>
  215.     </xsl:template>
  216.     <xsl:template match="encodingDesc">
  217.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  218.             <fo:inline font-family="@Arial Unicode MS">
  219.                 <xsl:apply-templates/>
  220.             </fo:inline>
  221.         </fo:block>
  222.     </xsl:template>
  223.     <xsl:template match="epigraph">
  224.         <fo:block text-align="center" space-before.optimum="4pt" space-after.optimum="4pt">
  225.             <fo:inline font-style="italic">
  226.                 <xsl:apply-templates/>
  227.             </fo:inline>
  228.         </fo:block>
  229.     </xsl:template>
  230.     <xsl:template match="figure">
  231.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  232.             <fo:leader leader-pattern="space"/>
  233.         </fo:block>
  234.         <xsl:for-each select="@entity">
  235.             <fo:external-graphic space-before.optimum="4pt" space-after.optimum="4pt">
  236.                 <xsl:attribute name="src">url('<xsl:value-of select="." />')</xsl:attribute>
  237.             </fo:external-graphic>
  238.         </xsl:for-each>
  239.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  240.             <xsl:text> </xsl:text>
  241.         </fo:block>
  242.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  243.             <xsl:apply-templates/>
  244.         </fo:block>
  245.     </xsl:template>
  246.     <xsl:template match="foreign">
  247.         <fo:inline font-style="italic">
  248.             <xsl:apply-templates/>
  249.         </fo:inline>
  250.     </xsl:template>
  251.     <xsl:template match="gap">
  252.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  253.             <fo:leader leader-pattern="space"/>
  254.         </fo:block>
  255.         <fo:inline font-style="italic">(ommited material)</fo:inline>
  256.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  257.             <xsl:text> </xsl:text>
  258.         </fo:block>
  259.     </xsl:template>
  260.     <xsl:template match="head">
  261.         <fo:inline font-size="20pt" font-weight="normal">
  262.             <xsl:apply-templates/>
  263.         </fo:inline>
  264.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  265.             <xsl:text> </xsl:text>
  266.         </fo:block>
  267.     </xsl:template>
  268.     <xsl:template match="hi">
  269.         <fo:inline background-color="#FFFF84">
  270.             <xsl:apply-templates/>
  271.         </fo:inline>
  272.     </xsl:template>
  273.     <xsl:template match="item">
  274.         <fo:list-block provisional-distance-between-starts="9mm" provisional-label-separation="2mm" start-indent="2mm" space-before.optimum="4pt" space-after.optimum="4pt">
  275.             <fo:list-item>
  276.                 <fo:list-item-label end-indent="label-end()">
  277.                     <fo:block font-family="Courier">•</fo:block>
  278.                 </fo:list-item-label>
  279.                 <fo:list-item-body start-indent="body-start()">
  280.                     <fo:block>
  281.                         <xsl:apply-templates/>
  282.                     </fo:block>
  283.                 </fo:list-item-body>
  284.             </fo:list-item>
  285.         </fo:list-block>
  286.     </xsl:template>
  287.     <xsl:template match="l">
  288.         <xsl:apply-templates/>
  289.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  290.             <xsl:text> </xsl:text>
  291.         </fo:block>
  292.     </xsl:template>
  293.     <xsl:template match="label">
  294.         <fo:inline font-weight="bold">
  295.             <xsl:apply-templates/>
  296.         </fo:inline>
  297.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  298.             <xsl:text> </xsl:text>
  299.         </fo:block>
  300.     </xsl:template>
  301.     <xsl:template match="lb">
  302.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  303.             <xsl:text> </xsl:text>
  304.         </fo:block>
  305.     </xsl:template>
  306.     <xsl:template match="move">
  307.         <fo:inline font-style="italic">
  308.             <xsl:apply-templates/>
  309.         </fo:inline>
  310.     </xsl:template>
  311.     <xsl:template match="note">NOTE : [<fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  312.             <fo:leader leader-pattern="space"/>
  313.         </fo:block>
  314.         <xsl:apply-templates/>
  315.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  316.             <fo:leader leader-pattern="space"/>
  317.         </fo:block>]</xsl:template>
  318.     <xsl:template match="p">
  319.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  320.             <xsl:apply-templates/>
  321.         </fo:block>
  322.     </xsl:template>
  323.     <xsl:template match="ptr">
  324.         <fo:basic-link text-decoration="underline" color="blue">
  325.             <xsl:attribute name="external-destination">url('<xsl:value-of select="@target" />')</xsl:attribute>
  326.             <xsl:apply-templates/>
  327.         </fo:basic-link>
  328.     </xsl:template>
  329.     <xsl:template match="publicationStmt">
  330.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  331.             <xsl:apply-templates/>
  332.         </fo:block>
  333.     </xsl:template>
  334.     <xsl:template match="q">"<xsl:apply-templates/>"</xsl:template>
  335.     <xsl:template match="quote">'<xsl:apply-templates/>'</xsl:template>
  336.     <xsl:template match="ref">
  337.         <fo:basic-link text-decoration="underline" color="blue">
  338.             <xsl:attribute name="external-destination">url('<xsl:value-of select="@target" />')</xsl:attribute>
  339.             <xsl:apply-templates/>
  340.         </fo:basic-link>
  341.     </xsl:template>
  342.     <xsl:template match="signed">Signed: <xsl:apply-templates/>
  343.     </xsl:template>
  344.     <xsl:template match="soCalled">
  345.         <fo:inline font-weight="bold">"</fo:inline>
  346.         <fo:inline font-weight="bold">
  347.             <xsl:apply-templates/>
  348.         </fo:inline>
  349.         <fo:inline font-weight="bold">"</fo:inline>
  350.     </xsl:template>
  351.     <xsl:template match="sound">
  352.         <fo:inline font-style="italic">
  353.             <xsl:apply-templates/>
  354.         </fo:inline>
  355.     </xsl:template>
  356.     <xsl:template match="sourceDesc">
  357.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  358.             <xsl:apply-templates/>
  359.         </fo:block>
  360.     </xsl:template>
  361.     <xsl:template match="sp">
  362.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  363.             <xsl:apply-templates/>
  364.         </fo:block>
  365.     </xsl:template>
  366.     <xsl:template match="tech">
  367.         <fo:inline font-style="italic">
  368.             <xsl:apply-templates/>
  369.         </fo:inline>
  370.     </xsl:template>
  371.     <xsl:template match="teiHeader">
  372.         <fo:table background-color="#F0EEF0" width="100%" space-before.optimum="4pt" space-after.optimum="4pt">
  373.             <fo:table-column/>
  374.             <fo:table-body>
  375.                 <fo:table-row>
  376.                     <fo:table-cell padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt">
  377.                         <fo:block>
  378.                             <fo:inline font-weight="bold">Header Information:</fo:inline>
  379.                             <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  380.                                 <xsl:apply-templates/>
  381.                             </fo:block>
  382.                         </fo:block>
  383.                     </fo:table-cell>
  384.                 </fo:table-row>
  385.             </fo:table-body>
  386.         </fo:table>
  387.     </xsl:template>
  388.     <xsl:template match="term">
  389.         <fo:inline font-style="italic">
  390.             <xsl:apply-templates/>
  391.         </fo:inline>
  392.     </xsl:template>
  393.     <xsl:template match="title">
  394.         <fo:inline font-size="20pt">
  395.             <xsl:apply-templates/>
  396.         </fo:inline>
  397.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  398.             <xsl:text> </xsl:text>
  399.         </fo:block>
  400.     </xsl:template>
  401.     <xsl:template match="titlePage">
  402.         <fo:table width="100%" space-before.optimum="4pt" space-after.optimum="4pt">
  403.             <fo:table-column/>
  404.             <fo:table-body>
  405.                 <fo:table-row>
  406.                     <fo:table-cell border-after-color="black" border-after-style="solid" border-after-width="thin" padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt">
  407.                         <fo:block>   </fo:block>
  408.                     </fo:table-cell>
  409.                 </fo:table-row>
  410.             </fo:table-body>
  411.         </fo:table>
  412.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  413.             <xsl:apply-templates/>
  414.         </fo:block>
  415.         <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
  416.             <xsl:text> </xsl:text>
  417.         </fo:block>
  418.         <fo:table width="100%" space-before.optimum="4pt" space-after.optimum="4pt">
  419.             <fo:table-column/>
  420.             <fo:table-body>
  421.                 <fo:table-row>
  422.                     <fo:table-cell border-before-color="black" border-before-style="solid" border-before-width="thin" padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt">
  423.                         <fo:block>  </fo:block>
  424.                     </fo:table-cell>
  425.                 </fo:table-row>
  426.             </fo:table-body>
  427.         </fo:table>
  428.     </xsl:template>
  429.     <xsl:template match="titlePart">
  430.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  431.             <xsl:apply-templates/>
  432.         </fo:block>
  433.     </xsl:template>
  434.     <xsl:template match="titleStmt">
  435.         <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
  436.             <xsl:apply-templates/>
  437.         </fo:block>
  438.     </xsl:template>
  439.     <xsl:template match="view">
  440.         <fo:inline font-style="italic">
  441.             <xsl:apply-templates/>
  442.         </fo:inline>
  443.     </xsl:template>
  444. </xsl:stylesheet>
  445.